Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Home
Help
Login
Register
TheSwamp
»
Code Red
»
.NET
»
Topic:
Recreate SelectionFilter functionality using RealDWG
« previous
next »
Print
Pages: [
1
] |
Go Down
Author
Topic: Recreate SelectionFilter functionality using RealDWG (Read 957 times)
0 Members and 1 Guest are viewing this topic.
nathanr
Mosquito
Posts: 1
Recreate SelectionFilter functionality using RealDWG
«
on:
June 03, 2022, 01:15:35 PM »
I'm trying to find a block within a Point3d 'window' without using the Editor since it's a c#/RealDWG application.
I have a working sample using a SelectionFilter to find all INSERT then get the PromptSelectionResults from Editor.SelectCrossingWindow which I can then iterate through the results to find what I'm looking for.
I'm trying to recreate that since I'm using RealDwg and do not have access to SelectionFilter (or anything Editor).
Any direction is appreciated. Thanks!
Logged
Hanauer
Mosquito
Posts: 10
Re: Recreate SelectionFilter functionality using RealDWG
«
Reply #1 on:
June 04, 2022, 06:58:29 AM »
https://www.keanw.com/2013/01/filtering-lists-of-autocad-entities-using-linq.html
«
Last Edit: June 04, 2022, 07:17:06 AM by Hanauer
»
Logged
n.yuan
Bull Frog
Posts: 343
Re: Recreate SelectionFilter functionality using RealDWG
«
Reply #2 on:
June 05, 2022, 09:59:54 AM »
You simply loop through the Model/PaperSpace BlockTableRecord to find the entities in interest. If the entities' position matters (for example, they must be within a window/polygon), then you will need to do your own calculation to decide.
Logged
Print
Pages: [
1
] |
Go Up
« previous
next »
TheSwamp
»
Code Red
»
.NET
»
Topic:
Recreate SelectionFilter functionality using RealDWG