I filtering for objects based on layer as shown below.How do i know which type the entity is like whether it is arc or line or circle.Any ideas please.
Dim ss As SelectionSet
Dim idarray As ObjectId() = ss.GetObjectIds()
Dim id AsObjectId
For Each id In idarray
Dim entity As = trLocal.GetObject(id, OpenMode.ForRead, True)
Go to Solution.
You can probably try:
For Each id In idarray Dim ent As Entity = trLocal.GetObject(id, OpenMode.ForRead, True)
if (typeof ent is Arc) then
else if (typeof ent is Line) then
end ifNext id
Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register
Start with some of our most frequented solutions to get help installing your software.