jamami Posted May 28 Posted May 28 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? Quote
SLW210 Posted May 29 Posted May 29 I have moved your thread to the The CUI, Hatches, Linetypes, Scripts & Macros Forum. 1 Quote
jamami Posted May 30 Author Posted May 30 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 ? Quote
SLW210 Posted May 30 Posted May 30 Yes I have some LISPs around here for changing a folder of files, might be possible to use for Stepout. Drawing Batch Converters - AutoLISP, Visual LISP & DCL - AutoCAD Forums Are you using AutoCAD 2017? Only Mechanical has Stepout on my computer. Quote
jamami Posted May 30 Author Posted May 30 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. Quote
BIGAL Posted May 30 Posted May 30 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. 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.