Join our MCAD Central community forums, the largest resource for MCAD (Mechanical Computer-Aided Design) professionals, including files, forums, jobs, articles, calendar, and more.
I don't think you can hide using Program, but you can have the other two components not regenerated (in essence, suppressed) in the assembly.
After writing the prompt in the Input section, then you can put IF and ENDIF statements around the components. For example,
IF input_parameter == A
ADD PART A
INTERNAL COMPONENT ID xx
PARENTS = blah blah blah
END ADD
ENDIF
...and so forth for components B and C.
There is also a way to choose which components you are using with Interchange Assemblies and Family Tables, but the Interchange Assemblies are a little more complicated and require a license of Advanced Assembly Extension (AAX).
If you create a string parameter "which_model"toselect which model is resumed (required) and also write a 'header' above the component in the program listing to say:-
If which_model==a/b/c
(add comp etc
comp a blah)
endif
the bits in brackets are from the program listing
This will control the resume/suppression of the assembly according to a user input upon regeneration. prompt to be included
you will also need to create the same controls in a family table and add/suppress each model to the column which_model if you do not want the user to be able to resume the component from the model tree, then the supression is shown as controlled by program in the model tree. this way the only control is by the pro-program prompt and resume component will have no overiding effect.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.