We use the UGMaster / UGPart model for our 3D vs 2D datasets.
But, the UGMaster is the same Dataset type for Part, Sheetmetal, & Assembly...
Is there way to know what type of CAD file: part vs sheet metal vs Assembly the dataset in via an attribute in TC?
We do not want to identify this in the sting of the file name.
Solved! Go to Solution.
Check for the property 'Has Any Components' of the UGMASTER dataset.
If value is 'TRUE' then it has component/sub assembly etc.
If value is 'FALSE' then it is a piece part.
About the CAD content of the UGMASTER dataset, I am not sure if there is any straight and simple way to query about the actual type of part geometry (part/sheet metal etc.)
Testing: NX 10 | NX 11 | TCIN
TC 11.2 | TC Vis 11.3 | AWC 3.2
I don't think there's any reliable way OOTB to determine that a part is a sheet metal part. If you knew you could depend on users to select the Sheet Metal template on the New Item dialog you could reference the DB_SEED_PART_USED value of the UGPartAttributesForm in the UGMASTER Named References (e.g., sheet-metal-mm-template/A). Other than that, going forward you're going to have to define something yourself that's more dependable.
We have a similar ER already submitted:
ER 5749359 - Assign an attribute to a part file to identify the part as an assembly or piece part in Windows.
Please consider contacting GTAC to submit a new ER.