Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations KootK on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

labeling % slope and distance to feature lines

Status
Not open for further replies.

youngEIT

Civil/Environmental
Jan 4, 2008
87
labeling is pretty straight-forward, but here's what i am trying to do:
i may have a feature line with 4 or 5 vertices. after i extract the elevation from a previously built surface, i want to set up a style that will pick the Z for the very first point, Z for the very last point, divide by the overall length and return the slope, and also the overall length. i tried setting up an expression but it treats the portion of the feature line between every two vertices as a segment and returns the slope for all segments individually, that i do not want. any suggestions appreciated.
 
Replies continue below

Recommended for you

Draw a new line from beginning to end point and label that :)

Ok are you using civil 3d, because I don't believe AutoCAD can do that. A lisp routine could do that calculation, with user selecting the 3dpoly(?) and a label location.
 
yes, i am using Civil 3D 2009. do you mind sharing the lisp if you have it handy?
 
If I understand you correctly, I can get the 3D length of the line and the angle which that line makes with the horizontal plane with the command LIST. Granted I don't get the slope but do an arctan of the angle and you'll have your slope in decimal form which you multiply by 100 to get the percent value. To get these values you'll have to relocate the UCS at each vertex.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor