CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor and other Autodesk products []
Cesky English Deutsch
 Visitors: 3561 

CAD tip CAD tip # 9935:

Question CAD 
 %  platform  category 
Q - question

How to distinguish between an assembly and weldment in VBA or iLogic?

A - answer If you need to classify an Inventor document if a standard assembly and a weldment assembly, you can use the parameter "SubType". Try e.g. the following iLogic macro:

oModelDoc = ThisDoc.ModelDocument
If oModelDoc.DocumentType=kAssemblyDocumentObject Then MsgBox("ASSEMBLY")
If oModelDoc.SubType="{28EC8354-9024-440F-A8A2-0E0E55D635B0}" Then MsgBox("WELDMENT")
100% *  CAD 
4.8.2014    2040x  
Comments   Tell a friend
applies to: Inventor ·

See also:
Tip 9952:iLogic rule - check whether iProperties are overridden.
Tip 9263:iLogic code for exploding a component pattern in Inventor.
Tip 8956:How to explode a component pattern in an Inventor assembly?
Tip 8718:How to show COG of subassemblies in an Inventor drawing?

Back   All CAD Tips All CAD tips&tricks

Preset displaying of thread features in Inventor 2015 drawing views. « | » Editing history of Revit RVT files.

Have we helped you? If you want to support the CAD Forum web service, consider buying one of our CAD applications, or our custom software development offerings, or donating via PayPal (see above). You may also add a link to your web - like this "fan" link: CAD Forum - tips, utilities, blocks for Autodesk products
CAD:    OS:    Categ: 
Text:  FAQ glossary   

Use Google Earth images in your AutoCAD projects with the Plex.Earth Tools More info

Please use these tips at your own risk.
CAD Studio (Xanadu) is not responsible for possible problems that may occur as a result of using any of these tips.