Jump to content

drawing a rect with a vso plugin


Recommended Posts

You can set the type of PIO in the plug-in manager to be rectangle or path based. 
 

In the case of the rectangular PIO, you have width and length as default parameters. The oddity with rectangles, is the origin is the center-left. 
 

For path-based plug-ins, the path is stored in a “path group” attached to the plug-in. You have vs commands for accessing the path group. You would either copy the polyline into your object, or parse the path’s vertices and use for your code. 

  • Like 1
Link to comment
1 hour ago, JBenghiat said:

You can set the type of PIO in the plug-in manager to be rectangle or path based. 
 

In the case of the rectangular PIO, you have width and length as default parameters. The oddity with rectangles, is the origin is the center-left. 
 

For path-based plug-ins, the path is stored in a “path group” attached to the plug-in. You have vs commands for accessing the path group. You would either copy the polyline into your object, or parse the path’s vertices and use for your code. 

 

well would you look that! also its kinda a bummer that the rectangular tool is center based, very odd looking... after trying them all out the path based plugin will probably be my answer for now. ill have to look into what vs commands i need to call to set the path as a visible object on the screen. thanks for the help! 

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