Message 1 of 8
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi guys,
How can I get the tab order number of the current layout?
The following routine gives me a list with the tab order number associated with the layout name. (thanks to hmsilva)
(defun c:GetLayNumber ( / doc lst) (setq doc (vla-get-activedocument (vlax-get-acad-object))) (vlax-for layout (vla-get-layouts doc) (if (not (eq "MODEL" (strcase (vla-get-name layout)))) (setq lst (cons (list (vla-get-taborder layout) (vla-get-name layout)) lst)) );if );vlax
(setq lst (vl-sort lst (function (lambda (a b) (< (car a) (car b))))))
(setq lstfinal lst) ;;;Do something here to extract the tab order number associated with the current tab )
Now, lets say I want to put in a variable, only the tab order number of the current layout (getvar "ctab").
Any help please?
Thanks
Marcelo
Solved! Go to Solution.