Editor.Command with MVSETUP

Editor.Command with MVSETUP

tjarzyna
Participant Participant
685 Views
2 Replies
Message 1 of 3

Editor.Command with MVSETUP

tjarzyna
Participant
Participant

I can't get this command to work:

 

Application.DocumentManager.MdiActiveDocument.Editor.Command("_MVSETUP""_A""_H");

The aquivalent works:

Application.DocumentManager.MdiActiveDocument.SendStringToExecute("_MVSETUP _A _H "truefalsefalse);

albeit it doesn't close the command.

 

Anyone can hint me what I am doing wrong?

Thx in advance

0 Likes
Accepted solutions (1)
686 Views
2 Replies
Replies (2)
Message 2 of 3

_gile
Consultant
Consultant
Accepted solution

Hi,

 

MVSETUP is a LISP defined command: (c:mvsetup).

The Editor.Command() method only works with ARX (even managed) defined commands.



Gilles Chanteau
Programmation AutoCAD LISP/.NET
GileCAD
GitHub

Message 3 of 3

tjarzyna
Participant
Participant

Thank you Gile, totally forgot about that...

0 Likes