question

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

Why does ControlPoint by code not show properly?

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

FlexSim 21.1.4
codecontrolpoint
1633078663722.png (11.2 KiB)
1633078692234.png (11.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

·
Phil BoBo avatar image
0 Likes"
Phil BoBo answered Martin K5 commented
function_s(controlPoint, "finalizeSpatialChanges");
· 2
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 ·
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 0 ·
Martin K5 avatar image Martin K5 commented ·
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 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.