Jump to content
Developer Wiki and Function Reference Links ×

path plug-in object


Recommended Posts

Main section of a path obj script that draws a poly:

BEGIN

IF GetCustomObjectInfo(objectName,objectHand,recordHand,wallHand) THEN

BEGIN

pathHnd :=GetCustomObjectPath(objectHand);

num_vert :=GetVertNum(pathHnd);

OpenPoly;

BeginPoly;

FOR i := 1 TO num_vert DO

BEGIN

GetPolyPt(pathHnd,i,x,y);

AddPoint(x,y);

END;

EndPoly;

END;

END;

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