Hi,
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)
Next id
Solved! Go to Solution.
Solved by augusto.goncalves. 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 if
Next id
Can't find what you're looking for? Ask the community or share your knowledge.