Adding a link to swap Icon Menus

Adding a link to swap Icon Menus

nwallbridge
Enthusiast Enthusiast
1,127 Views
8 Replies
Message 1 of 9

Adding a link to swap Icon Menus

nwallbridge
Enthusiast
Enthusiast

Hi,

I have added a link in my "ACE_Panel_Menu.dat" file to point to a custom icon menu file that I created. I followed the suggested instructions on the Acad support site. I have also added a similar link in my custom menu file that points back to the default.

It works fine but if I add an item from the custom menu and then return to the menu for another one, it goes back to the default menu each time.

I would like it to stay on the custom menu until I use the link to go back to the default. Is this possible?

 

Here are the 2 links I added to the menus:

 

Default Menu   (c:wd_loadmenu "ACE_PANEL_WIRING_MENU.DAT")(c:wd_insym_go2menu 0)

Custom Menu   (c:wd_loadmenu "ACE_PANEL_MENU.DAT")(c:wd_insym_go2menu 0)

 

The default menu is for normal panel layout blocks and the custom menu is for panel wiring blocks (with wire connection attributes)

 

I don't really understand the command (c:wd_insym_go2menu 0) - what does the "0" do?

 

Thanks in anticipation

0 Likes
1,128 Views
8 Replies
Replies (8)
Message 2 of 9

rhesusminus
Mentor
Mentor
Try this:
(c:wd_loadmenu "ACE_IEC61082_MENU.DAT")(setq GBL_wd_sch_menu_override nil)(c:wd_insym_go2menu 0)

the 0 means that it should open the first "folder" in the icon menu, the "root folder"

Trond Hasse Lie
EPLAN Expert and ex-AutoCAD Electrical user.
Autodesk Expert Elite Alumni
Ctrl Alt El
Please select "Accept Solution" if this post answers your question. 'Likes' won't hurt either. 😉
Message 3 of 9

nwallbridge
Enthusiast
Enthusiast

Resusminus, Thanks for that. My problem seems to be that it is pointing to the wrong "root" folder. It points to a folder on my PC where the original Acad program files are but the Support and Icon files that I use are in a different folder. Is there any way I can change this?

 

Nigel

0 Likes
Message 4 of 9

rhesusminus
Mentor
Mentor

Just to specify, by "root folder", I meant the root folder, in the top left corner of the icon menu dialog. If you use (c:wd_insym_go2menu 3), it will open the push button menu, since that is menu number 3 (See the properties of the sub-menu to find it's numbers)
2018-02-07_10-29-35.png

 

To use your custom menus, you should look into changing the wd.env file, and tell it where the icons you want to use, are located. Read more on "icon menus" here: https://knowledge.autodesk.com/support/autocad-electrical/learn-explore/caas/CloudHelp/cloudhelp/201...

 


Trond Hasse Lie
EPLAN Expert and ex-AutoCAD Electrical user.
Autodesk Expert Elite Alumni
Ctrl Alt El
Please select "Accept Solution" if this post answers your question. 'Likes' won't hurt either. 😉
Message 5 of 9

Jon.Dean
Alumni
Alumni

Hi  @nwallbridge,

Is this issue now resolved or do you need further help?

Cheers

Jon.



Jon Dean

0 Likes
Message 6 of 9

nwallbridge
Enthusiast
Enthusiast

Hi Thanks

I have overcome the problem but I am still wondering if there is a way to make Acad always look for the support files in the folder I am using  It always defaults to the support files in the folder that was created during the original program installation. 

0 Likes
Message 7 of 9

Jon.Dean
Alumni
Alumni

Hi @nwallbridge,

Have you modified the WD.env file?

 

I believe the %DS_DIR% setting points to the Support folder.

If you modify this in the WD.env file, does this fix the problem?

DS_DIR.png

 

 

 

 

 

 

Cheers

Jon.



Jon Dean

0 Likes
Message 8 of 9

nwallbridge
Enthusiast
Enthusiast

Hi Jon,

 

Yes I have done that as you can see from the screen capture attached.

I notice that the item at the top of the list  is for the executables/support path - this is where it seems the program is looking to occasionally, but mostly it looks at the correct path. I haven't definitively worked out when this happens yet, I need to do some more checking I think.

 

Nigel

0 Likes
Message 9 of 9

rhesusminus
Mentor
Mentor

Near the bottom of the wd.env file, there is this setting:

2018-02-19_01-31-44.png

 

Will enabling this make it find your custom menu before it searches the electrical paths?


Trond Hasse Lie
EPLAN Expert and ex-AutoCAD Electrical user.
Autodesk Expert Elite Alumni
Ctrl Alt El
Please select "Accept Solution" if this post answers your question. 'Likes' won't hurt either. 😉
0 Likes