I would like to use the next (AENEXT) and previous (AEPREV) commands in a lisp routine. Both commands work fine when typed in the command line, but will not run when called (COMMAND "AENEXT") in lisp. Can anyone help me with this?
You can try the standard command syntax: (c:AENEXT) for starters.
Also, make sure they are actually loaded before trying your code, as some functions load from others.
Thanks, what I was doing wrong was leaving out the parenthesis and the C:. Made that change and it works great.
I am encountering the same issue, using the (c:AEWIRENOLEADER) works to get the command to run, but I want it to automatically go into the "collapse" mode. I am having a hard time coding in how to get the command modifiers to work. I have trid a few variations on where to put the "C" I need to go into collapse mode... It seems to ignore anything after the command call (C:aewirenoleader)....
I don't have AE to testing, but maybe something like
(vla-sendcommand (vla-get-activedocument (vlax-get-acad-object)) (strcat "AEWIRENOLEADER C"))
try, and tell me what the result.
I had to modify the command slightly:
(vla-sendcommand (vla-get-activedocument (vlax-get-acad-object)) (strcat "AEWIRENOLEADER C\n")).
added the <\n> to make it go into that mode with a pick box ready to start picking object.
I have much to learn about these commands "vla"...
Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register
Start with some of our most frequented solutions to get help installing your software.