Jump to content

Assigning Elevations to Polylines from Text (attributes)


Recommended Posts

Posted

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

Posted

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.

Posted

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

Posted

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.

Posted

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

Posted

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 ?

Posted

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

Posted

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.

Posted

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

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
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...