LISP command on command line works, but not associated with an icon in ribbon

LISP command on command line works, but not associated with an icon in ribbon

oransen
Collaborator Collaborator
291 Views
3 Replies
Message 1 of 4

LISP command on command line works, but not associated with an icon in ribbon

oransen
Collaborator
Collaborator

This command:

 

^C^C^P(progn (setvar "FILEDIA" 0) (command "_NETLOAD" "C:\\Users\\oransen\\source\\repos\\Dwg_Classif\\bin\\x64\\Release\\Dwg_Classif.dll") (setvar "FILEDIA" 1)) MyFirstCommand

 

works properly on the command line, but when placed inside an icon properties appears to get only half way:

 

oransen_0-1728456655504.png

 

In the command it is like this:

oransen_1-1728456734133.png

 

What have I missed? What don't I know? What error have I made? Who am I?

 

TIA

0 Likes
292 Views
3 Replies
Replies (3)
Message 2 of 4

oransen
Collaborator
Collaborator

If I use / instead of \\ it works. Hells bells.

0 Likes
Message 3 of 4

Sea-Haven
Mentor
Mentor

Just a stab in the dark I have multiple lisp load etc in a menu and they work, only difference is that they are not wrapped in a (progn , using / can fail if any of your directories have a space in their name where as \\ works ok.

Message 4 of 4

paullimapa
Mentor
Mentor

Could be because a backslash “\” in a menu macro represents a pause for input. 


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos