abra-CAD-abra Posted February 15, 2016 Share Posted February 15, 2016 All, I have found this code by T.Willey, however, it does not appear to function in AutoCAD 2014. I receive the following error: error: AutoCAD.Application: Invalid object arrayundo I would like to use Lee Mac's ObjectDBX wrapper to develop this further and to process a directory of files but I am having no joy with the source of the error and implementing Lee's function. I would greatly appreciate any help from you guys. Cheers, Quote Link to comment Share on other sites More sharing options...
Tharwat Posted February 16, 2016 Share Posted February 16, 2016 Hi, Use the command ExportLayout in each layout instead. Quote Link to comment Share on other sites More sharing options...
nod684 Posted February 16, 2016 Share Posted February 16, 2016 have you tried this lisp from Jimmy Bergmark? LayoutsToDwgs.lsp Quote Link to comment Share on other sites More sharing options...
abra-CAD-abra Posted February 16, 2016 Author Share Posted February 16, 2016 Thank you Tharwat and thank you nod684, I will explore JTB World's code. Tharwat, the EXPORTLAYOUT command presents the following dialog box: "The file was successfully created. Do you want to open it now?" Do you know how to suppress this dialog box so I can iterate over the layouts? Cheers guys, Quote Link to comment Share on other sites More sharing options...
Tharwat Posted February 17, 2016 Share Posted February 17, 2016 Tharwat, the EXPORTLAYOUT command presents the following dialog box: "The file was successfully created. Do you want to open it now?" Do you know how to suppress this dialog box so I can iterate over the layouts? Hi, Replace the two quotes with your desired name of the drawing and should add complete path. NOTE: you need to add error handler to reset the system variable and to check if the user is in a layout space and so on. Hope the following would work for you and just ask if you need any push forward. (setq fd (getvar 'filedia)) (setvar 'filedia 0) (command "_.exportlayout" "" nil) (setvar 'filedia fd) Quote Link to comment Share on other sites More sharing options...
abra-CAD-abra Posted February 17, 2016 Author Share Posted February 17, 2016 Thank you Tharwat, I appreciate your help. Cheers Quote Link to comment Share on other sites More sharing options...
Tharwat Posted February 18, 2016 Share Posted February 18, 2016 You are welcome. 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.