Skip to main content
1-Visitor
May 29, 2015
Question

Simple representation material change?

  • May 29, 2015
  • 4 replies
  • 4395 views

Hi All,

 

Is it possible to assign two materials to a part and switch between them with simple representations? I have a concept for which I would like both extruded and cast quotations in different materials; I have simple reps that switch between draft features etc, but being able to switch material would be very useful.

 

Many thanks.


This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.

4 replies

acoates1-VisitorAuthor
1-Visitor
June 3, 2015

Nudge...any suggestions, please?

1-Visitor
June 3, 2015

Yes you can..

In your family table, add a new table column.

Select "Parameter" and then select the PTC_MATERIAL_NAME parameter.

Now, type the desired material name for each instance in your fam. table.

(all materials must be defined as "Materials in Model")

1-Visitor
June 3, 2015

Assign both materials to the part. Then in relations add


PTC_MATERIAL_NAME = "MATERIAL_1"

IF PARAM == VALUE
  PTC_MATERIAL_NAME = "MATERIAL_2"
ENDIF

acoates1-VisitorAuthor
1-Visitor
June 3, 2015

Great stuff, thanks All. I'd prefer to avoid family tables if I can, so Dan: does"value" in your expression above need to be changed to anything? I'm not sure what it relates to.

1-Visitor
June 3, 2015

You could have a parameter  of CAST set to YES/NO parameter

PTC_MATERIAL_NAME = "MATERIAL_1"

IF CAST == YES
  PTC_MATERIAL_NAME = "MATERIAL_2"
ENDIF

acoates1-VisitorAuthor
1-Visitor
June 4, 2015

Thanks Dan. So could I switch between this parameter in a simple rep or would it need a family table again?

1-Visitor
June 3, 2015

Andy

Just by curiosity, any particular reasons why you are avoiding family tables?

I find family tables one of the most powerfull features in Creo

acoates1-VisitorAuthor
1-Visitor
June 4, 2015

Indeed, they have their uses, but unfortunately the are (we have found) incredibly sensitive to how they are handled in and out of Windchill which has burnt us before and leaves us with a couple of legacy issues to this day!

1-Visitor
June 4, 2015

What issues?