How to save the current base position of a robot by FlexScript?

jiaqzhao
Not applicable
0 Views
5 Replies
Message 1 of 6

How to save the current base position of a robot by FlexScript?

jiaqzhao
Not applicable

[ FlexSim 24.1.0 ]

I have replaced the 3D geometry of the robot joints, but when I play the simulation and press "reset", the robot goes to another gesture. Is there a way to save the current base position of a robot after I finish the settings of each joint by FlexScript?

0 Likes
1 View
5 Replies
Replies (5)
Message 2 of 6

jason_lightfootVL7B4
Autodesk
Autodesk

You could try changing the resetposition column values in this table, but I'm not sure if the model assumes the given starting position:

1709737678250.png

0 Likes
Message 3 of 6

jiaqzhao
Not applicable
Is there a function to save the base position? Like we press the button in the robot animation module.
0 Likes
Message 4 of 6

joerg_vogel
Not applicable

@royjuventus29, you find all in tree: here in View tree of an opened window from Robot Properties in active views

robot-apply-to-reset.jpg

0 Likes
Message 5 of 6

joerg_vogel
Not applicable

@royjuventus29, save base position is a button of window. Thus there is a event function OnPress. And such a node can you execute by nodefunction command or you can copy and adjust a code as needed.

onpress-save-base-positions-view-tree.jpg


0 Likes
Message 6 of 6

jason_lightfootVL7B4
Autodesk
Autodesk

Hi @royjuventus29,

We haven't heard back from you. Were you able to solve your problem? If so, please add and accept an answer to let others know the solution. Or please respond to the previous comment so that we can continue to help you.

If we don't hear back in the next 3 business days, we'll assume you were able to solve your problem and we'll close this case in our tracker. You can always comment back at any time to reopen your question, or you can contact your local FlexSim distributor for phone or email help.

0 Likes