Community
Civil 3D Customization
Welcome to Autodesk’s AutoCAD Civil 3D Forums. Share your knowledge, ask questions, and explore popular AutoCAD Civil 3D Customization topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

TinSurface AddLine

3 REPLIES 3
Reply
Message 1 of 4
Alexey.Terno
311 Views, 3 Replies

TinSurface AddLine

TinSurface have AddLine function with two parameters - vertex1 and vertex2 as TinSurfaceVertex.

How can I create a new TinSurfaceVertex for using AddLine function?

3 REPLIES 3
Message 2 of 4
Jeff_M
in reply to: Alexey.Terno

Just like Adding a Line inside of C3D, you would use the end points of existing TIN lines. If you need to add a line at a random location, use the AddVertex method to add the 2 end points..the TinSurface may create the desired line when adding these, depending on the relationship to the surrounding vertices.
Jeff_M, also a frequent Swamper
EESignature
Message 3 of 4
Alexey.Terno
in reply to: Jeff_M

Two new points not always will create a line (triangle edge).


I will check AddStructureLine function... it seems it what I need.

Message 4 of 4
Jeff_M
in reply to: Alexey.Terno

Yes, that's why I said it MAY create the line. You can check if the line was created by usseing the FindEdgeAtXY and passing the midpoint between the 2 vertices you add. If it does not find an edge, add the line.

 

AddStructureLine? I am not seeing that in the API docs....

 

 

Jeff_M, also a frequent Swamper
EESignature

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Rail Community


 

Autodesk Design & Make Report