You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have been trying out the dxf2elmt plugin. I am using QCad that creates R15 version dxf file.
When I import the converted elmt, the lines are thin and with no text. I started to play around with with different things.
About Text
Using QCad, the text has to be simple type, then the converter imports the text. Only problem is that the all text is placed on the element hot spot. The dxf file contains the text coordinates, so the converter may be missing it. The text x and y attribute values are set to 0
About Lines
The imported lines are thin. I see in the importer source code that it looks for line weight > 0.5 to create the line-weight:normal attribute in the elmt file. My line thickness is set to 0.53mm, QCad saves this 0.53 value as 53 (0.53 x 100), so the importer misses it.
DXF sample
LINE
5
62
100
AcDbEntity
8
0
62
256
370
53 line weight
48
1.0
6
ByLayer
100
AcDbLine
Are these dxf version related issues?
Are there workarounds?
In regards to the text coordinates, the x and y values were just being set using the location, but per a DXF spec reference I was looking at if the Horizontal and/or Vertical Alignment are set to something other than default (top left) you need to use the second alignment points, and calculate the location based on the dimensions of the text, and font used etc. It looks like in the sample no.dxf since the alignment values were not default, it just set the x and y coordinates for the location to 0, since they would be ignored per the spec anyway.
I did a bit of looking into the line thickness as well. It looks like the Line thickness is coming through as 0, which is why they are getting converted into Thin lines. I wonder if this is a dxf-rs issue. I'll need to dig a bit deeper.
Issue described by xenotek in QElectrotech forums.
The text was updated successfully, but these errors were encountered: