srikanthkamuju Posted April 2, 2010 Posted April 2, 2010 Hi All i am taking 2d polyline as input i want the coordinates of that polyline with bulge factor. later on how to draw a 3d poly line with that same points Thanks in advance Quote
lpseifert Posted April 2, 2010 Posted April 2, 2010 I don't think 3Dpolylines can have a bulge factor, must be straight segments. Quote
MSasu Posted April 2, 2010 Posted April 2, 2010 If understand well your issue, the code below will allow you to create a list with vertexes of polyline (no error protections), next use SUBST function to modify the Z coordinate with desired amount (this code should be based on length of vertexes list) and generate the 3D polyline from this list. (setq PLineEntity (car (entsel "Select polyline: ")) ;select polyline to list PLineAssocList (entget PLineEntity) ;get his associated list VertexesList '()) (foreach SubList PLineAssocList ;parse polyline to list vertexes (if (= (car SubList) 10) ; code DXF 10 = vertex (setq VertexesList (append VertexesList ;store vertex coordinates (list (cdr SubList)))) ) ) Regards, Quote
MSasu Posted April 2, 2010 Posted April 2, 2010 In fact seems that the OP is looking for a VBA solution – the same is posted in AutoCAD Beginners' Area, also… Quote
alanjt Posted April 2, 2010 Posted April 2, 2010 I don't think 3Dpolylines can have a bulge factor, must be straight segments. You could in the old-school 2d ones. Quote
David Bethel Posted April 3, 2010 Posted April 3, 2010 Here is a routine in Autolsip that will convert any LINE, ARC or *POLYLINE to a 3DPOLY. -David FIXPATH.LSP Quote
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.