- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi @CCarreiras. It took me a while to set up that parent folder, sub folders, copy an INI file to the right place, and rename it, download and place your files into it, create that template DWG to place in there, create a new Project file with that name and put it in that location, then close everything to set that project as the active one...but I finally got all that done. Then I modified the internal iLogic rule similar to the previous example, but with a couple differences. But I am still not getting the result we want yet. When I run the rule, there are no errors, and the entries created within the iLogic Log window indicate that the resulting new DXF files were created, and named as I wanted them to be. But when I look in that Z_CUT folder, there is just one file in there named "SHEET", its file type is just "File", and it has zero file size. Not quite sure what is going on there. May be a timing related issue (not enough time for processing everything between loops), but I can't be sure yet.
Attached is the text file for that internal iLogic rule named "Export - DXF". And the following text is what I am getting in my iLogic Log window (with the file paths truncated).
INFO| 2: >>---------------------------
INFO|DXFAddIn.DisplayName = Translator: DXF
INFO|HasSaveCopyAsOptions = True
INFO|DXFFile = ...\DXF_TEST\Z_CUT\Sheet:1.dxf
INFO|Exported DWG to following DXF file:
...\DXF_TEST\Z_CUT\Sheet:1.dxf
INFO|DXFFile = ...\DXF_TEST\Z_CUT\Sheet:2.dxf
INFO|Exported DWG to following DXF file:
...\DXF_TEST\Z_CUT\Sheet:2.dxf
I may be able to work on this more later, but I've got to get some stuff done at work right now. Another tactic that we could mess around with, instead of trying to use another temporary drawing document in this process, is to try changing the Sheet.ExcludeFromCount and / or Sheet.ExcludeFromPrinting property values in an attempt to control which ones will be included in the output DXF file each time. I'm pretty sure that if your drawing only has one sheet, it will just use the name of the drawing itself (or whatever file name you supply to it each time, such as the name of the sheet), instead of including that _SheetName at the end. Maybe you will have better luck with the testing than I did, because my settings may all be different than yours. I use one main project file for everything, all the time, our DesignData folder, CC folders, and and all our CAD files are stored on a network drive, and we only use IDW drawing file types in all our documentation also. Just so you know about some of the differences I was attempting to adjust for.
Wesley Crihfield
(Not an Autodesk Employee)