Message 1 of 3

Not applicable
10-29-2020
09:27 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm building a lisp routine to save and restore toolbar positions. This is helpful for switching between my office computer with two screens and my remote (home) computer using one screen.
The initial problem I am having is that vla-get-floatingrows seems to always return 1 instead of the number of rows showing in the toolbar.
(defun GetToolbarPositions (/ rtlist)
(vlax-for mgp (vla-get-menugroups (vlax-get-acad-object))
(vlax-for tb (vla-get-toolbars mgp)
(if (= :vlax-true (vla-get-visible tb))
(setq
rtlist (cons
(list
(cons 'Mgroup (vla-get-name mgp))
(cons 'toolbar (vla-get-name tb))
(cons 'top (vla-get-top tb))
(cons 'left (vla-get-left tb))
(cons 'DockStatus (vla-get-DockStatus tb))
(cons 'FloatingRows (vla-get-FloatingRows tb))
)
rtlist
)
)
)
)
)
rtlist
)
Is anyone else seeing this behavior?
Mike
Solved! Go to Solution.