question

Martin K5 avatar image
0 Likes"
Martin K5 asked Martin K5 commented

How to update object/model view when importing custom object?

Hi,


I am trying to import custom object by code which I do with updating object's shape node value. I can see it in the treenode structure but the 3D shape does not update its appearance.


I am attaching a sample model with the short code snippet and the demo custom object.

Thank you.


test_demo.fsm

untitled.obj

FlexSim 23.2.0
custom codecustom object
test-demo.fsm (25.3 KiB)
untitled.obj (939 B)
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

·
Felix Möhlmann avatar image
1 Like"
Felix Möhlmann answered Martin K5 commented

Use ".setProperty()" to update the shape.

obj.setProperty("Shape", "C:/Users/.../Downloads/untitled.obj");
obj.applyProperties("Shape");
· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Martin K5 avatar image Martin K5 commented ·
Great, thank you a lot.
0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.