Message 1 of 3
Not applicable
02-02-2019
01:29 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi. I have a folowwing problem:
I have a lot of polylines. Some polylines are in one point and I want to select these then delete selected objects.
Example point:
Dim c As Double = 359.1275
Dim point As New Point2d(Val(c), Val(c))
How I would like to select these polyline:
Dim acDoc As Document = Application.DocumentManager.MdiActiveDocument
Dim acCurDb As Database = acDoc.Database
Using acLckDoc As DocumentLock = acDoc.LockDocument
Using acTrans As Transaction = acCurDb.TransactionManager.StartTransaction()
Dim acSSPrompt As PromptSelectionResult = acDoc.Editor.GetSelection(""Select all In point"")
If acSSPrompt.Status = PromptStatus.OK Then
Dim acSSet As SelectionSet = acSSPrompt.Value
For Each acSSObj As SelectedObject In acSSet
If Not IsDBNull(acSSObj) Then
Dim acEnt As Entity = acTrans.GetObject(acSSObj.ObjectId, OpenMode.ForWrite)
If Not IsDBNull(acEnt) Then
acEnt.Erase()
End If
End If
Next
acTrans.Commit()
End If
End Using
End Using
but in the "" "" i wrote what i want to select but i don't know how to do it.
Then I would like to choose everything that has not been erase and join it
Solved! Go to Solution.