PART COLOR OVER RIDE

PART COLOR OVER RIDE

Lupe_Stewart
Advocate Advocate
257 Views
1 Reply
Message 1 of 2

PART COLOR OVER RIDE

Lupe_Stewart
Advocate
Advocate

 I have an issue with a person overriding the color appearance of certain parts.... is there a way to lock the appearance when making the material, 

Example: MATERIAL - ASTM A240-304 - CHROME

 

0 Likes
Accepted solutions (1)
258 Views
1 Reply
Reply (1)
Message 2 of 2

WCrihfield
Mentor
Mentor
Accepted solution

Hi @Lupe_Stewart.  I have never heard of a way to 'lock' that.  When you specify an appearance within a material, that just sets its 'default' appearance, but that can still be overridden.  You can create a DVR (DesignViewRepresentation) while the appearance is set the way you want it, then 'lock' that DVR, but that too can be worked around by simply setting the active DVR to the 'Master' DVR or creating a new DVR.

Here is a fairly simple iLogic rule you could try to use to automatically re-set the active material's 'default' appearance as the part's active appearance.  There is not really a good trigger in the iLogic Event Triggers dialog for automatically running this though, because there is a trigger for 'Material Change', but not one just for 'Appearance Change'.

If ThisDoc.Document.DocumentType <> DocumentTypeEnum.kPartDocumentObject Then
	MsgBox("A Part Document must be active for this rule to work. Exiting.", vbCritical, "")
	Exit Sub
End If
Dim oPDoc As PartDocument = ThisDoc.Document
Dim oMatl As MaterialAsset = oPDoc.ActiveMaterial
Dim oDefaultAppearance As Asset = oMatl.AppearanceAsset
If oPDoc.ActiveAppearance IsNot oDefaultAppearance Then
	oPDoc.ActiveAppearance = oDefaultAppearance
End If

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

0 Likes