question

Patrick Zweekhorst avatar image
1 Like"
Patrick Zweekhorst asked Steven Hamoen edited

How to scale the drawsurrogate objects?

Hi,

I have a module with an object that has a drawsurrogate. The question I have is what I need to do to make sure that the drawsurrogate scales correctely. I have added a resizeinfo node, which works good if I change the size of the object by dragging. The problem is when I change the size in the gui. The object itself changes in size, but the drawsurrogate only changes in size when I press reset. What do I have to add to make sure that the drawsurrogate object scales if I change something in the gui? Attached ( example.fsm ) is a sample model in which I have an object with a drawsurrogate object.

Thanks in advance,

Patrick

FlexSim 17.0.2
drawsurrogate
example.fsm (17.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
2 Likes"
Phil BoBo answered Steven Hamoen edited

applicationcommand("resizesubcomponents", object) will explicitly tell an object to resize its subcomponents based on its size.

As you noted, this also happens for all objects when you press Reset.

Subcomponents are also resized automatically during an animation.

I'll add a note to the dev list with the suggestion that we should resize subcomponents when you change sizes with properties and quick properties as well.

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

Patrick Zweekhorst avatar image Patrick Zweekhorst commented ·

Hi Phil,

That indeed fixed my problem. Thanks

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.