Jump to content

Recommended Posts

Posted

I have a large list of files that i need to open and export as step files.

I have written a script :-

open."fname1".stepout.

open"fname2".stepout.

 

and so on.

Problem is I cannot suppress the file save dialogue box that appears when using stepout command (filedia=0 doesnt work) and -stepout doesnt work either.

 

any ideas?

 

 

Posted

CMDDIA = 0

 

 

  • Like 1
Posted

Thank you for the information .

i am planning on adding CMDDIA=0 to head of script and then I am presuming it is perpetual variable so will need to reset to 1 as last line of script ?

Posted

Autocad and Mechanical 2026

I have many products that at top level are made up of xref, in turn some of those xrefs also have nested xrefs.

I get regular demands to send all drawings for a product to suppliers. This usually involves me going through each one, one by one and making a note of all the referenced files, sometimes there can be 40 or 50 individual files. I then navigate to my Published folder and drag all the required PDFS to a temp folder for distribution.  I recently discovered etransmit and this is brilliant as it provides a zip file of all the referenced dwgs. I can then unzip these to a temp folder and print them all to pdf.

I can export the directory listing using dir /b from the command line, I then edit this file using find/replace to add the necessary spaces and operators to make this a script, then saving as an scr. With your help (thank you) i have managed to script out all dwg files as step files, my goal now is to output all as a multipage PDF (or single pages) as this is the most common format we share files.  Do you think a lisp routine would be better for this, sheet sets (of which i have no experience) or a script.

In a nutshell, from a top level assembly consisting of xrefs and nested xrefs I need to create a PDF file of all xrefs.

Posted

You can rejoin individual Pdf's back into one PDF using Ghostscript ran as say part of your script.

 

As you suggest if you can get a list of all xrefs and their paths, then there is no reason why you can not produce pdfs. You will need a plot PDF lisp this can be loaded via the script. To work successfully there must be some consistency of the dwgs. Say a fixed title block. 

 

If you can provide more information about plotting your xrefs then that would be 1st step. 

 

You may be able to make the script using lisp rather than dir /b /s use VL-FILE-DIRECTORY-P.

 

 

Posted

Thank you , I’ll see what I can pull together 

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