Jump to content

AutoCAD 2011 C# : How getting (already) selectionned object ?


Recommended Posts

Posted

Hello everyone !

 

I'm searching for it since 2~3 day at work, and still haven't found any good solution for my problem, searching in the ObjectARX developper guide from Autodesk AutoCAD website, in "search" toolbar, "index", and even in web but nothing ...

 

My problem : I want to retrieve/getting object (in model shape mainly) that had been selected by the user (selectionable object of course).

The idea is to get all those object selected in order to made 3D transformation (rotation, translate etc...) relatively to them.

 

The """better""" i've found is a getSelection() from EditorInput that announce to retrieve selectioned object but in fact doesn't as it is a big fake "get" function. getSelection being an interactive function that ask the user to made a selection and then, telling you what is this selection...

What i want is just HAVING the current selected object, not asking the user to actually made a selection.

I've also found a cool class that is "SelectionSet" that could store selectionned object, with nice little property and method but I can do nothing of it until i can retrieve the current selectionned object and store them on a selectionSet object...

It is really frustrating, and as the developper guide don't succeed to tell me a real solution to selectioned object, i ask you if you know how to solve this annoying problem (don't speaking about the waste of time just for it...:-/ )

 

Thank you very much in advance for help and suggestion.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...