QCAD Bugtracker

  • Status Closed
  • Percent Complete
  • Task Type Bug Report
  • Category Command line tools
  • Assigned To
  • Operating System Windows 7
  • Severity Very Low
  • Priority Very Low
  • Reported Version Development
  • Due in Version Undecided
  • Due Date Undecided
  • Votes
  • Private
Attached to Project: QCAD Bugtracker
Opened by CVH - 01.03.2021
Last edited by Andrew - 08.03.2021

FS#2193 - dwg2csv retains the last encountered custom properties

QCAD Professional
Win installer 32 bit
Version: (
Internet: QCAD.org
Build Date: Feb 12 2021
Revision: cad2d36
Qt Version: 5.13.2
Architecture: i386
Compiler: Unknown

While enhancing DrawFromCSV: Forum Link.
I had a peek at the new command line tool: dwg2csv

I would never come up with 115 columns.
That wouldn’t be efficient to generate entities from.
Although this way it is very complete and one could use specific lists to filter.
One downside is that the ‘-list’ switch return is far too vast for the windows command line.

Remarked that:
Only the first alphabetically custom property is listed under:
QCAD:Line & QCAD:Reference (columns 114-115).
And that the last encountered is persistent for all entities that follows.

Maybe this originates from a multiple entity selection ...
... what also retains the last encountered custom properties in the property editor.
Should I add a seperate task for that?

Also had an exception thrown:
Debug: dropped global XDATA (no res buf): “ViewportCenter”.
Discarted that as this very basic test drawing hasn’t even a Viewport.


Added: Snippet from DrawFromCSV code (merely a test case)


The two points, and only those two points, are casted with custom properties
QCAD|Reference|102 & QCAD|Line|56

Added: The dxf file
Added: The csv file (change to the comma/semicolon style)

Closed by  Andrew
08.03.2021 14:25
Reason for closing:  Not a bug
Andrew commented on 01.03.2021 14:51

Please attach the drawing file (DXF, DWG) and indicate the command line arguments used for the tool, thanks.

CVH commented on 01.03.2021 15:46

The required files are added to the task.

The used commands in the Windows Command Prompt box:
cd C:\Program Files\QCAD
dwg2csv C:\Users\Admin\Desktop\QCAD_development\DrawTest.dxf

Andrew commented on 01.03.2021 15:46

I cannot reproduce the problem here.

Here's how I proceed:

dwg2csv -t Point DrawCSVTest.dxf


Type,Handle,Block,Layer,Linetype,Linetype Scale,Lineweight,Color,Displayed Color,Draw Order,Position:X,Position:Y,Position:Z,QCAD:Line,QCAD:Reference 

This seems correct as there are two points, the first has one custom property:

The other has two:

So for the first, the column QCAD:Line is empty.

Please elaborate if you still think there is a bug somewhere. If you get different results, please let me know, thanks.


Available keyboard shortcuts


Task Details

Task Editing