Jump to content

ZIG ZAG line script/tool


Recommended Posts

I would like to be able to draw a POLYLINE with Break Line functionality eg. Break style, Break height, Break radius, space between breaks etc.so that I can draw a boundary line with a zigzag appearance that is editable. Does anyone have any ideas on how best to achieve this.

Link to comment
  • 4 weeks later...

Create a 2D Path Object.

The script must contain two parts

First part is used to obtain the vertex of the poly you draw with your new tool.

pHd := getcustomobjectpath(me);

n := getvertnum(phd);

FOR i:=1 to n DO BEGIN

GetPolylineVertex(phd, i, vx, vy, vertexType,arcRadius);


Second part is used to draw your "poly break line".

Inside you must define instruction for drawing break styles.


FOR i:=1 TO n DO

if vertexType=0 then Addpoint(vx, vy)



I hope to be worthwhile...

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.

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