3dwannab Posted March 12, 2018 Share Posted March 12, 2018 Hi, Is it possible to sort the open drawing tabs in ACAD. Is it accessible by LISP? Note: I'm not referring to layout tabs. Thanks. Quote Link to comment Share on other sites More sharing options...
ReMark Posted March 12, 2018 Share Posted March 12, 2018 Assuming it could be done how would you like them sorted? Quote Link to comment Share on other sites More sharing options...
3dwannab Posted March 12, 2018 Author Share Posted March 12, 2018 How would you like them sorted? Thanks for the reply. I suppose the best way for me would be the directory of each file, then by name. Quote Link to comment Share on other sites More sharing options...
Grrr Posted March 12, 2018 Share Posted March 12, 2018 Not sure if its possible to sort a collection (in this case its the documents) - My guess would be to save & close all documents, then reopen by the sorted filepaths (this would be the code's algorithm). But what if there are unsaved ones - (zerop (getvar 'dwgtitled)) ? Quote Link to comment Share on other sites More sharing options...
3dwannab Posted March 12, 2018 Author Share Posted March 12, 2018 Not sure if its possible to sort a collection (in this case its the documents) -My guess would be to save & close all documents, then reopen by the sorted filepaths (this would be the code's algorithm). But what if there are unsaved ones - (zerop (getvar 'dwgtitled)) ? Yeah, that's why I asked beforehand as I don't think this is exposed to LISP. If I have to reopen the files then this wouldn't work. I'd be quicker dragging them like I am ATM. Thanks. Quote Link to comment Share on other sites More sharing options...
Grrr Posted March 12, 2018 Share Posted March 12, 2018 It looks like that even my guess isn't possible, since (vlax-for o (vla-get-Documents (vlax-get-acad-object)) (vla-close o)) will yield the error: Automation Error. Drawing is busy. Quote Link to comment Share on other sites More sharing options...
3dwannab Posted March 12, 2018 Author Share Posted March 12, 2018 It looks like that even my guess isn't possible, since (vlax-for o (vla-get-Documents (vlax-get-acad-object)) (vla-close o)) will yield the error: Automation Error. Drawing is busy. No worries. Maybe 2019 will surprise us. 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.