Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

"Extrim" of ExpressTools not always working well !

3 REPLIES 3
Reply
Message 1 of 4
Kh.mbkh
133 Views, 3 Replies

"Extrim" of ExpressTools not always working well !

Hi,

"Extrim" command of Express tools is not working always well, as in this screen.

Any idea on how to fixe this on the extrim.lsp ?

 

Thanks

Khmbkh_0-1735246105032.png

 

3 REPLIES 3
Message 2 of 4
paullimapa
in reply to: Kh.mbkh

Works for me on 3 out of the 4 different variations. I'm running 2025.1.1 

paullimapa_1-1735253801037.png

paullimapa_2-1735253850854.png

 

 

paullimapa_0-1735253689726.png

Trying to keep just the inside RED pline is where it fails:

paullimapa_4-1735254133551.png

But using AutoCAD's standard TRIM command with Mode set to Standard & Trimedges set to 0 then it works:

paullimapa_5-1735254604123.png

 

 


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
Message 3 of 4
CodeDing
in reply to: Kh.mbkh

@Kh.mbkh ,

 

A few years back, I came to an understanding (that I have never been able to confirm) that the EXTRIM command does NOT mathematically calculate where two entities intersect. Rather, it uses pixels & screen resolution to determine what/where entities need to be trimmed.

 

This is evident to me for 2 reasons:

1) When you run EXTRIM and select the entity, it immediately zooms to the extent of that entity.

2) When you have a large entity that you selected, and once the EXTRIM command zooms to the extents of that entity, then if you have any linework that cannot be discerned as inside or outside of your selected entity at that zoom level, then it will not trim that linework. (as seen in your example)

 

So, two different users who run the EXTRIM command on the same entity, may get different results based on their computer setup.

 

Which might explain why I was able to successfully EXTRIM that entity, and you are unable to.

 

extrim.gif

 

Best,

~DD


Need AutoLisp help? Try my custom GPT 'AutoLISP Ace':
https://chat.openai.com/g/g-Zt0xFNpOH-autolisp-ace
Message 4 of 4
CodeDing
in reply to: CodeDing

@Kh.mbkh ,

 

To test this theory, I have removed the lower portion of your Blue polyline (allowing for a closer zoom, thus a better trim via pixel analysis). Try EXTRIM now and see if it works. I have attached the DWG

 

Best,

~DD


Need AutoLisp help? Try my custom GPT 'AutoLISP Ace':
https://chat.openai.com/g/g-Zt0xFNpOH-autolisp-ace

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

AutoCAD Inside the Factory


Autodesk Design & Make Report