Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Arch: IFC import, fix Axis system placement
  • Loading branch information
berndhahnebach committed Oct 12, 2019
1 parent 3da76af commit a431cf7
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/Mod/Arch/importIFC.py
Expand Up @@ -1041,13 +1041,22 @@ def insert(filename,docname,skip=[],only=[],root=None,preferences=None):
axes.append(o)
if axes:
name = "Grid"
grid_placement = None
if annotation.Name:
name = annotation.Name
if six.PY2:
name = name.encode("utf8")
if annotation.ObjectPlacement:
# https://forum.freecadweb.org/viewtopic.php?f=39&t=40027
grid_placement = importIFCHelper.getPlacement(
annotation.ObjectPlacement,
scaling=1
)
if preferences['PREFIX_NUMBERS']:
name = "ID" + str(aid) + " " + name
anno = Arch.makeAxisSystem(axes,name)
if grid_placement:
anno.Placement = grid_placement
print(" axis")
else:
name = "Annotation"
Expand Down

0 comments on commit a431cf7

Please sign in to comment.