abheme
Mechanical
- Apr 22, 2010
- 4
I have different sized cabinets that I would like to assemble in Pro/e. I have created a small assembly in Pro/e with the cabinets arranged as I would like, and I am able to EDIT DESIGN within my Pro/e program and modify the code for this assembly to show the cabinets in a different order than my original assembly. However, I want to be able to do this from user input (selecting which parts to add and in which order). Instead of modifying an existing assembly (where the Internal Component IDs are known), is it possible to write code within Pro/e to take part names as input without having this component ID that I believe is assigned in the assembly?
...
ADD PART A4_H2_STANDARD
INTERNAL COMPONENT ID 47
END ADD
ADD PART B1_H2_STANDARD
INTERNAL COMPONENT ID 50
PARENTS = 47(#5)
END ADD
ADD PART B2_H2_STANDARD
INTERNAL COMPONENT ID 52
PARENTS = 50(#6)
END ADD
...
Thanks!
...
ADD PART A4_H2_STANDARD
INTERNAL COMPONENT ID 47
END ADD
ADD PART B1_H2_STANDARD
INTERNAL COMPONENT ID 50
PARENTS = 47(#5)
END ADD
ADD PART B2_H2_STANDARD
INTERNAL COMPONENT ID 52
PARENTS = 50(#6)
END ADD
...
Thanks!