Community
Vault Customization
Share your knowledge, ask questions, and explore popular Vault API, Data Standard, and VBA topics related to programming, creating add-ins, or working with the Vault API.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Recognize "sheet metal part" file

4 REPLIES 4
SOLVED
Reply
Message 1 of 5
david.siegertKKJR6
401 Views, 4 Replies

Recognize "sheet metal part" file

Hello, is there a way to find out if a file loaded from inventor is a Sheet Metal Part? We do not use category to distinguish these parts. Is there some easy way to find out? I think I would be able to find out if I download the file a look int the inventor file properties, but i dont want do download every file just to find out if I can export it to DXF.

 

Thank you,

regards,

David

4 REPLIES 4
Message 2 of 5

Inventor files share a property "Sub-Type". You can map it to a Vault property and use this in searches.



Markus Koechl

Solutions Engineer PDM, Autodesk Central Europe
Message 3 of 5

Yes I thought of this solution but there would be problem with existing data not having this Vault property. I ended up downloading the files and using inventor apprentice.

 

Inventor.ApprenticeServerComponent apprentice = new Inventor.ApprenticeServerComponent();
var doc = apprentice.Open(localPathToFile);
bool isSheetMetal = doc.ComponentDefinition.Type == ObjectTypeEnum.kSheetMetalComponentDefinitionObject;

 

Message 4 of 5

How do this? 

Message 5 of 5

The standard is configuring the assignment rule like this; note - if mulit-language Inventor clients create the files you need to add all "Sheet Metal Part" translations using the OR condition. The screenshot reflects en and de as a sample:

MarkusKoechl_0-1701939960979.png

 



Markus Koechl

Solutions Engineer PDM, Autodesk Central Europe

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report