martinle Posted July 1, 2021 Share Posted July 1, 2021 (edited) Hallo, bitte um Hilfe, habe dieses Lisp irgendwo im Netz gefunden. Der Autor ist mir leider nicht bekannt. Es ändert auch die Länge und Breite eines Rechtecks. Dieses Lisp funktioniert nur beim ersten Mal. Warum? Bitte um Hilfe danke Error: Bad argument type: consp nil rs.lsp Edited July 1, 2021 by martinle Quote Link to comment Share on other sites More sharing options...
Steven P Posted July 1, 2021 Share Posted July 1, 2021 Google says: "have found this Lisp somewhere on the net. Unfortunately, I do not know the author. It also changes the length and width of a rectangle. This Lisp only works the first time. why? Request for help" 1 Quote Link to comment Share on other sites More sharing options...
mhupp Posted July 1, 2021 Share Posted July 1, 2021 This is probably want but would have to translate it to your language. https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-rectangles-to-change-their-lenths-and-widths-at-once/m-p/6045991/highlight/true#M339095 Quote Link to comment Share on other sites More sharing options...
martinle Posted July 1, 2021 Author Share Posted July 1, 2021 Hello mhupp thank you for your help. I had already found that. However, this is very difficult to operate. With the Lisp that I have attached, the rectangle is simply selected and the length and width of the base point are queried. Then the rectangle changes. best regards Martin Quote Link to comment Share on other sites More sharing options...
BIGAL Posted July 2, 2021 Share Posted July 2, 2021 Using a dynamic block solution makes this easy also a rectang block 1x1 just set scale X & Y. Quote Link to comment Share on other sites More sharing options...
martinle Posted July 2, 2021 Author Share Posted July 2, 2021 Hello BIGAL Thank you for your help. The disadvantage of a Dinamic block is that you cannot stretch a block with other commands using the window selection. Why does this Lisp only work 1x? Can you help me with that? Thanks! Greetings Martin Quote Link to comment Share on other sites More sharing options...
marko_ribar Posted July 2, 2021 Share Posted July 2, 2021 Martin, Lisp works every time... Are you sure you pick vertex of rectangle of initial point specification? Anyway I've made it more readable, using my style of writing with 2 spaces identation... I'll reattach Lisp, only one line I commented out - it was for (command "_ucs" "VO") at the end of routine... Regards... rs.lsp Quote Link to comment Share on other sites More sharing options...
martinle Posted July 2, 2021 Author Share Posted July 2, 2021 Hello Her Marco_ribar You are a wizard !!! What have you changed to make it work now? It works again now! Thank you so much for your help Thanks! Greetings Martin Quote Link to comment Share on other sites More sharing options...
marko_ribar Posted July 2, 2021 Share Posted July 2, 2021 I've changed prompts to English, just for personal usage... Someone would wanted this version too... Bye... rs.lsp 1 Quote Link to comment Share on other sites More sharing options...
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.