ella0509
Mechanical
- May 19, 2004
- 66
Hi everyone,
I'm still cutting my teeth with Pro/E and hence my need for your help. I've been asked to put together an automated assembly process for a particular product such that an operator enters a particular part-code and then a BOM / Drawing and Data is created for production.
I'm not entirely sure of the best method of acheiving this with Pro/E. The assembly basically consists of a number of modules joined together. A module consists of a cylinder with endcaps suitable for joining. The entered part code will basically state how many modules are required and their size (length & dia). Using Pro/Program I can get the assembly to regenerate for two variants - i.e. 1 module & 2 modules.....however when I select say 3 modules it cannot regenerate as the 2nd module is not their (if you know what I mean).....Sorry for my long request - here is a copy of the relevant Program to help illustrate what I am doing.....029500200 is the cylinder part.
ADD PART 029500200
INTERNAL COMPONENT ID 14
END ADD
IF MODULE_QTY==2
ADD SUBASSEMBLY WELD_ECAPS
INTERNAL COMPONENT ID 15
PARENTS = 14(#5)
END ADD
ADD PART 029500200
INTERNAL COMPONENT ID 16
PARENTS = 15(#6)
END ADD
ELSE
IF MODULE_QTY==3
ADD SUBASSEMBLY WELD_ECAPS
INTERNAL COMPONENT ID 17
PARENTS = 16(*)
END ADD
ADD PART 029500200
INTERNAL COMPONENT ID 18
PARENTS = 17(*)
ENDIF
ENDIF
MASSPROP
END MASSPROP
I'm still cutting my teeth with Pro/E and hence my need for your help. I've been asked to put together an automated assembly process for a particular product such that an operator enters a particular part-code and then a BOM / Drawing and Data is created for production.
I'm not entirely sure of the best method of acheiving this with Pro/E. The assembly basically consists of a number of modules joined together. A module consists of a cylinder with endcaps suitable for joining. The entered part code will basically state how many modules are required and their size (length & dia). Using Pro/Program I can get the assembly to regenerate for two variants - i.e. 1 module & 2 modules.....however when I select say 3 modules it cannot regenerate as the 2nd module is not their (if you know what I mean).....Sorry for my long request - here is a copy of the relevant Program to help illustrate what I am doing.....029500200 is the cylinder part.
ADD PART 029500200
INTERNAL COMPONENT ID 14
END ADD
IF MODULE_QTY==2
ADD SUBASSEMBLY WELD_ECAPS
INTERNAL COMPONENT ID 15
PARENTS = 14(#5)
END ADD
ADD PART 029500200
INTERNAL COMPONENT ID 16
PARENTS = 15(#6)
END ADD
ELSE
IF MODULE_QTY==3
ADD SUBASSEMBLY WELD_ECAPS
INTERNAL COMPONENT ID 17
PARENTS = 16(*)
END ADD
ADD PART 029500200
INTERNAL COMPONENT ID 18
PARENTS = 17(*)
ENDIF
ENDIF
MASSPROP
END MASSPROP