"Select a Factory Asset instance in the layout")įunction IsFactoryInstance(layoutDoc As Document, occ As ComponentOccurrence, ByRef factoryInstance As IAssetInstance)ĭim instances = .Instance. SelectionFilterEnum.kAssemblyOccurrenceFilter, MessageBox.Show (partNumber, "Inventor Part Number")įunction GetOccurenceToWorkWith() As ComponentOccurrenceĬomp = ( MessageBox.Show (instanceID, "Factory Instance ID") MessageBox.Show("The object you selected is not a Factory Design asset instance", "iLogic sample rule")ĭim instanceID = factoryInstance.InstanceIDĭim partNumber = iProperties.Value(occ.Name, "Project", "Part Number") If (Not IsFactoryInstance(ThisApplication.ActiveDocument, occ, factoryInstance)) Then Imports .v2ĭim occ As ComponentOccurrence, factoryInstance As IAssetInstance To learn more about iLogic, see Inventor iLogic in the Inventor online Help system. Large-scale processing systems use many of the same types of componentscompressors, pumps, valves, controllers, mixers, homogenizersin unique configurations. Note: To use this script, you need to be familiar with iLogic. The latter are developed with iLogic, a specialized set of tools within Autodesk Inventor based around rules-driven design.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |