News:

The purpose of these forums is to discuss TurboCAD.  Please keep the discussion of other products to compatibility issues or how the other software can be used with TurboCAD.

Main Menu
TurboCAD 2026 Platinum box
Now available

TurboCAD 2026.2

The latest update for TurboCAD 2026. It installs over any 2026 build and keeps your activation, drawings and settings. Get it from the Start Page or Help > Check for Update.

Turbocad leaders go kablooey when saved as DWG

Started by scottgus1, January 26, 2021, 11:44:00 AM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

scottgus1

I am using Deluxe 2018 64-bit Version 25.0 build 43.5.
When I draw leaders in a Turbocad drawing then save as a DWG for Autocad users, the leaders go really south.
"turbocad drawing.png" shows Turbocad's source TCW drawing.
"DWG fron Turbocad opened in Turbocad.png" shows what the DWG copy I saved in Turbocad contains when I re-open it in Autocad.

Any idea what is happening?

Jeff_in_90620

You might try using a different AutoCAD Version compatibility setting (check Setup in the Save As... DWG file type).  The default is 2007/2009, which is... older.  Perhaps AutoCAD's handling of Leader Dimensions has changed in that time.


Jeff
Jeff

TC 2026 Pro Platinum plus 2015->2024 (most with LightWorks & RedSDK) & V21
System: AMD Ryzen 9 7950X, MSI Mag X670E Tomahawk WiFi, 64GB RAM @ 4.80GHz, ARC A770 w/16GB, 3 x Samsung NVMe 990 (1TB), Windows 11 Pro (64-bit)

Jeff_in_90620

Alternatively, you could Explode all the Leader Dimensions for Save As DWG.


Jeff
Jeff

TC 2026 Pro Platinum plus 2015->2024 (most with LightWorks & RedSDK) & V21
System: AMD Ryzen 9 7950X, MSI Mag X670E Tomahawk WiFi, 64GB RAM @ 4.80GHz, ARC A770 w/16GB, 3 x Samsung NVMe 990 (1TB), Windows 11 Pro (64-bit)

scottgus1

#3
Thanks, Jeff, for the ideas. I tried saving as a 2018 DWG and got a different result. Still blown up, but different leaders involved.

These leader blowups show up when opening the DWG back in Turbocad, without opening them in Autocad. The screenshot below and the second one above are from Turbocad opening the DWGs.

It seems that Turbocad is damaging the leaders when writing to DWG.

I have added the tcw drawing and the DWGs in case anyone wants to test on their Turbocad. Please be aware that Turbocad itself opens the DWG with the leaders distoretd in the same way Autocad displays them, which seems to indicate that Turbocad is writing the leaders wrong when saving the DWG.

Jeff_in_90620

Quote from: scottgus1 on January 27, 2021, 06:06:58 AM
I have added the tcw drawing and the DWGs in case anyone wants to test on their Turbocad.

Oddly, I am unable to Save As DWG the TCW file you provided.  I can Save As DWG files that I create from template.  I could Save As 2019, so it's not my Save function.


Jeff
Jeff

TC 2026 Pro Platinum plus 2015->2024 (most with LightWorks & RedSDK) & V21
System: AMD Ryzen 9 7950X, MSI Mag X670E Tomahawk WiFi, 64GB RAM @ 4.80GHz, ARC A770 w/16GB, 3 x Samsung NVMe 990 (1TB), Windows 11 Pro (64-bit)

Alvin Gregorio

I can't save it to .dwg or .dxf either.
I get the error dialog below, at the very end of the "save" process.
Alvin Gregorio
TurboCAD: v2024_Plat (31.0.77.1); v2022_Plat; v2020_Plat; v2019_DL; v20.2_PP
Lenovo Thinkpad P20Y laptop; Windows 11 Pro; i7-11800H 2.30GHz, 8-core; 32GB RAM; NVIDIA T1200
3D_Printer: Ender-3 S1 (NOT Pro)

Andy H

#6
Quote from: Jeffin90620 on January 27, 2021, 02:29:24 PM
Oddly, I am unable to Save As DWG the TCW file you provided.  I can Save As DWG files that I create from template.  I could Save As 2019, so it's not my Save function.

Quote from: Alvin Gregorio on January 27, 2021, 03:39:28 PM
I can't save it to .dwg or .dxf either.  I get the error dialog below, at the very end of the "save" process.

Jeff / Alvin.  Looks like you found a bug in TC 2020.  The file appears OK. It saves as dwg, in 2017, 2018, and 2019, just fine for me.  (Apart from the leaders going wonky). 

In 2020 I deleted all the blocks and saved as a new named tcw file. closed and then re-opened the file. then it saved as dwg just fine. even the leaders appeared to be fine.   - - - Too late for 2020, but if a beta tester can check in 2021 beta.  it may help prevent a future problem  If it can be reproduced..

nikkipollard

Does Deluxe have the arrow tool?
Dwg and Turbocad styles have always given me problems.  The arrow tool doesn't try to match autocad styles and I have better success.
Nikki
TC20 platinum, TC 2015 platinum
TC 2017 with lightworks
TC 2021 platinum
Windows 11 Home 22h

Jeff_in_90620

Quote from: Andy H on January 28, 2021, 12:01:14 AM
In 2020 I deleted all the blocks and saved as a new named tcw file. closed and then re-opened the file. then it saved as dwg just fine. even the leaders appeared to be fine.   - - - Too late for 2020, but if a beta tester can check in 2021 beta.  it may help prevent a future problem  If it can be reproduced..

2021 Beta can Save As DWG, but loading the DWG file back into TurboCAD shows the pointer types on the Leaders are changed from the Arrow to an angled bar and there is another type according to the Select By tool.  Viewing the DWG files in AutoCAD TrueView shows that the pointer types are changed, so the discrepancy is in the Save As function.


Jeff

Jeff

TC 2026 Pro Platinum plus 2015->2024 (most with LightWorks & RedSDK) & V21
System: AMD Ryzen 9 7950X, MSI Mag X670E Tomahawk WiFi, 64GB RAM @ 4.80GHz, ARC A770 w/16GB, 3 x Samsung NVMe 990 (1TB), Windows 11 Pro (64-bit)

Andy H

Quote from: scottgus1 on January 27, 2021, 06:06:58 AM
I have added the tcw drawing and the DWGs in case anyone wants to test on their Turbocad. Please be aware that Turbocad itself opens the DWG with the leaders distoretd in the same way Autocad displays them, which seems to indicate that Turbocad is writing the leaders wrong when saving the DWG.

Just curious.  Is the file an original dwg, opened in TC and saved back as dwg.

Most of the problem appears to be associated with some leaders, that do not have any text (no info in the selection palette).  I don't know if the leaders were originally copies with the text deleted, but for whatever reason TC is trying to find some text to the associate with the leaders.  These were sorted by selecting each leader and typing a 'space' as the text character (I did it in the selection palette info setting).  BUT...

I say 'most' because the ones on the right hand side (the seven in a vertical line) are stubbornly linked to the jamb, casing b/o. text.  These had to be re-drawn using dimension style 12.

I'd have to say that leaders, seem to be more trouble than they are worth. However I don't use leaders so maybe they work great for some people.   Posting the dwg, just so you can see if it looks different on your computer.  As there is obviously something wrong with the file, For TC to have caused the problem in the first place.

scottgus1

Thanks, all, for looking into this!

Quote from: nikkipollard on January 28, 2021, 02:24:23 AM
Does Deluxe have the arrow tool?
Yes, it's in the Dimension toolbar. I only use the Leader, not the Multileader, yet.

Quote from: Andy H on January 28, 2021, 05:49:33 AM
I don't know if the leaders were originally copies with the text deleted
No, I do not recall deleting text from a copied leader, to the best of my recollection. I probably did copy leaders and edit the text.

I most often click the Leader tool, start the leader in the drawing, move the end to where I will want it to be without clicking, hit Tab then type text then Enter to finish the text, then Alt-F to finish the leader. For copies, I have edited the text if needed or just moved the leader endpoints to point to the new location via Ctrl-Space.

I have also made no-text leaders by clicking the start and end points then Alt-F.

Quote from: Andy H on January 28, 2021, 05:49:33 AM
Is the file an original dwg, opened in TC and saved back as dwg.
No, the uploaded TCW was originally drawn in Turbocad fresh and saved as TCW. Then it was saved as DWG for the upload.

I did discover some things that might be of interest.

While this drawing was done in TC from the beginning, I did import some things from an associate's DWG drawn in Autocad into this file, for a title block in Paper Space. None of the imported items contained any leaders.

Although the Leader dimension style default was "Standard3", at some point in the original drawing the leaders all got changed to dimension style "Common Dimension Style 12" which I have never seen before. This style does have an arrow for leaders, though the translation to DWG changes the arrow to a slash in the style itself. Changing the style to an arrow changes all the leaders. In a different file also originally drawn in TC but saved as DWG 2007 & s018, the leaders blow up but don't switch to slash ends. So far, I haven't discovered the pattern.

2. Apparently the Leader's defaults have "Associative Dimension" checked. I wonder if this, coupled with my copying the leaders, causes the kablooey. I tried drawing a new leader with Associative on by default and the arrow attached to a line's snap-point. I then copied that leader to another line's snap-point using rubber-stamp and Ctrl-Click. None of these leaders blew up in a save to DWG.

I did discover that I could delete the whole set of leaders from the DWG and copy the whole set from the TCW to the DWG, and they stay where they're supposed to be when the DWG is opened in TC and DWG TrueView.

So it seems there's something wrong with TC's save-to-DWG algorithm, but I may have some workarounds.

scottgus1

Quote from: Andy H on January 28, 2021, 05:49:33 AM
Most of the problem appears to be associated with some leaders, that do not have any text (no info in the selection palette)....for whatever reason TC is trying to find some text to the associate with the leaders.  These were sorted by selecting each leader and typing a 'space' as the text character (I did it in the selection palette info setting). ...   Posting the dwg, just so you can see if it looks different on your computer. 

The DWG does look good over here. Thanks! I'll do some more experiments, or maybe just change to an arrow-only(-with-space?) and separate text object.

nikkipollard

#12
The arrow tool is different to the dimension leader tool.
I don't have problems with  saving arrows to dwg - because they don't have styles.
Only problem is you have to add the text separately.

https://turbocaddoc.atlassian.net/wiki/spaces/T2UG/pages/92144413/Arrow+Tools

Oh sorry I see that deluxe doesn't have them.
You could try expolding them before saving as dwg. - that would get rid of the dimension style issue.
Nikki
TC20 platinum, TC 2015 platinum
TC 2017 with lightworks
TC 2021 platinum
Windows 11 Home 22h

Alvin Gregorio

See if the attached .dwg file works for anyone.  I used a generic name, but it's a version of scotgus' file.

I Saved As .dwg in 2020 Platinum.

What I did was:
>New Drawing from Scratch (my default is English space unit system)
>Immediately did a Save As .dwg
>Opened scotgus' original drawing file; selected all the Leaders; changed their Properties Dimension Styles to "Standard"
>Copied all of Modelspace into my new from Scratch Drawing.
>Selected all the Leaders and changed their Properties Dimension Style to "Common Dimension Style 12"
>Saved my new .dwg
>Opened in DWG TruView, all looks okay

It seems the gremlins didn't transfer over.
Alvin Gregorio
TurboCAD: v2024_Plat (31.0.77.1); v2022_Plat; v2020_Plat; v2019_DL; v20.2_PP
Lenovo Thinkpad P20Y laptop; Windows 11 Pro; i7-11800H 2.30GHz, 8-core; 32GB RAM; NVIDIA T1200
3D_Printer: Ender-3 S1 (NOT Pro)

Jeff_in_90620

Quote from: Alvin Gregorio on January 29, 2021, 04:59:12 AM
See if the attached .dwg file works for anyone.  I used a generic name, but it's a version of scotgus' file.

It opened fine for me, but the Leader arrows were changed to slanted bars, the same as I have seen on my earlier experiments.


Jeff
Jeff

TC 2026 Pro Platinum plus 2015->2024 (most with LightWorks & RedSDK) & V21
System: AMD Ryzen 9 7950X, MSI Mag X670E Tomahawk WiFi, 64GB RAM @ 4.80GHz, ARC A770 w/16GB, 3 x Samsung NVMe 990 (1TB), Windows 11 Pro (64-bit)

Alvin Gregorio

Quote from: Jeffin90620 on January 29, 2021, 05:18:10 AM
Quote from: Alvin Gregorio on January 29, 2021, 04:59:12 AM
See if the attached .dwg file works for anyone.  I used a generic name, but it's a version of scotgus' file.

It opened fine for me, but the Leader arrows were changed to slanted bars, the same as I have seen on my earlier experiments.


Jeff

Hmm... yes, I see that now in my DWG TruView also.

So, I guess one would try either:
>Change Common Dimension Style Arrowheads 1st and 2nd to a pointer type arrow
or
>Create a new Dimension Style doing that and assign this Dimension Style to the Leaders.  I did this option in the attached.
Alvin Gregorio
TurboCAD: v2024_Plat (31.0.77.1); v2022_Plat; v2020_Plat; v2019_DL; v20.2_PP
Lenovo Thinkpad P20Y laptop; Windows 11 Pro; i7-11800H 2.30GHz, 8-core; 32GB RAM; NVIDIA T1200
3D_Printer: Ender-3 S1 (NOT Pro)

nikkipollard

This is a long shot
have you tried playing with this setting, under setup when you save as dwg
Nikki
TC20 platinum, TC 2015 platinum
TC 2017 with lightworks
TC 2021 platinum
Windows 11 Home 22h

scottgus1

Thanks, all, for looking into this!

I did find the arrow tool, Nikki, and I put it in my Dimension toolbar. Deluxe has just the straight Arrow, which is good enough for me. I have fallen back to your idea of an arrow and a separate text. This arrow & text is the same process I use in another CAD program I use in work.

I also tried the "Explode Architectural Objects" option, (I think that's what your screenshot was highlighting?) regrettably I got the same kablooey.

Alvin & Jeff, I see the leaders get applied to a new-generated Dimension Style that has a slash at the end instead of an arrowhead. I also see some texts and lines switch layer. Seems TC's programming for switching to DWG has a few bugs in it.

However, the arrows seem to survive the conversion. I also got shown the Select by Entity Type Ctrl-T and Isolate tools, which helps me find all my old leaders and replace them with arrow & text.

So I seem to have a work-around now. Arrows & separate Text instead of Leaders.
Thanks, everyone, for your help!

Alvin Gregorio

Quote from: scottgus1 on February 05, 2021, 09:05:22 AM
...

Alvin & Jeff, I see the leaders get applied to a new-generated Dimension Style that has a slash at the end instead of an arrowhead. I also see some texts and lines switch layer. Seems TC's programming for switching to DWG has a few bugs in it.

...

Hmm... seems to me that for your leaders to survive the export to .dwg or .dxf, you might need to change any of its Properties via the Dimension Style only; not via starting with a Style assigned then changing any property in the Leaders' Properties.  Perhaps.  This would make sense to me.
Alvin Gregorio
TurboCAD: v2024_Plat (31.0.77.1); v2022_Plat; v2020_Plat; v2019_DL; v20.2_PP
Lenovo Thinkpad P20Y laptop; Windows 11 Pro; i7-11800H 2.30GHz, 8-core; 32GB RAM; NVIDIA T1200
3D_Printer: Ender-3 S1 (NOT Pro)

nikkipollard

#19
Alvin I think that is exactly it.
But who remembers to do that?
That is why I thought the text setting - in save settings might solve the problem.
Nikki
TC20 platinum, TC 2015 platinum
TC 2017 with lightworks
TC 2021 platinum
Windows 11 Home 22h