.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Select Command to cmd C#

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
k005
393 Views, 2 Replies

Select Command to cmd C#

 

 

 

Hello

I want to send "select", send "previous" command to this code snippet below and press Enter.

 

how can I do that ?

 

Thanks.

 

// If the prompt status is OK, objects were selected
            if (acSSPrompt.Status == PromptStatus.OK)
            {
                SelectionSet acSSet = acSSPrompt.Value;

                aCap.ShowAlertDialog("Seçilen obje Sayısı: " +
                                            acSSet.Count.ToString());
               
            }
            else
            {
                aCap.ShowAlertDialog("Seçilen obje Sayısı: 0");
            }
            acDocEd.Command("Select" "P" "");
2 REPLIES 2
Message 2 of 3
_gile
in reply to: k005

Hi,

I'm not sure to understand the request but is this what you're looking for:

ed.SetImpliedSelection(acSSet);


Gilles Chanteau
Programmation AutoCAD LISP/.NET
GileCAD
GitHub

Message 3 of 3
k005
in reply to: _gile

Hi @_gile 

 

Thank you so much. Yes exactly that.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

AutoCAD Inside the Factory


Autodesk Design & Make Report