mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-24 19:09:58 +00:00
Fix bug where add grids didn't work. See #1284.
This commit is contained in:
@@ -10,6 +10,7 @@ from . import annotation
|
|||||||
from . import helper
|
from . import helper
|
||||||
from mathutils import Vector
|
from mathutils import Vector
|
||||||
from mathutils import geometry
|
from mathutils import geometry
|
||||||
|
from blenderbim.bim.ifc import IfcStore
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from OCC.Core import BRep, BRepTools, TopExp, TopAbs
|
from OCC.Core import BRep, BRepTools, TopExp, TopAbs
|
||||||
@@ -140,11 +141,7 @@ class SvgWriter:
|
|||||||
line["marker-start"] = "url(#grid-marker)"
|
line["marker-start"] = "url(#grid-marker)"
|
||||||
line["marker-end"] = "url(#grid-marker)"
|
line["marker-end"] = "url(#grid-marker)"
|
||||||
line["stroke-dasharray"] = "12.5, 3, 3, 3"
|
line["stroke-dasharray"] = "12.5, 3, 3, 3"
|
||||||
axis_tag = grid_obj.BIMObjectProperties.attributes.get("AxisTag")
|
axis_tag = IfcStore.get_file().by_id(grid_obj.BIMObjectProperties.ifc_definition_id).AxisTag
|
||||||
if axis_tag:
|
|
||||||
axis_tag = axis_tag.string_value
|
|
||||||
else:
|
|
||||||
axis_tag = grid_obj.name.split("/")[1]
|
|
||||||
self.svg.add(
|
self.svg.add(
|
||||||
self.svg.text(
|
self.svg.text(
|
||||||
axis_tag,
|
axis_tag,
|
||||||
|
|||||||
Reference in New Issue
Block a user