call autocad quickselect dialog from .net api (c#)

call autocad quickselect dialog from .net api (c#)

Anonymous
Not applicable
1,276 Views
4 Replies
Message 1 of 5

call autocad quickselect dialog from .net api (c#)

Anonymous
Not applicable

I want to call autocad quickselect dialog from my autocad addins by .net api with c#

Autocad 2014

 

can anyone help?

 

thanks

0 Likes
Accepted solutions (1)
1,277 Views
4 Replies
Replies (4)
Message 2 of 5

_gile
Consultant
Consultant
Accepted solution

Hi,

 

With AutoCAD 2014, you can call the Document.SendStringToExecute() method but it doesn't run synchronously.

if you want if to run synchronously, you can use Tony Tanzillo's (aka DinningPhilosopher) wrapper for the undocumented RunCommand() method see this thread:

http://forums.autodesk.com/t5/net/send-command-executes-after-exiting-command-method/td-p/3882929



Gilles Chanteau
Programmation AutoCAD LISP/.NET
GileCAD
GitHub

Message 3 of 5

Anonymous
Not applicable
thanks, its very good solutions.
0 Likes
Message 4 of 5

Anonymous
Not applicable

in Autocad 2017 it's not work,, any solusion? please>>>

0 Likes
Message 5 of 5

_gile
Consultant
Consultant

Hi,

 

With AutoCAd 2015 and later you have to use the EditorCommand() method.

 

var ed = Application.DocumentManager.MdiActiveDocument.Editor;
ed.Command("_qselect");


Gilles Chanteau
Programmation AutoCAD LISP/.NET
GileCAD
GitHub