AutoCAD Land Desktop

Reply
Valued Contributor
jlawrence
Posts: 70
Registered: ‎10-20-2003
Message 11 of 14 (888 Views)

Re: Layout tab order

10-25-2004 10:01 AM in reply to: jlawrence
Thanks!
Active Member
grmichmush
Posts: 10
Registered: ‎09-27-2010
Message 12 of 14 (832 Views)

Re: Layout tab order

01-23-2013 12:33 PM in reply to: jlawrence

I know I'm a little late to the party on this one but,  I tried this on my computer looking for a solution for the boss.  It worked great on mine but then when boss man puts it on his it returns an error.  I followed the error with exactly what is in the lsp file. I placed the file in the autocad support folder.

Command: a2z_taborder
; error: no function definition: VLAX-GET-ACAD-OBJECT
Command:

(defun c:a2z_taborder (/ tabs tlist newlist) (setq tabs (vla-get-layouts (vla-get-activedocument (vlax-get-acad-object)))) (vlax-for tab tabs (if (not (= (strcase (vla-get-name tab)) "MODEL")) (setq tList (cons (vla-get-name tab) tList)) ) ) (setq newlist (acad_strlsort tlist)) (vlax-for tab tabs (if (not (= (strcase (vla-get-name tab)) "MODEL")) (vla-put-taborder tab (1+ (vl-position (vla-get-name tab) newlist))) ) ) )

Valued Mentor
TerryDotson
Posts: 486
Registered: ‎06-06-2010
Message 13 of 14 (822 Views)

Re: Layout tab order

01-23-2013 12:58 PM in reply to: grmichmush

Try adding this at the beginning of the file.

 

(vl-load-com)

Active Member
grmichmush
Posts: 10
Registered: ‎09-27-2010
Message 14 of 14 (819 Views)

Re: Layout tab order

01-23-2013 01:12 PM in reply to: TerryDotson

SUCCESS!!! Thank you.

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.