Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
KarlH_
in reply to: Anonymous

Wondering if anyone has found a different/easier method of executing the below Part Colour commands from an assembly without having to host the code within the part itself;

 

iProperties.PartColor = Part_Colour
iLogicVb.UpdateWhenDone = True

Logger.Info(ThisDoc.FileName.ToString + ", " + iLogicVb.RuleName.ToString + ", " + Part_Colour)

 

I've tried a few methods of changing the part colour from an assembly, but all have proven messy due to multiple View Reps (in both part and assembly) with unwanted colour overrides messing things up. 

 

The "iProperties.PartColor" command does exactly what I need when executed in the Part whilst the Master View Rep (as all other Part View Reps then match the master) is active - however it's annoying knowing that I'm nesting this code within the part, when really I'm needing it executed from the assembly upon the part(s).

 

Appreciate anyone's help on this!

 

As a side note, I've solved this problem with iLogic external rules but unfortunately can't use them in the dev environment due to reasons.