×
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

Snapping to 25%, 33%, ##% of a line's length

Snapping to 25%, 33%, ##% of a line's length

Snapping to 25%, 33%, ##% of a line's length

(OP)
Hello, another question!

Is it possible (through snap points or expressions) to draw a line that is a specified percentage of another line's length? I don't want to reference a specific line, but say, the line that is currently selected. I am making a UDF that is based on the selection of a line and want to generate a line that is a certain percentage of that line.

Thanks,

James

RE: Snapping to 25%, 33%, ##% of a line's length

Hi,
if you are sure you will deal with LINES only, one thing that comes into my mind is to create a first point entity at 0% length (t=0), then a second one at xx% (t=0.xx), then create a line between these two points.
Certainly in the myriad of UG tools there is something better than what I described...

Regards

RE: Snapping to 25%, 33%, ##% of a line's length

If you know how long the line is then by using the reference method and distance along a line sure, just type the calculation under the length expression as you go. It wouldn't be something that you want to do frequently but I expect the need would not be very common.

Best regards

Hudson

RE: Snapping to 25%, 33%, ##% of a line's length

(OP)
Thanks guys, I'll have a look at the t=0.xx method.

Cheers!

RE: Snapping to 25%, 33%, ##% of a line's length

Expressions are the way to go.

Believe it if you need it or leave it if you dare. - Robert Hunter
 

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