Visual LISP, AutoLISP and General Customization

Visual LISP, AutoLISP and General Customization

Reply
Distinguished Mentor
647 Posts
8 Kudos
Registered: ‎08-30-2005
Post 1 of 4

Get flyout value

129 Views, 3 Replies
02-13-2013 04:29 AM

Chaps,

 

Anybody know how can I determine which button on a flyout toolbar is currently shown?

 

S

Distinguished Mentor
832 Posts
38 Kudos
Registered: ‎09-14-2003
Post 2 of 4

Re: Get flyout value

02-14-2013 09:17 AM in reply to: scottbolton

Scott,

 

Never needed to do this but it looks to me that you can query ToolBarItem object

and if it is a Flyout get its TagString and compaire it with ToolBar/ToolBarItems TagStrings

that is attached to that ToolBarItem

 

Moshe

 

 

 

Distinguished Mentor
647 Posts
8 Kudos
Registered: ‎08-30-2005
Post 3 of 4

Re: Get flyout value

02-14-2013 10:58 AM in reply to: Moshe-A

Hi Moshe,

 

Using this code:

 

(vlax-dump-object
  (vla-item
    (vla-get-toolbars
      (vla-item
        (vla-get-menugroups
          (vlax-get-acad-object)
          )
        "ACAD"
        )
      )
    "Zoom"
    )
  )

 

gives the same results no matter what the Zoom flyout of Standard is set to.

 

Am I missing something?

 

S

Distinguished Mentor
832 Posts
38 Kudos
Registered: ‎09-14-2003
Post 4 of 4

Re: Get flyout value

02-14-2013 02:09 PM in reply to: scottbolton

It looks like you are right, they does not reveals the default selected button.

 

 

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Are you interested in helping shape the future of the Autodesk Community? To participate in this brief usability study, please click here. Your time and input is greatly appreciated!