Jump to content

Export Drawing Layouts to Singular Drawing Files (ObjectDBX)


abra-CAD-abra

Recommended Posts

All,

 

I have found this code by T.Willey, however, it does not appear to function in AutoCAD 2014. I receive the following error:

 

error: AutoCAD.Application: Invalid object arrayundo

 

I would like to use Lee Mac's ObjectDBX wrapper to develop this further and to process a directory of files but I am having no joy with the source of the error and implementing Lee's function.

 

I would greatly appreciate any help from you guys.

 

Cheers,

Link to comment
Share on other sites

Thank you Tharwat and thank you nod684,

 

I will explore JTB World's code.

 

Tharwat, the EXPORTLAYOUT command presents the following dialog box:

 

"The file was successfully created. Do you want to open it now?"

 

Do you know how to suppress this dialog box so I can iterate over the layouts?

 

Cheers guys,

Link to comment
Share on other sites

 

Tharwat, the EXPORTLAYOUT command presents the following dialog box:

 

"The file was successfully created. Do you want to open it now?"

 

Do you know how to suppress this dialog box so I can iterate over the layouts?

 

Hi,

 

Replace the two quotes with your desired name of the drawing and should add complete path.

 

NOTE: you need to add error handler to reset the system variable and to check if the user is in a layout space and so on.

 

Hope the following would work for you and just ask if you need any push forward.

 

(setq fd (getvar 'filedia))
(setvar 'filedia 0)
(command "_.exportlayout" "" nil)
(setvar 'filedia fd)

Link to comment
Share on other sites

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...