Message 1 of 4

Not applicable
12-05-2018
10:55 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Public Sub SetAppearanceToGreenRubber() Dim odoc As Document Set odoc = ThisApplication.ActiveDocument odoc.AppearanceSourceType = AppearanceSourceTypeEnum.kMaterialAppearance odoc.Update odoc.ActiveAppearance = odoc.AppearanceAssets.Item("Rubber - Green") odoc.Save 'odoc.Close End Sub
Sometimes this works the first time, sometimes I have to run it twice.
More:
I have some parts that I created from a multibody solid - the outer appearance is green rubber (for ..."reasons"), but the section shows as either "generic" or the material. So, I want to clear the override appearance, then set the appearance to green rubber. Close is commented out, because I sometimes have to hit the macro 2x.
Any ideas?
Solved! Go to Solution.