question

yuan zhang avatar image
2 Likes"
yuan zhang asked Phil BoBo commented

Draw custom sizers on BasicTE like ASRSvehicle and Crane

Hi,

I developed a ASRS by BasicTE and configured all the components(Lift,BottomRail,Beam,Car...) in the animation.How can it be like the default ASRS :We can add custom sizers .And when resize the arrow, we can change the size of the components.

attach asrsv20182.fsm

Thanks!

FlexSim 18.2.3
asrs
asrs.png (77.5 KiB)
crane.png (92.1 KiB)
bcte.png (81.9 KiB)
asrsv20182.fsm (19.7 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
2 Likes"
Phil BoBo answered Phil BoBo commented

In OnDraw, use setpickingdrawfocus() before drawing a cone in order to set a custom picking value.

See MAIN:/project/library/taskexecuters/Crane>behaviour/cppfunctions/onDraw(treenode view)

Then in OnDrag, use getpickingdrawfocus() to see what is being dragged and adjust various components accordingly.

See MAIN:/project/library/taskexecuters/Crane>behaviour/cppfunctions/onDrag(treenode view)

· 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.