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

SelectAtPoint

1 REPLY 1
Reply
Message 1 of 2
ProfWolfMan
1002 Views, 1 Reply

SelectAtPoint

 

Hi,
When i was searching 'SelectAtPoint' method, i found "Tony" refer 'PromptNestedEntityOptions' and 'GetNestedEntity'.
But i struk as below. Anyone can help me?,please.
'---------------------------------------------------------------------------------------
        Dim acdoc As Document = Application.DocumentManager.MdiActiveDocument
        Dim acdb As Database = acdoc.Database
        Dim actrans As Transaction = acdb.TransactionManager.StartTransaction
        'Dim pt1 As Point3d = New Point3d(0, 0, 0)
        Dim pt2 As Point3d = New Point3d(2, 2, 0)
        'Dim acssprompt As PromptSelectionResult = acdoc.Editor.SelectCrossingWindow(pt1, pt2)
        Dim acssprompt As PromptNestedEntityOptions
        acssprompt = New PromptNestedEntityOptions("")
        acssprompt.NonInteractivePickPoint = pt2
        Dim res As PromptNestedEntityResult = acdoc.Editor.GetNestedEntity("")
        If res.Status = PromptStatus.OK Then
 'how can i get entities?
        End If
'---------------------------------------------------------------------------------------

 

Thanks & Regards,
G
1 REPLY 1
Message 2 of 2

GetNestedEntity will return only a single object in the PromptNestedEntityResult.ObjectId property, and will return the Ids of all of the Container objects with res.GetContainers.

 

I think that along with setting the NonInteractivePickPoint, you also need to set UseNonInteractivePickPoint to True.

Dave O.                                                                  Sig-Logos32.png

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

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost