×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

labeling % slope and distance to feature lines

labeling % slope and distance to feature lines

labeling % slope and distance to feature lines

(OP)
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.

RE: labeling % slope and distance to feature lines

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.

RE: labeling % slope and distance to feature lines

(OP)
yes, i am using Civil 3D 2009. do you mind sharing the lisp if you have it handy?

RE: labeling % slope and distance to feature lines

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.

RE: labeling % slope and distance to feature lines

Well I didn't mean I had it, just that it could be done, and a fairly simple routine.
I just saw a similar routine, it may even work but with extraneous pipe information.  With a little editing it may do the job.
http://www.cadtutor.net/forum/showthread.php?t=34538
 

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources