I can select the one object with below code. Well How can I select more than one objects with draging mouse click?
Dim nesne As AcadEntity Dim nokta As Object utilty.GetEntity(nesne, nokta, "Nesneyi seçin")
Regards,
Mucip:)
Posted 08 July 2024 - 04:04 PM
Dim nesne As AcadEntity Dim nokta As Object utilty.GetEntity(nesne, nokta, "Nesneyi seçin")
Posted 09 July 2024 - 03:48 AM
Posted 09 July 2024 - 07:16 AM
Posted 09 July 2024 - 08:26 PM
Private Sub Button8_Click(sender As Object, e As EventArgs) Handles Button8.Click Dim filterType(0) As Integer Dim filterData(0) As Object Dim cizgi As AcadEntity Try ncDoc.SelectionSets("PP1").Delete() Catch ex As Exception End Try filterType(0) = 0 filterData(0) = "line" Dim ssetObj As SelectionSet ssetObj = ncDoc.SelectionSets.Add("PP1") ssetObj.SelectOnScreen(filterType, filterData) If ssetObj.Count < 1 Then MsgBox("Hiçbir şey seçilmedi! İşlem sonlanıyor. ", MsgBoxStyle.Critical, "Hata!!") Exit Sub End If Dim lin As AcadLine For Each cizgi In ssetObj lin = cizgi Console.WriteLine(lin.EntityName) Next End Sub
0 members, 2 guests, 0 anonymous users