AutoCADLT2025

AutoCADLT2025

leonardohs1104
Contributor Contributor
1,532 Views
22 Replies
Message 1 of 23

AutoCADLT2025

leonardohs1104
Contributor
Contributor

Hello, is there any way to automate this process? I have provided a simple example, but my projects consist of numerous lines like this, which need to be trimmed using the "trim" command. I would like to know if there is a way to automate this, through a macro or LISP.

 

Thanks.

Captura de tela 2024-10-15 112332.png

 

@leonardohs1104 - moderation team edited title for better clarification

0 Likes
Accepted solutions (1)
1,533 Views
22 Replies
Replies (22)
Message 2 of 23

jskalaXDDX5
Advocate
Advocate

FENCE selection might help?  Maybe put in a CUI macro...

0 Likes
Message 3 of 23

leonardohs1104
Contributor
Contributor

how do i make a fence selection? after select, my F command is "Fillet"

0 Likes
Message 4 of 23

jskalaXDDX5
Advocate
Advocate

Try TRIM Enter FENCE Enter...TRIM command seems like one that has been updated lately...maybe check back through the Forums or browser search for latest info...

 

I use peripheral with Macroworks 3.1  Macro with that looks like this

 

jskalaXDDX5_0-1729004948509.png

The two Enters after TRIM works as Select ALL, I think...I am using 2023 so again the TRIM Command may have changed recently...

0 Likes
Message 5 of 23

jskalaXDDX5
Advocate
Advocate

You can type F instead of FENCE

0 Likes
Message 6 of 23

leonardohs1104
Contributor
Contributor

I was able to access the "FENCE" command, but it's still not what I need. We work on drawing cities, and when we start designing them from scratch, the initial aspect looks like this, as shown in the image below. Executing the "TRIM" manually takes a lot of time. The solution would be something automatic to trim only the small quadrants. I'm not sure if it's possible.

 

 

Captura de tela 2024-10-15 124353.png

0 Likes
Message 7 of 23

paullimapa
Mentor
Mentor

@leonardohs1104 requires LT 2024+

the code provided on this website does work but requires you to select each intersection one at a time

https://autocadtips1.com/2012/02/17/autolisp-x-shape-wall-intersection-clean-up/


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Likes
Message 8 of 23

pendean
Community Legend
Community Legend

@leonardohs1104 Since it looks like one, why not use a custom hatch pattern with that look instead? All you need to know is what all those dimensions are to be.

pendean_0-1729010833481.png

 

0 Likes
Message 9 of 23

leonardohs1104
Contributor
Contributor

@paullimapa ok, i will analize, thanks for your time.

@pendeanthis drawing was a simple example, but is not perfect quads hahaha, here in Brazil, the streets are irregular, so, i think custom hach is not recommended for me, but thank you for your opnion

0 Likes
Message 10 of 23

Sea-Haven
Mentor
Mentor

Look at CAB's Breakall.lsp will do what you want, BUT a big but may not work with LT25.

 

Once you break all you can find the short lines and delete them yes I know it works used in concrete slabs. 

 

Please test and let us know.

0 Likes
Message 11 of 23

leonardohs1104
Contributor
Contributor

@Sea-Haven, i wanna do like this video https://www.youtube.com/watch?v=swwDirFKB9o

 

but i can't dowload this plugin, the company dont give me this access

0 Likes
Message 12 of 23

annoisscary
Advocate
Advocate

Looks like you could just use a rectangular array instead of drawing lines and trimming to me.

0 Likes
Message 13 of 23

leonardohs1104
Contributor
Contributor

No, because this example there are perfects rectangles, but in real life, is no like this

 

The image below, is part of a city that i am working right now, i've finished the drawing, but i've trimmed all the corners mannually

 

Captura de tela 2024-10-16 121128.png

0 Likes
Message 14 of 23

pendean
Community Legend
Community Legend

@leonardohs1104 wrote:

...

 

Captura de tela 2024-10-16 121128.png


So your latest image is not perfectly sharp corners (nor do you want them to be if you create city street maps app day): what radius are you going to look for and need? Otherwise you'll be manually creating them in which case the last lisp offered is as good as it is going to get.

 

I've only highlighted a few of the many choices that need to be made

pendean_0-1729093475250.png

 

0 Likes
Message 15 of 23

leonardohs1104
Contributor
Contributor

So, like the video link I sent, cutting the crossings to create the corners would be the first step. After that, the next step would be to round the 90° vertices. So, the primary need would be this, and then possibly an automation to round them as well, but that would be another case. The last LISP offered only breaks the polylines, which isn't very useful for me, since cutting the intersections already results in them being cut.

Regarding the highlighted cases, it wouldn’t necessarily need to cut them, as I can do that manually since they are occasional cases. The biggest help would be to cut most of the corners.

0 Likes
Message 16 of 23

Sea-Haven
Mentor
Mentor

You say can not download then how do you expect to get a solution ? Does not make sense. Breakall works great.

0 Likes
Message 17 of 23

jskalaXDDX5
Advocate
Advocate

Executing the "TRIM" manually takes a lot of time. 

 

I know this is not what you are hoping to find, but if you can't find it, or in the meantime if you are stuck doing things manually you could at least cut down on keystrokes...

 

*^C^C_TRIM;;FENCE;\\;;
*^C^C_FILLET;FENCE;\\;

From the CUI, Commands repeat, TRIM multiple intersections at the same time, can only FILLET one corner at a time, but once one is in the Command it's just Mouse Clicks...FILLET macro could be expanded to specify radius...

 

I would again suggest peripherals...below is FILLET...with TRIM above one would end up with six keystrokes max per intersection...nowhere as cool as the LISP so I hope you find what you want...

 

jskalaXDDX5_0-1729165060501.png

 

0 Likes
Message 18 of 23

leonardohs1104
Contributor
Contributor

did you guys saw the video i sent?

0 Likes
Message 19 of 23

jskalaXDDX5
Advocate
Advocate

did you guys saw the video i sent?

 

Yes.  The video looked like an advertisement for a Plug In...or Dramamine...or both.  The end result looked pretty cool though and if that is what you really want you might consider asking whoever made the video...and the Plug In...

0 Likes
Message 20 of 23

leonardohs1104
Contributor
Contributor

Yes, the problem is the company dont let me install external plugins, but, apreciate your time spend. Many thanks!

0 Likes