.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Select objects in xref

2 REPLIES 2
Reply
Message 1 of 3
Anonymous
648 Views, 2 Replies

Select objects in xref

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
2 REPLIES 2
Message 2 of 3
HomeBoyLV
in reply to: Anonymous

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
Message 3 of 3
Anonymous
in reply to: Anonymous

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

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost