AutoCAD Land Desktop

AutoCAD Land Desktop

Reply
Valued Contributor
jlawrence
Posts: 74
Registered: ‎10-20-2003
Message 11 of 14 (904 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 (848 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))) ) ) )

Distinguished Mentor
TerryDotson
Posts: 512
Registered: ‎06-06-2010
Message 13 of 14 (838 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 (835 Views)

Re: Layout tab order

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

SUCCESS!!! Thank you.

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.