M76 Posted November 15, 2010 Posted November 15, 2010 Hi! I have a quite elaborate routine that runs on a drawing. What I want to do is to get the resulting objects of the routine and export them into another drawing. Now the trick is that I have to insert the resulting drawing objects into a drawing file that already exists, and I need to append the new objects to it. So overwriting is not an option. I export the needed objects into a new dxf file, but how can I import it to the other drawing. If I simply open the drawing command control is not passed to that drawing and I end up inserting it into the drawing from which I exported it the first place. How can I pass command control to a new drawing? Is it even possible, if not what can I do? Quote
BlackBox Posted November 15, 2010 Posted November 15, 2010 Perhaps if you were to post your 'elaborate routine' we could see how best to advise you. Without your code being posted, I would suggest that you use Visual LISP (ActiveX COM API). Specifically, be sure SDI = 0 and/or MDI = 1, and then use the vla-open function to open the desired drawing, then with the new drawing current I *believe* you can copy from one document to the other programmatically. You may need to change the ActiveDocument Property of the Application Object. See the Developer Documentation for more information. Hope this helps! Quote
alanjt Posted November 15, 2010 Posted November 15, 2010 http://www.cadtutor.net/forum/showthread.php?49280-selection-sets-in-multiple-drawings&highlight=copytodrawing Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.