Announcements

The Autodesk Community Forums has a new look. Read more about what's changed on the Community Announcements board.

Cannot get Shortcut Menu (POP MENU) in Partial CUIX to display

johnw
Collaborator

Cannot get Shortcut Menu (POP MENU) in Partial CUIX to display

johnw
Collaborator
Collaborator

I have shortcut menus (POP MENUS) that are in a partial cuix file and do not display. If they are in my main cuix they DO display. I need to have them in my partial cuix but cannot figure out how to get them to display. Below is part of a lisp routine that shows how my POP menu works (one of many).

 

Any ideas as to how I can get them to show up? My partial cuix file is called Custom.cuix

 

  (IF (OR (= DDST1 0) (= DDST1 NIL) (= ACTION "Y"))

       (PROGN

       (MENUCMD "P0=POP836")   this line sets the POP menu to POP836

       (MENUCMD "P0=*")               this line then invokes the current POP836 to display

       (SETQ DDST1 (GETDIST "SELECT DOOR SIZE"))

       (MENUCMD "P0=P")               this line sets the POP menu back to the default POP menu

       )

   )

 

I've searched everywhere and cannot find any answers so I hope I can get an early Christmas present here! Lol.


Thanks,

 

John

0 Likes
Reply
Accepted solutions (1)
1,200 Views
5 Replies
Replies (5)

Paul_Gander
Advocate
Advocate
Accepted solution

Try (menucmd "p0=custom.pop836")

johnw
Collaborator
Collaborator

Could it be that easy??? WHY YES IT COULD! Woo Hoo! It works! Thanks a TON! How crazy is this... 

 

Now here is the odd thing...

 

I have A LOT of POPXXX menus and to test your theory I only added it to 2 of the locations in my lisp code. After doing so, i noticed that ALL my POPXXX menus now show up and work, and I never added the prefix to that code.????

 

Would you know why all of them now work???

 

I look forward to hearing if you have a theory about this..

 

Thanks again!

 

John

0 Likes

johnw
Collaborator
Collaborator

I renamed my partial cuix file and now it doesn't work, even after I made sure it was named the same thing? What is going on here?

 

Is there something internally that I need to change through the CUI dialog that would be storing the old name of the partial cui?

0 Likes

Paul_Gander
Advocate
Advocate

Are all your menus in the same partial cuix file? I can only think that specifying the menugroup once makes it current and if you had several menugroups you would need to specify it each time you wanted to change from one to another. It's not something I've ever played with so I'm only guessing.

0 Likes

johnw
Collaborator
Collaborator

Under the CUSTOMIZATION section of the CUI, after I display my partial cui file, it was named the old cui file name. I was able to change that verbiage and save it.

 

Then everything worked again.


Thanks again for helping out Paul! You're a life saver.

 

John