Jump to content
Developer Wiki and Function Reference Links ×

PIO with symbol inside - how do I get a bounding box for that?


VvierA

Recommended Posts

Hello,

I made a PIO with a symbol inside.

When I activate the PIO in the drawing there is ONE modification point so that the symbol can be moved individually and independently from the PIO itself.

That's nice, but I'd like to have more modification points around the symbol, i.e. a bounding box or something like that.

Can anybody give me a hint in which direction to research?

VvierA

Link to comment

Are you asking about control points? You can have as many control points as you like.

You can set the position of a control point with SetRField, just like any parameter.

The trick is you need to know which control point (if any) has been moved and to update the others accordingly. For this you need to use an event and state enabled object and vsoStateGetParamChng.

http://developer.vectorworks.net/index.php/VS:vsoStateGetParamChng

Note that the parameter index counts each control point's x and y coordinates separately, so if you look at the parameter list in the plug-in editor, you need to add 1 to the parameter numbers after every control point.

-Josh

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...