Why does ControlPoint by code not show properly?

Why does ControlPoint by code not show properly?

martin_k5
Not applicable
20 Views
3 Replies
Message 1 of 4

Why does ControlPoint by code not show properly?

martin_k5
Not applicable

[ FlexSim 21.1.4 ]

Hi,

I have a question. When I create ControlPoint by code, it does not show properly only after I move that controlPoint by mouse it is shown properly. It is not about the visual side, but it does not work for the AGV network until I move it by mouse. These are pictures of how it creates by code and how it looks after I change its location manually.

1633078663722.png

1633078692234.png

Does anyone knows how to deal with it?

Thank you.


Martin

0 Likes
Accepted solutions (1)
21 Views
3 Replies
Replies (3)
Message 2 of 4

philboboADSK
Autodesk
Autodesk
Accepted solution
function_s(controlPoint, "finalizeSpatialChanges");


Phil BoBo
Sr. Manager, Software Development
0 Likes
Message 3 of 4

martin_k5
Not applicable
Hi,

thanks for your answer, I tried to use this line of code. In the easier model (where I only create a control point and locate it on the generated path) is does work, the little cross appears, but when I do this in a bigger model such as warehouse model it does nothing and I do not know, where is the problem... Can you give me an advice?

Thank you

0 Likes
Message 4 of 4

martin_k5
Not applicable
Little update, I had to make a new script and there I could use this function to make the proper positioning of the control point.

Thank you for your help.


0 Likes