TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: HasanCAD on January 04, 2016, 09:44:38 AM

Title: Lengthen in special way
Post by: HasanCAD on January 04, 2016, 09:44:38 AM
I am wondering is it possible to lengthen like No. 03

01 Before lengthen
02 Normal lengthen
03 Special lengthen while extend line and cross with fence the line goes align to fence with gap 50 and fillet 25 and specify side of lengthen

Thanks
Title: Re: Lengthen in special way
Post by: HasanCAD on January 07, 2016, 03:21:01 AM
UP
Title: Re: Lengthen in special way
Post by: Daniel J. Ellis on January 07, 2016, 03:32:25 AM
Is the fence in a fixed position?  There is a fairly simple OOTB solution.

If it is, draw a polyline starting at your original point (as in your diagram 01), up to the change in angle, so that it goes a short way up the portion along the fence.  Ensure that this is all a single polyline, starting at the point from which the lengthen would start.

Once this is set up, LENGTHEN, TOTAL , 1000, will give you what you want.

dJE
Title: Re: Lengthen in special way
Post by: HasanCAD on January 07, 2016, 10:37:59 AM
Is the fence in a fixed position?  There is a fairly simple OOTB solution.

If it is, draw a polyline starting at your original point (as in your diagram 01), up to the change in angle, so that it goes a short way up the portion along the fence.  Ensure that this is all a single polyline, starting at the point from which the lengthen would start.

Once this is set up, LENGTHEN, TOTAL , 1000, will give you what you want.

dJE
No, fence is not fixed position.

Structural Drafting needs to draw bars, in some cases we need to lengthen the bar in deference lengthen in deference direction
So I need the idea and then I'll complete the rest of the code

for example the lengthen is depend on the bar dia, and I can deal with that issue.
And so on.