Connecting Racks werden jetzt auc gezeichnet (gleich wie "originale" Racks aber werden bei beschriftung ignoriert
This commit is contained in:
+5
-2
@@ -132,7 +132,7 @@ def draw_racks(plines, doc):
|
|||||||
for rack_name, rack_geom in plines.rack_geometry.items():
|
for rack_name, rack_geom in plines.rack_geometry.items():
|
||||||
classifier = rack_name[0]
|
classifier = rack_name[0]
|
||||||
|
|
||||||
if classifier in ("t", "v", "c", "d"):
|
if classifier in ("t", "v", "d"):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
coords = [(pt.x, pt.y, pt.z) for pt in rack_geom.coordinates]
|
coords = [(pt.x, pt.y, pt.z) for pt in rack_geom.coordinates]
|
||||||
@@ -141,7 +141,10 @@ def draw_racks(plines, doc):
|
|||||||
|
|
||||||
polyline = msp.add_polyline3d(coords, dxfattribs=dxfattribs_rack)
|
polyline = msp.add_polyline3d(coords, dxfattribs=dxfattribs_rack)
|
||||||
|
|
||||||
if coords:
|
if classifier == "c":
|
||||||
|
continue
|
||||||
|
|
||||||
|
# Textplatzierung
|
||||||
x, y, z = coords[0] # Get the first coordinate for text placement
|
x, y, z = coords[0] # Get the first coordinate for text placement
|
||||||
|
|
||||||
# Orientierung bestimmen (horizontal oder vertikal)
|
# Orientierung bestimmen (horizontal oder vertikal)
|
||||||
|
|||||||
Reference in New Issue
Block a user