iztok13 Posted September 25, 2012 Posted September 25, 2012 Hello I was wondering if exist any lisp to assign elevation from text or attributes, to existing vertex polylines? I found this one from Juan Villarreal in this topic: http://www.cadtutor.net/forum/showthread.php?65776-Assigning-Elevations-to-Polylines-from-Text. .. but this only do the elevation of element not the vertices. Here is an example of polylines witch have 0.00 Z elevation and text attribute on Z value. poly to 3d text.dwg any idea please.... thank you Quote
BIGAL Posted September 26, 2012 Posted September 26, 2012 Have a look at this http://www.cadtutor.net/forum/showthread.php?7823-Get-coordinate-of-polyline-by-VBA once you have the co-ord you should be able to a "Update" of the xyz value. Also have a look at Lee-macs web site for "Polyinfo" Quote
iztok13 Posted September 26, 2012 Author Posted September 26, 2012 thx Bigal for replay , but i dont need information about polyline. I nedd to elevate polyline on the Z coordinate witch is defined in attribute definition near by polyline. See in my DWG drawing. I need lisp to set Z coordinate from attribute to polyline vertex. Quote
BearDyugin Posted September 27, 2012 Posted September 27, 2012 Neither of which is not clear. First, the usual polyline can have different elevations vertices this requires 3D polyline. Second, what to do with the vertices which are not next to the text with elevations? Third, as was inserted blocks, can be inserted to the desired coordinate Z, and then on to these blocks create 3D polyline, or just the data you used to create 3D building blocks Quote
BIGAL Posted September 27, 2012 Posted September 27, 2012 Thats what I am implying you need to "Walk" along poly line find a vertice and ask 1 of 3 questions, Pick text for Z, leave as is or Make it Zero. You could erase old 2d pline and create a new 3dpolyline. Quote
iztok13 Posted September 27, 2012 Author Posted September 27, 2012 Ok, is shure that polyline vertex dont have different z coordinate is just elevation, so i need 3d poly, but this is not a problem because u can easly convert to it. So its ok if is 3d poly. "Second, what to do with the vertices which are not next to the text with elevations?" Vertex between the block need to be interpolated between 2 blocks witch have different Z coordinate. "Third, as was inserted blocks, can be inserted to the desired coordinate Z, and then on to these blocks create 3D polyline, or just the data you used to create 3D building blocks " Need to be created 3d plyline , dont need data of vertices. I need 3d polyline to create breakline on surface. thx for replaying guys.... Quote
BIGAL Posted September 28, 2012 Posted September 28, 2012 Pick text1, Pick text2, pick Pline, find closet vertice assign Z if I under stand correctly. A few problems is the the text insertion point on the pline if not then how do you work out how far along pline ? Quote
iztok13 Posted September 28, 2012 Author Posted September 28, 2012 I forget to mention that i have thousand and more blocks & polyline. So if i do this hand by hand will be a long time (maybeeone week). So... The polyline already have vertex between the blocks, so interpolated between blocks and define Z coordinate of vertex. The mesurment between the vertex is already defined, so interpolated between two vertex define Z coordinate of vertex. if im enough understanding.. thx Quote
BIGAL Posted September 29, 2012 Posted September 29, 2012 Take the insertion points of the blocks add the Z value create 3d points then create a surface drop a pline on surface and calculate z's this is a function of Civ3d your job is done. Yes you will need some code for creating 3d points but its around. I really don't understand what it is you are doing ignoring Autocad what are you trying to do with the new 3d values on the plines are you trying to create a long section ? this is a different task and can be done. Quote
iztok13 Posted October 1, 2012 Author Posted October 1, 2012 I also did that, but surface ist not enough precision for model i need. So if i have 3d ployline i insert in surface as breakline. i saw once lisp program wich do this but i cant find it. I dont ignor autocad, but i have a lot of that point witch need to be connected with those attribut, and interpolated between if is any vertex. Vertex occur when is non linear 3d poly. I also post the file ? i dont now where is misunderstanding ? thx bigal 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.