VdEntities ents = m_ActiveDoc.Select3d(location4, m_. Point location4 = new Point((int)p1.x, (int)p1.y ) Selection using Select3D and cursor's picksize This will get all the entities in the current point+picksize even entities in locked layersNote: The Select3d method will not work with entities that have Handle property a number bigger than UInt (32bit unsigned integer). Method 4: Selection with Selection using Select3D and the cursor's PickSize Point location3 = new Point((int)p1.x+size/2, (int)p1.y+size/2) Point location2 = new Point((int)p1.x-size/2, (int)p1.y-size/2) Selection with and the cursors PickSize Parameters: queryFilter - A reference to a com.esri. This will get all the entities in the current point+picksize but not entities at locked layers Returns a cursor that can be used to retrieve the objects specified by a query over this selection set. } Method 3: Selection with and the cursor's PickSize MessageBox.Show("No object selected", "") MessageBox.Show("Found figure with Handle: " + () + " in Layer: " + + " which is locked: " + (),"" ) VdFigure fig2 = m_(location1, m_.PickSize, false) Point location1 = new Point((int)p1.x, (int)p1.y) This will get the top-most entity even if this entity is in a locked layer. Method 2: Selection with Selection with GetEntityFromPoint MessageBox.Show("No object selected","") MessageBox.Show("Found figure with Handle " + () + " in Layer: " + + " which is locked: " + (), "") If this entity is in a locked layer then the returned selectionSet will be empty GPoint p1 = m_(pt as gPoint) Method 1: Selection with In this howto we will use four methods to select entities that might be in locked or unlocked layers from a point that we get using getUserPoint() (this is pt) like : Select entities that are in locked/unlocked layers from a single point.
0 Comments
Leave a Reply. |