cart: empty [ Login ]

DXF R12 File - Content Not Visible In ACAD - Blocks Skipped

1 
Kevin K
11/2/2022 6:37 PM
Hello, Loving the library so far, all has been great, thank you again Wout for your help getting us up and running. We have some clients who, I've just learned today, are using old software which only accepts ACAD R12 format DXF files. I've tried to export to R12 simply by setting the header version to Dxf12, but the file, when opened, appears empty. This hasn't been an issue with any other file formats I've tried. I also see the following messages in the AutoCAD text output window when I open the file: Skipping BlockDef for:*MODEL_SPACE on line 940. Skipping BlockDef for:*PAPER_SPACE on line 966. I know the content still exists in the file because when I use AutoCAD to save the seemingly "empty" file to the R12/LT2 format and re-open it, the content is visible. It's only when I first create it from WW and open in in ACAD that I see the above error & no content is shown - is there something I need to do to make sure the block objects are compatible with R12?
Wout
11/2/2022 8:32 PM
Hi, Could you post the code/input data you use to create this DXF file? Thanks! - Wout
Kevin K
11/3/2022 12:39 AM
Wout, Nevermind! The "missing" content was user error on my part. It was a viewport issue - I was not setting a viewport when creating the drawing, but the R14+ versions all still opened with the drawing partially visible in the viewport. The R12 files, however, opened in some place far away from the content and at a crazy zoom level so I could not find the actual content. I'm new to AutoCAD so I didn't know about the ZOOM EXTENTS command. I just saw the block skipped message upon opening and figured it was a bug, but it all looks fine. Do you still want the code to investigate the block skipped message?
Wout
11/4/2022 2:40 AM
Hi, The blocked skipped message isn't problematic for AutoCAD, but there should ideally be no such warning, so I've updated the R12 DXF writing to write the expected model/paper space block names. They were apparently slightly different in R12 than in later versions: it's $MODEL_SPACE instead of *Model_Space. You can create an active VPORT object to get a better initial zoom in AutoCAD, see the example code in the DxfVPort class documentation. - wout
1