OverrideTemporaryColor vs. OverridePermanentColor

OverrideTemporaryColor vs. OverridePermanentColor

ulski1
Collaborator Collaborator
1,221 Views
1 Reply
Message 1 of 2

OverrideTemporaryColor vs. OverridePermanentColor

ulski1
Collaborator
Collaborator

hi,

I found the "new" api feature OverrideTemporaryColor. Could someone in the Autodesk team explain what the presice differnce is between this and the old OverridePermanentColor? I understand from the name that one is permanent and one is temporary. Problem is none of them seems to prevent Navisworks from reverting back to the original color if the user press reset appearance.

 

so what is the difference?

 

Ulrik

0 Likes
1,222 Views
1 Reply
Reply (1)
Message 2 of 2

xiaodong_liang
Autodesk Support
Autodesk Support

Hi ulski,

 

The root why we provided this new method is because the issue below:

If a saved viewpoint enables 'Override Appearance' . The model will be overridden with the new color. When using the API method OverridePermanentColor, the model color cannot be reset to the PermanentColor. However if click [Reset All Appearance] in UI, the color can be reset.

 

The reason is because for 2015, we changed the way overrides in saved views are applied. They now affect the “temporary” override, instead of the “permanent” override. The API only has methods to control the “permanent” override, which is why we cannot see them change when he calls the method.

 

So, we provided the new method OverrideTemporaryColor.

 

Hope it make sense.