custom property from ipt into assembly bom or virtual component

custom property from ipt into assembly bom or virtual component

yhaPM8SB
Contributor Contributor
159 Views
1 Reply
Message 1 of 2

custom property from ipt into assembly bom or virtual component

yhaPM8SB
Contributor
Contributor

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?

0 Likes
160 Views
1 Reply
Reply (1)
Message 2 of 2

C_Haines_ENG
Collaborator
Collaborator

I can help with this, but what you're asking for is a little vague.

 

Firstly, you can add custom iProperties but they WONT be shown in any drop down, you have to type the name of the custom iProperty exactly in the field.

 

Secondly, this is possible but what is the intended workflow of having a hundred virtual components in an assembly?

0 Likes