Jump to content
Developer Wiki and Function Reference Links ×

Inserting vertex's into a custom 2D Path Object


DCarpenter

Recommended Posts

Sorry to trouble you, just hitting a wall.  I created a 2D Path Object (called 'Skirting') that creates a drape line along its defined 2D path.  Now I'm trying to create a command that converts any selected polygon, rectangle, or line, into the 'Skirting' PIO, by taking the vertices of those objects and inserting them into the 'Skirting' PIO.  The only problem is I can't figure out is how to insert those vertices that I have stored in a vector array into the PIO after calling it with  TF:=CallToolByName('Skirting');

 

Any thoughts?

Dave

Edited by DCarpenter
Link to comment

You should be able to just pass nil to the profile.

 

You can also insert with CreateCustomObject() and then set the path group. In that case, you have to deal with the path coordinates being relative to the object's insertion point. i.e. move the path to the origin, then set to the profile group.

Link to comment
  • 1 month later...

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