Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

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

Status
Not open for further replies.

Cradders

Materials
Mar 26, 2008
19
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
 
Replies continue below

Recommended for you

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
 
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
 
Thanks guys, I'll have a look at the t=0.xx method.

Cheers!
 
Expressions are the way to go.

Believe it if you need it or leave it if you dare. - [small]Robert Hunter[/small]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor