Jump to content
Sign in to follow this  

"External" control point

Recommended Posts

Hi to all,

i can't find the function for activate a "control point" freely movable by user. I'll try to explain better.

I have a linear object, so (in 2D) i have 2 control points for start and finish. I need a third control point, visible in 2D, and i need to know x and y of this point (like the positioning of text in space tool).

How can i do it?

Thanks, and sorry for my english, i hope you understand what i mean.


Share this post

Link to post

You need to add a Control Point parameter to the plugin definition. By default they are named in concecutive order so the first one will be named "ControlPoint01". You can get the x & y location either by calling the constants PCONTROLPOINTO1X & PCONTROLPOINT01Y or through the GetRField procedure with 'ControlPoint01X' & 'ControlPoint01Y' as the field names.

As with any other parameter, the x & y values will be visible in the Object Info Palette (OIP) and to hide it you will need to set the parameter visibility to FALSE.

Share this post

Link to post

Is it possible to hide the control point parameter from the "default parameters" showed when I click the tool bar button (attached image)? I can't rename it so in this case I can't use "__name" to hide it, and if I use "SetParameterVisibility" it only hide the parameter from the OIP!

Edited by andreavw

Share this post

Link to post

Depending on your target version, vsoWidgetSetVisible may not work as it was only resently implemented.

For this reason, I only add the parameters that I want visible in the OIP with

FUNCTION vsoAppendParamWidget( parameterID :LONGINT; text :STRING; data :LONGINT) :BOOLEAN;

which will work with VW 2008 & up.

Share this post

Link to post

Thank you all!

I make it event enabled; adding parameters by function is too complicated for me :( !

Share this post

Link to post

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.

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.

Sign in to follow this  


7150 Riverwood Drive, Columbia, Maryland 21046, USA   |   Contact Us:   410-290-5114


© 2018 Vectorworks, Inc. All Rights Reserved. Vectorworks, Inc. is part of the Nemetschek Group.

  • Create New...