Simple representation material change?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Simple representation material change?
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.
- Labels:
-
General
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Nudge...any suggestions, please?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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")
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Simplified reps typically apply to geometry representation, not metadata like material.
Metadata is handled by family tables.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Assign both materials to the part. Then in relations add
PTC_MATERIAL_NAME = "MATERIAL_1"
IF PARAM == VALUE
PTC_MATERIAL_NAME = "MATERIAL_2"
ENDIF
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Thanks Dan. So could I switch between this parameter in a simple rep or would it need a family table again?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Our model is driven by Pro/Notebook. Based on inputs there, the parameters change and the material would update
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
I'm not familiar with Pro/Notebook, so I'll have to do some reading tonight!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
What issues?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
We have a family table for our bolts; somebody once checked one out by mistake and, somehow, has retained the ownership. We cannot delete the instance, the owner or anything to try and resolve it. Our service provider is currently trying to work out a solution. It also can add all instances to a workspace when only one is required. Quite frequently. Very annoying and clearly something corrupt there.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Seems more like a problem with Windchill. I think it's a design flaw with Windchill PDMLink to allow more than one revision state for family table items because there is only one file. It probably saved $10 in software development.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Which has no doubt been passed onto the end users...