View Issue Details

IDProjectCategoryView StatusLast Update
0000068FreeCADBugpublic2010-01-29 18:28
Reporterunauthenticated Assigned Toyorik  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version0.9 
Fixed in Version0.10 
Summary0000068: DXF Import
DescriptionWhen I import a DXF File the arcs are not imported correct.
Additional InformationI have added an example depending of a couple of lines and arcs.

Lines are connected to Lines as expleced
Arcs with lines are connected to lines at one point but the direction of the arc seems to be wrong.
Arcs with arcs I cant guess...


Find my Testfile Spant.dxf attached
TagsNo tags attached.
FreeCAD Information

Activities

2010-01-24 11:41

 

spant.dxf (Attachment missing)

wmayer

2010-01-24 15:45

administrator   ~0000159

The method drawArc() can be implemented this way:
def drawArc(arc):
    "returns a Part shape from a dxf arc"
    v=FreeCAD.Vector(arc.loc[0],arc.loc[1],arc.loc[2])
    firstangle=(arc.start_angle/180)*math.pi
    lastangle=(arc.end_angle/180)*math.pi
    circle=Part.Circle()
    circle.Center=v
    circle.Radius=arc.radius
    return circle.toShape(firstangle,lastangle)


BTW, you can remove the line from PyQt4 import QtGui at the top. The script then can be used without having installed python-qt.

yorik

2010-01-29 18:28

administrator   ~0000160

Another problem with rotation signs. It's now fixed in r2894

Issue History

Date Modified Username Field Change
2010-01-24 11:41 unauthenticated New Issue
2010-01-24 11:41 unauthenticated File Added: spant.dxf
2010-01-24 15:45 wmayer Note Added: 0000159
2010-01-24 15:45 wmayer Assigned To => yorik
2010-01-24 15:45 wmayer Status new => assigned
2010-01-29 18:28 yorik Note Added: 0000160
2010-01-29 18:28 yorik Status assigned => closed
2010-01-29 18:28 yorik Resolution open => fixed
2010-01-29 18:28 yorik Fixed in Version => 0.10