Jeez, if I could only type what I actually think....
That will return T if the menugroup is NOT loaded, and nil if it IS.
"Jeff Mishler" wrote in message
news:4942284@discussion.autodesk.com...
As Jason pointed out, you may want to use someting like this:
(vl-catch-all-error-p
(vl-catch-all-apply
'(lambda ()
(vla-item
(vla-get-menugroups
(vlax-get-acad-object)
)
`sMenuGroupName
)
)
)
)
This will return true if menugroup is loaded, nil if not.
"Mark Dubbelaar" wrote in message
news:4942208@discussion.autodesk.com...
hi
is there a way to exit out of vlax-for (ie similiar to the VB/A Exit
For)... i'm using it in the following code
(vlax-for `mgMenuGroup (vla-get-menugroups (vlax-get-acad-object))
(if (= (vla-get-name `mgMenuGroup) `sMenuGroupName)
(setq `ReturnValue :vlax-true)
(setq `ReturnValue :vlax-false)
) ;if
) ;vlax-for
any help would be great
cheers
mark