Dieter @ DWorks Posted September 25, 2006 Share Posted September 25, 2006 How do you use the path plug-in object? let's say I want to draw a double line on the path. How do you do this? because this plugin object has no parameters. Quote Link to comment
Jonathan Pickup Posted September 25, 2006 Share Posted September 25, 2006 http://www.nemetschek.net/support/custom/vscript/example.php has several examples for you to lot at Quote Link to comment
ccroft Posted September 26, 2006 Share Posted September 26, 2006 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; Quote Link to comment
islandmon Posted September 26, 2006 Share Posted September 26, 2006 Any time I see a post from ccroft ... I copy the code into me vectorscript tutorials. thx Quote Link to comment
SYLVAIN Posted November 21, 2006 Share Posted November 21, 2006 I managed to do that (draw a double poly on a pathPIO) with the magic OffsetPoly command (hidden in the VWPluginLibraryRoutines.p). It also works in a different way with OffsetHandle Quote Link to comment
Recommended Posts
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.