MultiBody- part - Featurename - any name - colour change

MultiBody- part - Featurename - any name - colour change

Anonymous
Not applicable
356 Views
1 Reply
Message 1 of 2

MultiBody- part - Featurename - any name - colour change

Anonymous
Not applicable

With a parts created by sheet metal multibody work flow I want to return to the part & change colour depending on thickness.

I can run a basic rule on nornal parts but the children of multibody part have their names burried within a feature & this freature name change for the different solids (solid1, solid2, solid3 etc)

I'd like to find a way for an external rule to colour change any featurename.

Thanks

Andrewfeaturename.JPG

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

Owner2229
Advisor
Advisor
Accepted solution

HiI Andrew, maybe you can use something like this?

 

Dim oDoc As Document = ThisDoc.Document
Dim oFeat As PartFeature
For Each oFeat In oDoc.ComponentDefinition.Features
    Feature.Color(oFeat.Name) = "Cadet Blue"
Next

 

Consider using "Accept as Solution" / "Kudos" if you find this helpful.
- - - - - - - - - - - - - - -
Regards,
Mike

"Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live." - John F. Woods