access and modify product type properties of an assembly of assembly

Hi everyone,

I am a bit struggling to access the properties of a product type within an assembly of assembly.
Could you help with a simple example where

  • i have a two step assembly named Assembly1 of two product types PType1 and Ptype2, with property Property1.
  • this Assembly is then used in a second two step Assembly2 with PType3 and thus Assembly1.
  • What is the syntax to access the Property1 of the sub-assembly product type ? and to modify it ? i guess assign can be used ?

And finally, how can i access the property of certain product type depending on its ordering index, still within an assembly of assembly ?

Thank you all for your reply !

JF

Hello,
you can use the syntax for assemblies from the help file: Process Statements
And if you need, have a look at the process modelling terminology to know what is what: Terminology
You can use them in your While/If loops and Assign statements (it looks a bit long, but it works! :wink:)

Here is an example where the Height of the can which is in an assembly in an assembly is set according to its OrderIndex:

Access Property in Assembly of Assembly_v2.vcmx (896.5 KB)

2 Likes