Script to convert CAD to Revit runnning into issues with dxf exports
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm using dxf exports to grab text information for a pyRevit script that converts our CAD details to Revit. It has been working fine but I have found a file that seems to be creating very strange measurements for the text.
This is how I expect the dxf export to look like for a 9 character string text. The string is "(TYPICAL)". The width under 41 is 59.58870056497174. The X and Y under 10 and 20 is 207.7002639875136 and 164.4406971268886.
MTEXT
5
E7
330
A6
100
AcDbEntity
8
E-TEXT
100
AcDbMText
10
207.7002639875136
20
164.4406971268886
30
0.0
40
7.999999999999998
41
59.58870056497174
46
0.0
71
1
72
1
1
(TYPICAL)
7
Simplex_2
73
2
44
1.125730921843912
1001
REVIT
1002
{
1070
1
1000
5355169
1002
}
1002
{
1070
5
1000
5355128
1002
}
1002
{
1070
3
1000
5355152
1002
}
0
This is the export from the troublesome file. ALL of the values appear to be much smaller. For example the text width under 41 is only 0.628779109054051. Is there some kind of value I should be looking for in the dxf file to correct for this. The CAD files have the same LTscale but in Revit I have to set the view for this file to 12" = 1' 0" instead of our standard 1/8" = 1' 0".
MTEXT
5
109
330
9B
100
AcDbEntity
8
E-TEXT
100
AcDbMText
10
2.600759081239662
20
-1.435012770780268
30
0.0
40
0.0833333333333333
41
0.628779109054051
46
0.0
71
2
72
1
1
ALUMINUM
7
Simplex_3
73
2
44
1.125730921843912
1001
REVIT
1002
{
1070
1
1000
5353560
1002
}
1002
{
1070
5
1000
5353531
1002
}
1002
{
1070
3
1000
5353544
1002
}
0