Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • 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
Joined
Mar 26, 2008
Messages
19
Location
GB
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
 
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

Back
Top