DesignCAD 3D Max 2027 box
Now available

DesignCAD 2027

Hatches that follow their boundaries, an on-screen dial to turn your model, and a way to find any command by name, in a clean Windows 11 look.

A file saved in dc2016 is opening differently in dc23 and 24

Started by Lar, September 12, 2016, 03:43:45 PM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

Lar

Since yesterday a file I saved in dc2016 is opening differently in dc23 and 24 (I'm sure I had dc25 installed but I see no sign of it at the moment. Can't remember if I uninstalled it)

I can't attach the file for you guys to test but the attached image shows the 'drawing info' dialog box of the 2 files with the differences highlighted. As you can see the missing entities types are regular stuff that existed in dcad since the beginning, so no 'new types' created in dc2016 that may have not existed in dc23 or 24.

To be sure it was the same file, I 'saved as' to a folder that I hardly access and then dragged from there into dc23.

I would guess dc23 simply stops opening at a certain point but it simply shouldn't. To see if it was a low system memory issue I opened another instance of dc2016 and opened the file there, where it opened ok.

Lar


Adrian 2.0

I also see that you are using 17 fewer layers in the V23 file.
Can you confirm that the missing arcs/circles are on the missing layers? If you can identify which layers failed to register, there may be a clue in the layer name?

Lar

Great catch, Adrian. You provided the clue that cracked the case.

Less layers suggested that a single entity was choking dc23, ie, was causing dc23 to abort the loading of the entities. I had to pinpoint that entity.

So, in dc2016 I went to Edit> Arrange by Layer Order (thanks to this topic I was reminded of that command: http://forum.designcad.com/index.php?topic=6660.msg47788#msg47788), saved the file, then opened it in dc23 where now about 50 layers were missing. There I closed all but the last active layer (372), selected everything visible, opened the info box, activated 'show details' and highlighted the entity at the bottom of the list, item 303 in the selection.  That entity would turn green on screen, allowing me to identify the entity that would be the one before the one that did the damage... hopefully.

I then went back to the file in dc2016 and  closed all but layer 372, selected everything there, opened the info box and activated 'show details', intending to highlight item 304. Alas, dc2016 crashed., which probably meant I was on the right path.

I reopened dc2016 and the file, selected everything on 372, copied them to the clipboard and pasted them in a new file. I then proceeded to 'erase last' until item 303 got erased. Then I undid twice, bringing 304 back. I then deleted 304, saved the file (the test one, not the original) and opened in dc23. It opened all the way.

To further confirm that 304 was the bad boy I started a new file, created three text entities "1", "2" and "3", then pasted in 304 (from the original file) - so it was now entity 4, then created 3 more text entities: "4", "5" and "6". I saved the new file and opened it in dc23, where only "1", "2" and "3" opened. 304 was indeed the evil doer.

Attached is the new file if any of you guys to test it (at your own risk). I also attached an image file showing how the file looks in dc2016 so anybody who doesn't have 2016 yet can still open the file in a younger version of dcad and compare to my image.

Hopefully DT can examine 304 and find out why it chokes in versions earlier than dc2016. It's one of my construction entities that I make magenta and give a fixed lineweight of 2.00 mm, so it jumps out at me no matter the zoom (well, in wireframe, anyway). I also send them to the back so other 'proper entities' are visible on top of them. I have many other such entities that never caused any harm, except those are solid and this one is dashed. Maybe that has something to do with it.

Lar
ps, please excuse my childish writing in the attached images. I write with a mouse worse that I write with my left hand...

Dr PR

Lar,

Good sleuthing! Maybe we should start calling you Sherlock.

Phil
DesignCAD user since 1987

Adrian 2.0

Sherlock,
Phil Watson has indeed got that right!
In a quick effort to try to help I tried a couple of things:
In V25 the file is as you describe, #s 1,2 & 3 & no line.
If I delete any point on the line then save, the new file when opened in V25 will display all the text (1-6) but still no line.
If, in V2016 I save as a V19-20 file then it will open correctly in V25.

That last info tends to indicate an issue with V2016 rather than a 'bug' in the line?
FWIW i couldn't fix the problem by changing line type or weight but tracing over the line with a new line then deleting the original did fix it...
Adrian

DrollTroll

Hi Lar,

Two solutions seem to work for me:

1) delete the custom property from the line, or
2) Save As to Version 19-20.

Much as we would like to, we can't always guarantee that a drawing done from a newer version will open correctly in an older version (as the warning says).

DT
25 years with DesignCAD

Lar

Quote from: DrollTroll on September 13, 2016, 07:05:27 AM
1) delete the custom property from the line, ...
Rightttt.

Y'know, I was trying to think of what was new about 2016 that would not open in previous versions (...like the warning says...) but I was thinking this was just a line so why this entity. I totally forgot I added a custom property to it.

But now that the mystery is fully solved, one question is: should an incompatible entity abort the opening of the rest of the file?

Well at the very least, now we know if we use custom properties we must save down to open in previous versions.

Lar

DrollTroll

In theory it shouldn't; however, it's going to be difficult to go back to those older versions and fix 'em...
25 years with DesignCAD

Lar

FYI, the ok news is that a dc2016 file saved with 'document custom properties' (file menu)(it gives the file custom properties, as opposed to individual entities) can open in previous versions.

Lar