Clear Appearance

Clear Appearance

peteh
Enthusiast Enthusiast
1,426 Views
5 Replies
Message 1 of 6

Clear Appearance

peteh
Enthusiast
Enthusiast

 

I want to accomplish this for an Inventor part in VB.NET code.

 

Tools Tab - Material and Appearance - Clear - Select All - OK

 

Is there example code?

0 Likes
Accepted solutions (1)
1,427 Views
5 Replies
Replies (5)
Message 2 of 6

xiaodong_liang
Autodesk Support
Autodesk Support
Accepted solution

Hi,

 

I believe this API is
PartComponentDefinition.ClearAppearanceOverrides ([AppearanceOverrideObjects] As Variant )

 

AppearanceOverrideObjects is an optional input ObjectCollection including the faces, features, work surfaces and bodies to clear their appearance overrides. If this argument is not provided, then it will clear all the appearance overrides in active design view. If an object is provided that does not have an override, it is ignored.

0 Likes
Message 3 of 6

peteh
Enthusiast
Enthusiast

 

That works! - Thank you

0 Likes
Message 4 of 6

Anonymous
Not applicable

Hi,

I'm trying to do it, but in vba...

Could you give me the code for it ?

Thanks a lot,

0 Likes
Message 5 of 6

RoyWickrama_RWEI
Advisor
Advisor

Glad to hear that you got this around. I need to get around this.

Could you reply with the code used. Thanks a lot!

0 Likes
Message 6 of 6

RoyWickrama_RWEI
Advisor
Advisor

Being not a programmer, I am not able to explore your reply.

I need to get around this.

I would be most grateful if you could you reply with a sample code.

0 Likes