Adding "Publish" in the Quickaccess tab via Lisp, possible ?

Adding "Publish" in the Quickaccess tab via Lisp, possible ?

cyberflow
Advisor Advisor
453 Views
7 Replies
Message 1 of 8

Adding "Publish" in the Quickaccess tab via Lisp, possible ?

cyberflow
Advisor
Advisor

Hi,

I'm trying to complete my deployement and one thing is that i'd like to have the Publish icon available in the QuickAccess toolbar : 

cyberflow_0-1736359537127.png



Was wondering if there's a way with lisp or a command to add that so i can automate that ?

I know that its added onto the CUIX but trying to find a more programmable approach to this.
And learn a bit more obviously 🙂

Thank you in advance

Frank Freitas

CAE/CAD/BIM Coordinator & Support Specialist

LinkedIn
0 Likes
454 Views
7 Replies
Replies (7)
Message 2 of 8

Sea-Haven
Mentor
Mentor

You can add move or subtract from toolbars, don't recommend subtract though, using CUI, the other thing you can do is make your toolbar a custom one, its very easy if you can use Notepad you can make a toolbar.

 

 It takes a little bit of effort if you want custom icons, you need to make the icons as 16x16 & 32x32 pixels but there is software out there I use Paint.net a can set pixel size quickly.

 

I made a short cut Civ3D mnu so I did not have to change workspaces to do often used commands. I opened notepad and the CUI, I copied the icon and command details to my custom menu. So in drafting workspace have CIV3D commands.

 

A part example, I have multiple mnu's.

***MENUGROUP=XXX
***TOOLBARS
**TOOLS
ID_PAT_0    [_Toolbar("3DD", _Right, _Show, 0, 0, 1)]
Offset 10  [_Button("Offset Beams 10",O10.bmp,O10.bmp)]^C^C^C(if (not O10)(load "c:\\CAD-TOOLS\\shortcuts")) O10
Draw_Beams1  [_Button("Multi offset Beams",B1.bmp,B1.bmp)]^C^C^C(if (not beam1)(load "c:\\AD-TOOLS\\Beams")) Beam1
Draw_Beams2  [_Button("Offset 1 Beam",B2.bmp,B2.bmp)]^C^C^C(if (not beam1)(load "c:\\CAD-TOOLS\\Beams")) Beam3

This is a another menu example 

***MENUGROUP=ALANSTOOLBAR
***TOOLBARS
**ALANSTOOLS
ID_ALAN_0    [_Toolbar("Alans1", _Right, _Show, 0, 0, 1)]
AECC_ShowTS  [_Button("Show Toolspace", RCDATA_16_IMAGE, RCDATA_16_IMAGE)]^C^C^C^P_ShowTS
ID_Matchprop [_Button("Match Properties", RCDATA_16_MATCH, RCDATA_16_MATCH)]^C^C_matchprop
ID_Erase     [_Button("Erase", RCDATA_16_ERASE, RCDATA_32_ERASE)]^C^C_erase
ID_Copy      [_Button("Copy", RCDATA_16_COPYOB, RCDATA_32_COPYOB)]$M=$(if,$(eq,$(substr,$(getvar,cmdnames),1,4),GRIP),_copy,^C^C_copy)
ID_Mirror    [_Button("Mirror", RCDATA_16_MIRROR, RCDATA_32_MIRROR)]$M=$(if,$(eq,$(substr,$(getvar,cmdnames),1,4),GRIP),_mirror,^C^C_mirror)
ID_Offset    [_Button("Offset", RCDATA_16_OFFSET, RCDATA_32_OFFSET)]^C^C_offset

You can have a custom mnu that has Pop and toolbars in one file.

 

The Ribbon has to be made by using CUI on my to do list create in excel and make.

Message 3 of 8

cyberflow
Advisor
Advisor

Sweet stuff @Sea-Haven !
Thx for the cues !

By the way, where is that MENU file stored ?

Frank Freitas

CAE/CAD/BIM Coordinator & Support Specialist

LinkedIn
0 Likes
Message 4 of 8

Sea-Haven
Mentor
Mentor

The menu is stored in a .mnu file you use menuload to load it. It will then be converted to a CUI or CUIX file.

0 Likes
Message 5 of 8

cyberflow
Advisor
Advisor

@Sea-Haven By any chance, do you know where they are located on a windows system ?
I can't find any

Frank Freitas

CAE/CAD/BIM Coordinator & Support Specialist

LinkedIn
0 Likes
Message 6 of 8

Brock_Olly
Collaborator
Collaborator

I think they're placed in the support folder, though I looked and I don't have any .mnu files either.

Default installation folder (for AutoCAD):
C:\Program Files\Autodesk\AutoCAD <version>\Support


User-specific settings folder:
C:\Users\<YourUsername>\AppData\Roaming\Autodesk\AutoCAD <version>\Rxx\enu\Support

0 Likes
Message 7 of 8

pkenewell6347
Advocate
Advocate

@cyberflow wrote:

@Sea-Haven By any chance, do you know where they are located on a windows system ?
I can't find any


Alternatively, just type the following into your command line: (progn (princ (findfile "acad.cuix"))(princ))

It will show you the path in a format you can copy and paste to Windows explorer.

0 Likes
Message 8 of 8

Sea-Haven
Mentor
Mentor

At some stage Autodesk may have dropped the source mnu files and they now only supply CUIX. As I make custom menu's its not a problem. As I said earlier I use CUI to open the editor and copy and paste the correct values into a Notepad mnu file. 

 

You can get at the CUIX & CUI files but they are XML code so very difficult to read compared to a mnu file. Just had a look for Acad.mnu did find a 2012 version as part of a custom menu.

 

 

0 Likes