question

Patricia_brenny R avatar image
2 Likes"
Patricia_brenny R asked Patricia_brenny R commented

Hide Objects resize arrows like the conveyor

Hey there!

I'm currently developing an object that is similar to the curved conveyor when it comes to reshaping factors, and I wanted to be able to hide the drag to resize arrows and all those visual reshaping factors from the user, so they strictly use the UI I made for that, and are unable to resize through the dragging options.

Is there some sort of flag or function I can use?

Thanks in advance.

FlexSim 23.0.1
module sdkdevelopmentsdkmodule developmentdev
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
2 Likes"
Phil BoBo answered Patricia_brenny R commented

In the onDraw() method of your object class, try calling this code:

setpickingdrawfocus(view, holder, 0, 0, OVERRIDE_DRAW_ALL);

For individual object instances if you aren't developing a custom object class, you can call this from the On Draw trigger:

setpickingdrawfocus(view, current, 0, 0, OVERRIDE_DRAW_ALL);
· 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.

Patricia_brenny R avatar image Patricia_brenny R commented ·
Thanks a lot! That was exactly what I needed and worked perfectly.
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.