cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Add parameters to parts in bulk session

hkatgert
Regular Member

Add parameters to parts in bulk session

Is it possible to add a parameter to all files located in a specific folder.

Steps to be taken now for part: CROSS_REDUCING_BW_ANSI.PRT

  1. Open Generic part
  2. Add in relation:
    • BOM_DESCRIPTION=FLS_DESCRIPTION="CROSS"+" "+fitting_code+" BUTT WELD "+size:FID_PORT0+" "+branch_size:FID_PORT2
  3. Add parameter "BOM_DESCRIPTION" to family table
  4. Run "VERIFY" to update for all related instances.
  5. Check-In into Windchill

 

Reason:

We need to have the right description for all library parts and have them imported into Windchil.

3 REPLIES 3

Re: Add parameters to parts in bulk session

Hansov,

You're creating a parameter by defining a relation, so you'd need to add the relation to all the models.  The adding of relations to all the models in your WS can be mapkey'd/scripted as well as adding the BOM_DESCRIPTION to the family table and verifying the table.  If you're using mapkeys and OS scripts, error trapping is sometimes difficult if not impossible for when something goes wrong.  You may also be able to add the relation via ModelCHECK run in update mode.  We don't use ModelCHECK to check our relations, so I don't know if this will work or not.  Assuming it would work, once ModelCHECK is setup, you can run ModelCHECK in batch mode for all the objects in a folder.  This is good if all the relations are identical.

I would skip step 5 until all models are updated and you've checked that all instances verify successfully.

If you just need to add & set the value of a parameter (that is not driven by a relation) for multiple models, you can do this in the workspace via EDIT > ATTRIBUTES.  The table display will need to have a column for the parameter you're adding and setting.  If the model does not already have the parameter defined, it will be created (except for family table instances).  You need to enter each value individually, but at least you don't need to open every model individually.  For family table instances, the parameter must already exist in the model and be part of the family table in order for you to modify the value.

Regards,

Dan N.

Re: Add parameters to parts in bulk session

Being a family table, those steps should work fine.

However

Be sure you have values for: fitting_code, size and branch_size in your generic model and in the family table

You have 2 '=' signs in your BOM_DESCRIPTION string description, this will not work.

If any of the parameters (fitting_code, size, branch_size) are NOT string values, you will need to convert them to strings to use in BOM_DESCRIPTION

Re: Add parameters to parts in bulk session

Hi Ben, the 2 signs '=' is typo, which should be

  • BOM_DESCRIPTION=FLS_DESCRIPTION+"CROSS"+" "+fitting_code+" BUTT WELD "+size:FID_PORT0+" "+branch_size:FID_PORT2
Announcements