.NET

Reply
Active Contributor
huaxiamengqing
Posts: 35
Registered: ‎05-23-2012
Message 1 of 4 (251 Views)
Accepted Solution

highlight the object and show the control point

251 Views, 3 Replies
08-07-2013 03:35 AM

Hi,guys! I use net to select an object,and highlight it. but the control point couldn't be shown!

i don't want!

I don't want

I want!

iwant

Hi,

 


Maybe you're looking for the Editor.SetImpliedSelection() method.

 

 [CommandMethod("Test")]
public void Test()
{
Editor ed = Application.DocumentManager.MdiActiveDocument.Editor;
PromptSelectionResult psr = ed.GetSelection();
if (psr.Status == PromptStatus.OK)
ed.SetImpliedSelection(psr.Value);
}

 

Active Contributor
huaxiamengqing
Posts: 35
Registered: ‎05-23-2012
Message 2 of 4 (216 Views)

Re: highlight the object and show the control point

08-07-2013 08:47 PM in reply to: huaxiamengqing

Wa O, Nobody knows it??

Spoiler
 

:catmad:

*Expert Elite*
_gile
Posts: 2,086
Registered: ‎04-29-2006
Message 3 of 4 (182 Views)

Re : highlight the object and show the control point

08-09-2013 06:36 AM in reply to: huaxiamengqing

Hi,

 


Maybe you're looking for the Editor.SetImpliedSelection() method.

 

        [CommandMethod("Test")]
        public void Test()
        {
            Editor ed = Application.DocumentManager.MdiActiveDocument.Editor;
            PromptSelectionResult psr = ed.GetSelection();
            if (psr.Status == PromptStatus.OK)
                ed.SetImpliedSelection(psr.Value);
        }

 

Gilles Chanteau
Active Contributor
huaxiamengqing
Posts: 35
Registered: ‎05-23-2012
Message 4 of 4 (162 Views)

Re : highlight the object and show the control point

08-09-2013 09:47 PM in reply to: _gile

Yes,Yes, That's what I want! Thank you ,Thank you very much. You are a good man gile.

Announcements
Autodesk Alert | We are currently working on restoring Previous Version License request access in the Autodesk Subscription Center. If you are a subscription customer and would like to request a Previous Version License, please use this link as a temporary workaround. We apologize for the inconvenience and thank you for your patience.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.