This commit is contained in:
2025-11-20 00:57:15 +01:00
parent 049898c939
commit d61260fdd3
10 changed files with 1704 additions and 520 deletions

View File

@@ -76,8 +76,10 @@ def getWire(wire, nospline=False, width=.0):
import DraftGeomUtils
import math
offset = FreeCAD.ActiveDocument.Site.Origin
def fmt(vec, b=0.0):
return (vec.x * 0.001, vec.y * 0.001, width, width, b)
return ((vec.x + offset.x) * 0.001, (vec.y + offset.y) * 0.001, width, width, b)
points = []
edges = Part.__sortEdges__(wire.Edges)
@@ -647,7 +649,7 @@ layers = [
("CIVIL External Roads Text", QtGui.QColor(255, 255, 192), "Continuous", "1", True),
("CIVIL Internal Roads", QtGui.QColor(153, 95, 76), "Continuous", "1", True),
("CIVIL Internal Roads Axis", QtGui.QColor(192, 192, 192), "Dashed", "1", True),
("CIVIL External Roads Text", QtGui.QColor(192, 192, 192), "Continuous", "1", True),
("CIVIL Internal Roads Text", QtGui.QColor(192, 192, 192), "Continuous", "1", True),
("Contour Line Legend text", QtGui.QColor(255, 255, 255), "Continuous", "1", True),
("Major contour line", QtGui.QColor(0, 0, 0), "Continuous", "1", True),
@@ -894,6 +896,9 @@ class _PVPlantExportDXF(QtGui.QWidget):
angle=0,
layer=area_type[1]
)
for obj in FreeCADGui.Selection.getSelection():
tmp = exporter.createPolyline(obj, areas_types[0][1])
def writeFrameSetups(self, exporter):
if not hasattr(FreeCAD.ActiveDocument, "Site"):