dlrose Posted June 3, 2004 Share Posted June 3, 2004 I have a *.dxf import from a surface tracing instrument which imports as a series of 2D loci. As loci don't print, how can I get Vectorworks 10.5.1 to draw a line between this series of loci? Quote Link to comment
Guest Posted June 3, 2004 Share Posted June 3, 2004 You need to draw a line between the two loci. An accurate line will be drawing since you can snap to loci points. Quote Link to comment
dlrose Posted June 3, 2004 Author Share Posted June 3, 2004 Thanks Katie. I don't suppose there is any other way to do this as I have several thousand points to connect? Dave Quote Link to comment
propstuff Posted June 3, 2004 Share Posted June 3, 2004 Is the thing exporting the DXF exporting any information other than Loci? If all you're getting is Loci, how would VW know which Loci to join to which? An export as polygons might be more successful. N. Quote Link to comment
Petri Posted June 4, 2004 Share Posted June 4, 2004 There is a tiny chance that the points are in a sensible sequence. No harm done it you try this script: PROCEDURE JoinTheDots; VAR obHd : HANDLE; x1, y1, x2, y2 : REAL; BEGIN obHd := LACTLAYER; GETLOCPT(obHd, x1, y1); WHILE obHd <> NIL DO BEGIN obHd := PREVOBJ(obHd); GETLOCPT(obHd, x2, y2); MOVETO(x1, y1); LINETO(x2, y2); x1 := x2; y1 := y2; END; END; RUN(JoinTheDots); Quote Link to comment
dlrose Posted June 8, 2004 Author Share Posted June 8, 2004 The points are in a relatively sensible sequence. Actually it is a surface tracing device that traces the face of a golf club to measure the scorelines; so, the "x" value is always increasing as the trace moves over the surface and the "y" value varies with "x". I am new to scripts but will play with it. THANKS A TON for your help! Dave 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.