Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
Daan_M
296 Views, 4 Replies

Appearance of model dissapears after importing or exporting it

Hi,

 

I configure a motor in a assembly and change the appearance by using;

 

 

 

Dim oDoc As AssemblyDocument = ThisDoc.Document
Dim oAssetDef As Asset = oDoc.Assets.Item("Default")

For Each oOcc In oACD.Occurrences
oACD.Occurrences.ItemByName("Name").Appearance = oAssetDef
Next

 

 

 

This results in the desired appearance;

 

Daan_M_0-1677839410280.png

 

But when i  place this motor inside a new assembly, or export this as .STP and open it again, it keeps the old appearance;

 

Daan_M_1-1677839499943.png

 

How do i make sure it keeps the default looks, also when exporting it?