Importing a DWG file

Started by Douglas, April 01, 2025, 08:27:10 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Douglas

Hi
I'm using Design CAD 2D ver 2020
I'm having trouble with this DWG import.
I've imported many DWG files in the past, though this is the first time from this Surveyor, but this one is giving me some grief
I import the DWG file OK, I can edit it etc, save the file, however when I close the file down and then open up, nothing is showing.
The preview shows the drawing is there, but nothing visible when the file opens up.
I've tried copying it and pasting into a new page, but the same problem still persists.
Can anyone spot what is happening here, and/or send me the file in Design CAD

Thanks
Doug

DesignCad user since 1997

Douglas

DesignCAD file attached - the preview shows the content of the file, however when opened up, the file is blank
DesignCad user since 1997

Adrian 2.0

When you re-open the file, in point-select mode goto 'Select All' and you'll see some rogue points show up. (see screenshot attachment)
Your drawing is the upper right group. You need to delete the points in the lower left and middle of page, then everything should display OK.
Those points are up to 1,600km away, which would put them on Auckland Island, 400km south of Stewart Island!
They all appear to be unused blocks. I copied them to a new file which has 128 blocks on 10 layers but nothing visible. The new file is only 96Kb.
File with deleted points is attached - I have to say I find these rogue points on nearly every surveyor's DWG file.

Adrian

Douglas

Hi Adrian
Thanks for your response and for the DCD file.
With the DWG file, I've done the 'select all' in 'point select mode' and strangely nothing appears.
I done Crl+W to fill the window, but no points are showing up?
This is something I've done many times in the past to pick up stray bits of a drawing, but its not doing it for me this time

Would you kindly be able to remove the stray points from the attached drawing please - same file but I've done some work on this one before I discovered the problem.

Mistified as to why the point select mode is not doing it this time

Those points are up to 1,600km away, which would put them on Auckland Island, 400km south of Stewart Island! -    Excellent
DesignCad user since 1997

Adrian 2.0

I'm sorry Doug, the file you posted does not appear to have any data in it - that's why your select-all does not work.
I don't understand why the filesize is still 1208Kb, that must just be the stored preview image?

A

Douglas

Thanks Adrian

Appreciate your help
DesignCad user since 1997

bdeck

#6
Hi Douglas,

After loading the DWG file into to DC, I  exported it as a dxf, and also saved it as a dc2, because each of these files can be easily read in a text editor.

The dc2 file (using integer data rather than floating point) reloaded easily into DC, so it could be visually edited before resaving as a dcd or dc2 file. The extraneous lines were visible in the dc2 file, and could be easily edited out or trimmed before resaving, or merely ignored when saving a selection.

The dxf file, after importing, zooming,  and saving the selection as dcd file, reloaded correctly. Unlike the dwg import, there was no need to delete the extraneous points from the dxf import before saving the selection as dcd.  Dunno why. Maybe it has to do with an external reference to a png logo file that failed to import from dwg to dcd.

Tested in DC 2020 and 2022

Best Regards
BD

PS, Thanks to You and Adrian for fleshing out these oddities.

Douglas

Thanks BD
Adrian was able to load the dwg file, delete the far flung points and save the drawing into DesignCAD
That option still wouldn't work for me.
The preview showed the file, but when I opened the file, it was empty.

As you say, you imported the dwg file, then exported the file as a dxf, and then reimported the dxf file into DC, deleted the far flung points, then saved the file as a DC file. Closed it and it re loaded fine.
I tried the dxf import, was able to save it and clean up the far flung points. But again, when opening the DC file, there was nothing there. The preview showed the file (screen shot attached) but when I opened the file, it was empty.
Before I closed the file, I selected the site plan and copied it, but when pasting the copied material onto another new page, there was nothing there to paste

I imported some other dwg files from other sources, and everything was fine. No issues.
So I'm confident there are no errors with my process.

However, Adrian sent me the file in DC format, which is working just fine - much appreciation, enabling me to move forward.

Doug
DesignCad user since 1997

Adrian 2.0

I forgot to mention, but I'm using DC2020, same as you. (I've bought 2 newer versions but they seem to be getting progressively more and more broken & I can't use them)
It seems your issue has something to do with block references - I can get to select an emty block ref. if I happen to click on it but if I use the selection filter it does not list any blocks and if I try to purge unused blocks the option is greyed out.
I get those rogue ghost-blocks on many of the survey files I import but I've not seen the behaviour you are dealing with before.

Rob S

It seems it has something to do with the blocks containing the trees.   These are visible when first importing the DWG file, but missing when you zoom into the file after reloading a dcd version.

I can also confirm this issue still exists in the latest V2025 beta version as well.
User since forever

DrollTroll

I agree with Rob. Something going on in those tree blocks. Possibly some kind of georeferencing data that DesignCAD doesn't understand -- it seems to sort-of ignore it while importing the file, but still saves it in the dcd file and then doesn't know what to do with it any more. Also curious that those bogus blocks in the saved-and-reloaded dcd file can't be exploded...

25 years with DesignCAD