question

wooram-kim avatar image
0 Likes"
wooram-kim asked Felix Möhlmann answered

How to save base positions of comopents with Flexscript?

Hi,

I want to save positions of components in 3D object with flexscript. [Animation and Components] serves the function with User Interface (ref. 1st figure). Can I use the fuction with Flexscript?

Thank you.

그림2.png

FlexSim 24.1.1
animationcomponentsbase position
그림2.png (680.6 KiB)
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
0 Likes"
Felix Möhlmann answered

For many GUIs in FlexSim you can right-click and choose "View -> Explore Structure". This opens a tree view of the GUI where you can search for the code that gets executed when you click a button.

1733209363234.png

1733209384952.png

You would probably remove the "begin-" and "endaggregateundo" functions, so you don't have to provide a reference to a view. Then you only need to have a reference to the obj (line 1) and should be able to use the rest of this code as is.


1733209363234.png (18.6 KiB)
1733209384952.png (128.9 KiB)
5 |100000

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