Jump to content
3dwannab

Possible to sort open drawing tabs by path (Not layout tabs)

Recommended Posts

3dwannab

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.

Share this post


Link to post
Share on other sites
ReMark

Assuming it could be done how would you like them sorted?

Share this post


Link to post
Share on other sites
3dwannab
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.

Share this post


Link to post
Share on other sites
Grrr

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)) ?

Share this post


Link to post
Share on other sites
3dwannab
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.

Share this post


Link to post
Share on other sites
Grrr

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.

Share this post


Link to post
Share on other sites
3dwannab
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.

Share this post


Link to post
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...