Continue to Site

Welcome to MCAD Central

Join our MCAD Central community forums, the largest resource for MCAD (Mechanical Computer-Aided Design) professionals, including files, forums, jobs, articles, calendar, and more.

Update Parameter List

Borisw37

New member
I have an assembly with a large number of parts. Not all parts have the same set of PARAMETERS. Is there a way to automatically add missing parameters(from a predefined list)to each part?


Example:


Mandatory list of Parameters:


PART_NO, SUPPLIER, REV_NO


Part A only has PART_NO, thus it needs to have the other two added in.
 
Since the company i work for haven't used parameters. I created a Mapkey basically added in all of those "Parameters" that i needed. The only probably that i ran into was, if a part had one of those parameters that i'm trying to add, it stops the Mapkey from finishing. So i just make sure i remove any parameters before running the Mapkey...
 
You have a couple of options. Depends on how many models, how large the
assembly hierarchy is, and how many parameters you need to add.


Using an API such as Pro/WebLink or J-Link, you can traverse the assembly
hierarchy and add the missing parameters as needed. I can post an example
on my blog if that is of interest to you. This works really well when the
assembly hierarchy has lots of models or when you haave to create several
parameters for all models. It usually works very quickly.


Another option is to use the Model Tree. If you add the parameters as
columns, then you can see which do not have values. Clicking in the blank
Model Tree cell will allow you to create the missing parameter. One of
the rules available in the Search Tool (Ctrl+F) allows you to search for
parameter names that do not exist in models. Using these together would
allow you to filter the Model Tree to show only the models with missing
parameters. This would make it easier to add the parameters for only the
models that need them.


Mapkeys are another option. For more than just the current model or for
entire assemblies (including components), they don't scale well.



Marc
 
Marc,


A sample J-Link code would be very usefull. Could you post it and let me know what the link is.


Thak you,


Boris.
 

Sponsor

Back
Top