abra-CAD-abra Posted March 24, 2022 Posted March 24, 2022 http://www.lee-mac.com/steal.html I am trying to use the above 'steal' function and pass the list argument for the 'collection' as a variable, where the said variable 'imp' is a list: (steal (findfile "StealTest.dwg") '( ( "Multileader Styles" imp ) ) ) This returns bad argument type: listp IMP I have tried the quote function and the apostrophe and I am having no joy. Hope somebody can shed some light on this. Thanking you in advance Quote
abra-CAD-abra Posted March 24, 2022 Author Posted March 24, 2022 After some experimenting, I got there: (steal (findfile "StealTest.dwg") (list (list "Multileader Styles" (list imp)))) Sensational piece of kit, Lee! 3 Quote
tombu Posted March 24, 2022 Posted March 24, 2022 Takes a minute to get used to lists of lists of lists but being able to bring in lists of so many different types of things instantly with one call is amazing! Macro I use to bring in a layout along with Page Setups for outputting to printing both to paper and to PDF: ^C^C^P(DelPageSetup "11×17*")(Steal (strcat (vl-filename-directory (getenv "QnewTemplate")) (chr 92) "AutoCAD Template" (chr 92) "Templates.dwt") (list (list "Page Setups" (list "11×17" "11×17 PDF"))(list "Layouts" (list "11×17")))) .regen It's loaded in my acaddoc.lsp file since I use it many times a day for many things. Thanks Lee! Quote
abra-CAD-abra Posted March 24, 2022 Author Posted March 24, 2022 9 hours ago, tombu said: Takes a minute to get used to lists of lists of lists but being able to bring in lists of so many different types of things instantly with one call is amazing! Macro I use to bring in a layout along with Page Setups for outputting to printing both to paper and to PDF: ^C^C^P(DelPageSetup "11×17*")(Steal (strcat (vl-filename-directory (getenv "QnewTemplate")) (chr 92) "AutoCAD Template" (chr 92) "Templates.dwt") (list (list "Page Setups" (list "11×17" "11×17 PDF"))(list "Layouts" (list "11×17")))) .regen It's loaded in my acaddoc.lsp file since I use it many times a day for many things. Thanks Lee! Thank you, tombu! Very useful! 1 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.