Professional Documents
Culture Documents
Règle Inventor
Règle Inventor
Dim b1 As DocumentsEnumerator
b1 = a1.ReferencedDocuments
For Each c1 In b1
MyArrayList.Add(c1.DisplayName)
Next
iArrayList = MyArrayList.Count
Dim b As AssemblyDocument
b = oAsmCompDef.Item(1)
Dim c As AssemblyComponentDefinition
c = b.ComponentDefinition
oMass = c.MassProperties.Mass
oMass = Round(oMass, 3)
'---------------------------------------------------------------------------------------------
-
'Promt the user for the value of a variable
myprop = InputBox("Please Enter the Custom Property Here", "Custom Property Input Box", "The
Default Entry")
' Checks to see if custom iproperty etch_number exists, creates it if it is not in document
' Sets value of EtchNumber iprop
oProp.Expression = oMass