Add command into existing ACAD Electrical Icon Menu Command

Add command into existing ACAD Electrical Icon Menu Command

rscott16
Contributor Contributor
173 Views
1 Reply
Message 1 of 2

Add command into existing ACAD Electrical Icon Menu Command

rscott16
Contributor
Contributor

Hello all,

 I currently use the ACAD Electrical Icon Menu for inserting panel components into a drawing using the "WD_INRFP" or equivalent "Electrical Toolset" command that can be found in the "List..." box. So when you select the icon, it checks the family/catalog against the footprint_lookup.db for the block and the catalog to apply the correct information into the block. The setup looks like this in the icon menu.

rscott16_0-1739312102184.png

What I would like to do is add a command before this that allows me to insert a pop up alert with various information depending on the component being inserted. I've tried variations of ideas like this:

rscott16_1-1739312315800.png

When clicked, the pop up window shows up but, once acknowledged, the remaining part of the command fails. It's as if it doesn't recognize the WD_INRFP command anymore.

rscott16_2-1739312367271.png

I can't duplicate this command in the command line. I don't know what it's doing in the background when clicked in the icon menu. Any advice on how it treats these Electrical specific commands or how I can add my own to work with it would be much appreciated.

 

Thanks

 

0 Likes
174 Views
1 Reply
Reply (1)
Message 2 of 2

Sea-Haven
Mentor
Mentor

As no one has made a suggestion, I don't have Electrical but what happens if you use CUI and look through the menu for that particular option ? You may then be able to add a custom icon to that menu, it could call a lisp that in turn calls the original command.

 

^c^c(load "yourlisp") WD_INFRP

 

Do a google about editing using CUI.

0 Likes