Jump to content

Recommended Posts

Posted

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?

Posted

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!

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...