Anuncios

The Autodesk Community Forums has a new look. Read more about what's changed on the Community Announcements board.

Extend trim lines, Arcs Autolisp

Peter_MElad
Participant

Extend trim lines, Arcs Autolisp

Peter_MElad
Participant
Participant

Auto Extend trim lines, Arcs lisp  for each layer and separate trim/extend/trim for each layer

@paullimapa @Sea-Haven @john.uhden 

0 Me gusta
Responder
976 Vistas
9 Respuestas
Respuestas (9)

Kent1Cooper
Consultant
Consultant

EDITED:

 

In the 2nd & 4th situations, this will do that:

PEDIT

Multiple option

[select stuff]

Join option

big-enough fuzz distance to catch the nearby stuff

[another Enter to conclude]

 

[If the PEDITACCEPT System Variable is set to 0, and the things in your image are Lines, you will be asked whether to convert them to Polylines for joining -- answer Yes.]

 

For the 1st [left-most] situation, what is the criterion by which a routine would be able to determine that the horizontal connector should meet the top of the right line, and the left line should extend down to that level, rather than having it meet the bottom of the left line, with the right line extending up to that level, or something in between?

 

Closing the gap in the 3rd situation is another question.  Is that a Polyline, or 5 Lines?

Kent Cooper, AIA
0 Me gusta

john.uhden
Mentor
Mentor

@Peter_MElad ,

I think we can all deduce what your goal is, but I am wondering about the leftmost figure.  How would a program decide whether to extend the right vertical line up to the bottom of the left line or to extend the left vertical line down to the top of the right line.

Seems to me you need only 3 stock AutoCAD commands... ERASE, LINE, and FILLET for all 4 figures.

Please demonstrate what you can do with arcs, or perhaps a combination of lines and arcs.

Like the three-toed sloth playing pictionary, how would you finish off one vertical line?

John F. Uhden

0 Me gusta

Peter_MElad
Participant
Participant

I think by getting the free points or lines and get the nearest to the other and joining it by lines after add lines join it and final trim 

0 Me gusta

Peter_MElad
Participant
Participant

I don't have the ability to make Lisp.

0 Me gusta

Kent1Cooper
Consultant
Consultant

@Peter_MElad wrote:

I don't have the ability to make Lisp.


But I expect you have the ability to answer questions that have been asked....

Kent Cooper, AIA
0 Me gusta

Peter_MElad
Participant
Participant

I am very sorry really, I don't see the question  ...... the left shape only parallel connect as you made to achieve  (be as far as possible from the lines)  ........ if not parallel connect with two points only. and finally close polyline (close Area)

Capture.PNG

 

Capture2.png

0 Me gusta

Peter_MElad
Participant
Participant

I am very sorry ...... the left shape only parallel connect as you made to achieve  (be as far as possible from the lines)  ........ if not parallel connect with two points only. and finally close polyline (close Area)

Capture2.png

0 Me gusta

Kent1Cooper
Consultant
Consultant

From the other topic we know that when there are different possible results, you're looking for the result with the larger area, but this partial image from Message 1 has nothing on which to base an area comparison:

Kent1Cooper_0-1686761427753.png

So will it always be in relation to more of an outline, and never like this?

Kent Cooper, AIA
0 Me gusta

Peter_MElad
Participant
Participant

I draw area but the lines with gray not only  two lines

0 Me gusta