PDA

View Full Version : Extract entities from Xref



rajat126
2004-08-30, 09:02 AM
Selecting the Xref, how can I extract the entities belonging to that Xref, using ActiveX ?

whdjr
2004-08-30, 01:10 PM
An Xref is a reference to another file. What do you mean "extract the entities belonging to that Xref"?

Could you be more specific?

jwanstaett
2004-08-30, 01:30 PM
If you have Express Tools Checl out the ncopy command

You can look in trexblk.lps and see how autocad did it in lisp

I think you would do it this way
step 1 get the AcadDatabase of the xRef
Step 2 make a array's of the object in the AcadDataBase you need
step 3 use the copyobject method to copy the array's of object

CAB2k
2004-08-30, 02:17 PM
You will want to take a look at this routine I scooped from autodesk forum some time back.