SketchUp Layout to QCAD with dwg2svg

Drop in here to discuss whatever you want.

Moderator: andrew

Forum rules

Always indicate your operating system and QCAD version.

Attach drawing files and screenshots.

Post one question per topic.

Post Reply
Rudolf
Registered Member
Posts: 2
Joined: Fri Oct 24, 2025 3:22 pm

SketchUp Layout to QCAD with dwg2svg

Post by Rudolf » Fri Oct 24, 2025 4:52 pm

OS: MACOS 15.6.1, QCAD-Pro V 3.32.4.0

My task is to convert Sketchup Layout files to be used for further processing in QCAD.

After some research I found the converter DWG2SVG. So I exported in Layout to DWG: 0UGElektro.dwg, placed this in the some directory as the converter and defined an output file in the user area to avoid file creation problems.

This is the command in Terminal of MacOS:
rudolfms@MacServer Resources % ./dwg2svg -o /users/rudolfms/Rudolf/0.work/2D/0UGElektro.svg -f 0UGElektro.dwg

The resulting file is (nearly) empty.

The converter runs in debug mode and produces the following warning messages:

...
16:56:46: Debug: Evaluating file: ":generator/js/RCavalierContours.js"
16:56:46: Debug: auto load files: QList(":scripts/Pro/WidgetFactoryPro.js")
Warning: Unimplemented code.
Warning: Unimplemented code.
Warning: using custom script handler from plugin
Warning: Unimplemented code.
16:56:46: Debug: cadFile: /Applications/QCAD-Pro.app/Contents/Resources/0UGElektro.dwg
16:56:46: Debug: svgFile: /users/rudolfms/Rudolf/0.work/2D/0UGElektro.svg
Warning: cannot assign original handle to object "0x14"
Warning: collision with object of type: 2
Warning: new handle "0x39"
Warning: cannot assign original handle to object "0x15"
Warning: collision with object of type: 2
Warning: new handle "0x3a"
Warning: cannot assign original handle to object "0x10"
Warning: collision with object of type: 2
Warning: new handle "0x10f"
Warning: cannot assign original handle to object "0x22"
Warning: collision with object of type: 2
Warning: new handle "0x129"
Warning: cannot assign original handle to object "0x1f"
Warning: collision with object of type: 2
Warning: new handle "0x12a"
Warning: cannot assign original handle to object "0x129"
Warning: collision with object of type: 5
Warning: new handle "0xbd3"
Warning: cannot assign original handle to object "0x10f"
Warning: collision with object of type: 3
Warning: new handle "0xbe8"
...


What do I do wrong?
What can I do?
Attachments
Log.rtf
(37.61 KiB) Downloaded 46 times
0UGElektro.dwg
(393.58 KiB) Downloaded 47 times
0UGElektro.svg
(739 Bytes) Downloaded 48 times

User avatar
andrew
Site Admin
Posts: 8791
Joined: Fri Mar 30, 2007 6:07 am

Re: SketchUp Layout to QCAD with dwg2svg

Post by andrew » Fri Oct 24, 2025 5:10 pm

The DWG file only contains two references to image files:

2025-07-20 UG Elektro.images/000.png
2025-07-20 UG Elektro.images/001.png

These images are not stored in the DWG but referenced on disk.

When exporting to SVG, the SVG file will also just contain references to these image files.

CVH
Premier Member
Posts: 4959
Joined: Wed Sep 27, 2017 4:17 pm

Re: SketchUp Layout to QCAD with dwg2svg

Post by CVH » Fri Oct 24, 2025 5:32 pm

Rudolf wrote:
Fri Oct 24, 2025 4:52 pm
My task is to convert Sketchup Layout files to be used for further processing in QCAD.
It is a DWG file ... A native CAD format supported by QCAD ... Why converting them to SVG?
I would further process these in QCAD as DWG or DXF files.

The best option is to place a copy of the bitmap files in the same directory as the DXF/DWG.
If QCAD can't locate it at 2025-07-20 UG Elektro.images/*.* it will also scan the drawing file path for such a file. :wink:

Regards,
CVH

Rudolf
Registered Member
Posts: 2
Joined: Fri Oct 24, 2025 3:22 pm

Re: SketchUp Layout to QCAD with dwg2svg

Post by Rudolf » Fri Oct 24, 2025 7:06 pm

Thanks for the quick answers.
It looks like my problem is more the Export from Sketchup Layout, because the png contain only the imported background with the house drawing and not the vectors I draw on top.
See attached file.
I now will explore another path.
I will use the attached PDF and import it directly to QCAD. I found out that with this way vectors remain vectors.

Thanks a lot so far, I may come again, if the above mentioned path gives me difficulties I cannot manage.
Regards, Rudolf
Attachments
2025-07-20 UG Elektro.pdf
(119.61 KiB) Downloaded 46 times

Post Reply

Return to “Chat”