Appearance of model dissapears after importing or exporting it

Appearance of model dissapears after importing or exporting it

Daan_M
Collaborator Collaborator
330 Views
4 Replies
Message 1 of 5

Appearance of model dissapears after importing or exporting it

Daan_M
Collaborator
Collaborator

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?

 

 

0 Likes
331 Views
4 Replies
Replies (4)
Message 2 of 5

Daan_M
Collaborator
Collaborator

Bump

0 Likes
Message 3 of 5

raith-mb
Advocate
Advocate

You change the Appearance of the Motor in this IAM only.

It is like painting the Motor inside this assembly.

You have to take the Motor itself and paint it.

Access the Motor-file and change the Apperance.

 

Regards

Roland

Message 4 of 5

Daan_M
Collaborator
Collaborator

These motors are assembled out of 5+ parts inside an assembly.

If i understand correcly i would have to go inside the individual partfiles and change their material and or appearance?

 

The problem is i have about 1200 possible partfiles that can be used to configure a motor.

I don't want to go into each partfile and change it, there must be an automated way to do so from within my assembly. 

 

Any ideas for this?

 

 

0 Likes
Message 5 of 5

raith-mb
Advocate
Advocate

Sure you can do this from the main IAM.

But you have to "target" the 5 IPTs inside the Motor-IAM.

For each IPT change the Apperance and save the IPT.

But each time you have a new configuration with one of your 2000 Motor parts you did not have before, you have to run your function ones again.

 

Other way: If you have all different IPTs in one folder, you could put the IPTs into a IAM, change all Apperances and save the IPTs.

 

Regards

Roland

0 Likes