vla-get-name, vla-get-TagString, well... almost

vla-get-name, vla-get-TagString, well... almost

scot-65
Advisor Advisor
1,582 Views
1 Reply
Message 1 of 2

vla-get-name, vla-get-TagString, well... almost

scot-65
Advisor
Advisor

I am trying to build a list of currently visible menu (POP) items.

What I am looking for is to create a list of the Aliases.

 

Aliases - Specifies a unique value for a user interface element that is used to programmatically reference the user interface element.

 

I can assemble the Name, NameNoMnemonic and TagString but cannot find Aliases.

 

If not, then how do I rename a "Element ID"? [this is the vla-get-TagString]

 

 

(setq a "")
 (vl-catch-all-apply
  (function
   (lambda ()
    (vlax-for menu (vla-get-menubar (vlax-get-acad-object))
     ;(setq a (strcat a (vla-get-NameNoMnemonic menu) "\n"))
     ;(setq a (strcat a (vla-get-name menu) "\n"))
     (setq a (strcat a (vla-get-TagString menu) "\n"))
    )
   )
  )
 )
(alert a)

aliases.jpg

 

 

Scot-65

 


Scot-65
A gift of extraordinary Common Sense does not require an Acronym Suffix to be added to my given name.

0 Likes
1,583 Views
1 Reply
Reply (1)
Message 2 of 2

doglips
Advocate
Advocate

What about just getting them from the pgp file?

maybe like:  (startapp "notepad" (findfile "acad.pgp"))

0 Likes