marko_ribar Posted April 10, 2023 Posted April 10, 2023 (edited) @barristann Have you checked my version... All you have to do is answer "Yes" if highlighting of lines match what you want, or "No" if highlighting of lines don't match what you want... Should be no syntax error... Though I've checked only in BricsCAD V23... [EDIT] Checked also in AutoCAD 2022 and it worked like should [/EDIT] Edited April 10, 2023 by marko_ribar 1 Quote
Tsuky Posted April 10, 2023 Posted April 10, 2023 @barristann I edited the previous code. You select all your lines concerned You will have the option to cut either with the verticals or with the horizontals. I also added the option of the gap (which can be 0.0) 1 Quote
marko_ribar Posted April 10, 2023 Posted April 10, 2023 OK Tsuky, my gap can also be 0.0... Thanks for an idea... 1 Quote
BIGAL Posted April 11, 2023 Posted April 11, 2023 (edited) Just a comment, when I wrote the code I looked past just your request so I tested on random drawn lines at angles and code works. The next person may not have Horizontal and Vertical lines. I try to write a more global answer so suits next person asking. Edited April 11, 2023 by BIGAL 1 Quote
barristann Posted April 11, 2023 Author Posted April 11, 2023 (edited) marko_ribar, for some reason my AutoCAD 2021 isn't working. The command stops everytime I enter the Gap = 2 I'll do my best to see what's wrong with my computer. Thank you for your help marko_ribar. Edited April 11, 2023 by barristann Quote
barristann Posted April 11, 2023 Author Posted April 11, 2023 (edited) Tsuky, I love your updated codes. I've just tested them. They work great! I'm astonished by your lisp skill Tsuky. These codes will save me so much time! instead of hours, it now take only few seconds . Wow amazing. Thank you Tsuky. Edited April 11, 2023 by barristann Quote
barristann Posted April 11, 2023 Author Posted April 11, 2023 BIGAL, novice like me treasure every bit of help we can get from the experts. I used your codes at work several times today and will continue to do so going forward. They work great! I greatly appreciate your time and help BIGAL. 1 Quote
Tsuky Posted April 11, 2023 Posted April 11, 2023 Quote Tsuky, I love your updated codes. I've just tested them. They work great! I'm astonished by your lisp skill Tsuky. These codes will save me so much time! instead of hours, it now take only few seconds . Wow amazing. Thank you Tsuky. @barristann Thank you for your compliments. After some thought, I ask if it wouldn't be better to use a user variable instead of "DIMEXO". Indeed I am afraid that this will lead to bad behavior of the next DIMENSION. It would be safer to use "USERR1" (from 1 to 5 possible) to store the gap value. I let you replace "DIMEXO" with "USERR1" throughout the code for more security. 1 Quote
BIGAL Posted April 11, 2023 Posted April 11, 2023 "It would be safer to use "USERR1" (from 1 to 5 possible) to store the gap value." Any body can write code that uses the USER functions, another way is LDATA and you make up the name of the storage Variables. A bit safer. (vlax-ldata-put "AlanH" "ht" ht) (vlax-ldata-put "AlanH" "wid" wid) (vlax-ldata-put "AlanH" "xpt" xpt) 1 Quote
barristann Posted April 11, 2023 Author Posted April 11, 2023 I'll replace them as you guys instructed. Thank you for teaching me this, Tsuky and BIGAL. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.