custom property from ipt into assembly bom or virtual component
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi
i have ilogic ipt with simple code in the rule:
' Parameters
Dim Diameter As Double = Parameter("Diameter")
Dim Langde As Double = Parameter("Length")
' Calculations
Dim Variable1 As Integer
variable1= Math.Ceiling(Length/ 500) + 1
Dim Variable2 As Integer = 1
Dim Variable3 As Integer
variable3 = Math.PI * Diameter * Length/ 1000000
' Set Parameters
Parameter("Variable1") = Variable1
Parameter("Variable2") = Variable2
Parameter("Variable3") = Variable3
iProperties.Value("Custom", "Variable1") = variable1
iProperties.Value("Custom", "Variable3") = variable3
and i have two goals
1/ to insert this ipt file in random assembly file and i can find each custom property in the assembly BOM section in seprate column.
although the three variables are visible in the iproperties in the ipt file but in the bom section they dont exsit even when i select choose column or add cusotm iproperty coulmns also not there.
2/ the othe goal is to convert each custom property into a virtual component in the BOM
the rule in the assembly file should check the custom iproperties avilable across all the assembly and create virtual component for each custom property with its quantity accumlated if same custom property exisist in different component in the assembly
i am not good in writting code, so can anyone help me to achieve both goals?