Select objects in xref

Select objects in xref

Anonymous
Not applicable
773 Views
2 Replies
Message 1 of 3

Select objects in xref

Anonymous
Not applicable
Hi

I have created a program that get a vertical section off solid, 3dface,
loftsurface and lines.

This works find most of the time. I get error sometimes. I may have more 20
xref in the drawing
Some may have many 1000 3dface. This takes a long time because I have to
loop through the whole BlockTableRecord and check if the object intersect
the curve.
I select a curve object as cut line

Is there any way to only select the objects that are near the cut line in
the xref drawing?

I dont think so, but I see that the ADT function that aslo make a section,
is faster than mine.
I wonder how it does

Thanks
Rune
0 Likes
774 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
None that I am aware of in AutoCAD. If you are handy in advanced math, do a web search on "Sweeping line" search method, IIRC. Be advised that it is advanced stuff, over my head. What I have done in the past is to look for ways to disqualify an entry before you do the intersect calc. Skip things that can't intersect with, etc.Starting in 2010, I believe you can derive the type from the objectID, without having to fetch the object. That should save you quit a bit of time. Search this NG for that option.

HomeBoy Out
0 Likes
Message 3 of 3

Anonymous
Not applicable
Okey thanks...

I understand it is possible so I keep on trying. Hope I can derive the type
from the objectID. Try that first

It would make the function so much better

Rune






"HomeBoyLV" skrev i melding news:6343569@discussion.autodesk.com...
None that I am aware of in AutoCAD. If you are handy in advanced math, do a
web search on "Sweeping line" search method, IIRC. Be advised that it is
advanced stuff, over my head. What I have done in the past is to look for
ways to disqualify an entry before you do the intersect calc. Skip things
that can't intersect with, etc.Starting in 2010, I believe you can derive
the type from the objectID, without having to fetch the object. That should
save you quit a bit of time. Search this NG for that option.

HomeBoy Out
0 Likes