Cannot Rotate Model when Performing Editor.GetSelection

Cannot Rotate Model when Performing Editor.GetSelection

mujibur.rahman
Enthusiast Enthusiast
877 Views
3 Replies
Message 1 of 4

Cannot Rotate Model when Performing Editor.GetSelection

mujibur.rahman
Enthusiast
Enthusiast

I want select objects from Model Space by passing command

Dim acSSPrompt As PromptSelectionResult = acDocEd.GetSelection()

when this command is passed, it prompts the user 'Select Objects: ' in the Model Space

I want to rotate(3D Orbit) the Model to select the objects that are hidden by the other

please help me in this......

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

_gile
Consultant
Consultant
Accepted solution

Hi,

The few lines of code you show does not allow to diagnose your issue.

You should be able to orbit during  a selection with Editor.GetSelection() except, perhaps, in some context e.g., calling the method from a modeless dialog (or palette).

See this recent topic.

 

PS: this is the LISP forum here, you should have posted in the .NET one.



Gilles Chanteau
Programmation AutoCAD LISP/.NET
GileCAD
GitHub

0 Likes
Message 3 of 4

mujibur.rahman
Enthusiast
Enthusiast

Very Thanks for your reply.

I am using modeless dialog form.... that's why I cannot rotate the model or access any commands....

0 Likes
Message 4 of 4

_gile
Consultant
Consultant

You probably could if you follow Kean Walmsley advice:

"Once again there’s our important rule of thumb when it comes to implementing a modeless UI: rather than manually locking the current document, it’s safer to define a command – which will implicitly lock the current document – and call that from the UI via SendStringToExecute()."

 



Gilles Chanteau
Programmation AutoCAD LISP/.NET
GileCAD
GitHub

0 Likes