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

Community Tip - Your Friends List is a way to easily have access to the community members that you interact with the most! X

Material for Inheritance model

pdiletti-2
11-Garnet

Material for Inheritance model

Hello everybody,

I wonder if it's possible to have in an inheritance model, in automatic way,

as assigned material the same we have in the reference model.

Thanks a lot

Pierluigi 

3 REPLIES 3
Chris3
20-Turquoise
(To:pdiletti-2)

No.

 

This has been discussed as an enhancement request but currently you can't do it.

I supposed, thanks,

but I also hoped in any work-around or trick to be able to solve the point !

Pier

 

dnordin
15-Moonstone
(To:pdiletti-2)

Pierluigi,

There is a work around for the issue by using a notebook to drive the material.

  1. Create a notebook (the old layout tool).
  2. Add a string parameter to the notebook with the value of one of the material file names. I used MY_PTC_MATERIAL_NAME.
  3. Save the notebook.
  4. When you create your first inheritance model, add all the possible materials that are applicable to the model. [I suggest naming the first inheritance model with a suffix of _master or such to distinguish it as the "template" for other inheritance models.]
  5. In the inheritance model, declare the model to the notebook.
  6. In the inheritance model, create the relation PTC_MATERIAL_NAME=MY_PTC_MATERIAL_NAME
  7. Save the inheritance model.
  8. Use the first inheritance model to create all the other inheritance models you need to create. NOTE: because the model has external dependencies, it cannot be used as a template model (start model). You need to use save-as to create the other inheritance models.
  9. When you want to change the material for all the inheritance models, you need to open all the inheritance models along with the notebook file, update the MY_PTC_MATERIAL_NAME in the notebook, and regerate all the inheritance models.

 

Not the most graceful method, but it will work.

Regards,

Dan N.

Top Tags