Jump to content

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


3dwannab

Recommended Posts

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
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
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  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...