Merge branch 'main' of http://gitea.schoenenberger.de/mistangl/plant2dxf
This commit is contained in:
+5
-3
@@ -587,9 +587,9 @@ def handle_ils_2_0_gefaellestrecke(msp, teileid, merkmale, x, y, doc, lib_doc, v
|
|||||||
line.translate(-x,-y,-hoehe_gefaehlle)
|
line.translate(-x,-y,-hoehe_gefaehlle)
|
||||||
block.add_entity(line)
|
block.add_entity(line)
|
||||||
msp.add_blockref(blockname,(x,y,hoehe_gefaehlle),dxfattribs={"rotation": rotation,"layer": gefaelle_layer})
|
msp.add_blockref(blockname,(x,y,hoehe_gefaehlle),dxfattribs={"rotation": rotation,"layer": gefaelle_layer})
|
||||||
else:
|
elif hat_motor_0 == True or hat_motor_1 == True or hat_umlenk_0 == True or hat_umlenk_1 == True:
|
||||||
if blockname not in doc.blocks:
|
if blockname not in doc.blocks:
|
||||||
block = doc.blocks.new(name=blockname,base_point = (0,0,0))
|
block = doc.blocks.new(name=blockname,base_point = (0,0,0))
|
||||||
if (hat_motor_0 == True and tefkurve_0 == "rechts") or (hat_motor_1 == True and tefkurve_1 == "rechts"):
|
if (hat_motor_0 == True and tefkurve_0 == "rechts") or (hat_motor_1 == True and tefkurve_1 == "rechts"):
|
||||||
block.add_blockref(block_Vario_Motorstation_500mm, (start[0]-x,start[1] - 250* math.cos(math.radians(3))-y,start[2] - 250* math.sin(math.radians(3))-hoehe_gefaehlle),dxfattribs={"rotation": 270})
|
block.add_blockref(block_Vario_Motorstation_500mm, (start[0]-x,start[1] - 250* math.cos(math.radians(3))-y,start[2] - 250* math.sin(math.radians(3))-hoehe_gefaehlle),dxfattribs={"rotation": 270})
|
||||||
else:
|
else:
|
||||||
@@ -604,7 +604,9 @@ def handle_ils_2_0_gefaellestrecke(msp, teileid, merkmale, x, y, doc, lib_doc, v
|
|||||||
line.translate(-x,-y,-hoehe_gefaehlle)
|
line.translate(-x,-y,-hoehe_gefaehlle)
|
||||||
block.add_entity(line)
|
block.add_entity(line)
|
||||||
msp.add_blockref(blockname,(x,y,hoehe_gefaehlle),dxfattribs={"rotation": rotation,"layer": gefaelle_layer})
|
msp.add_blockref(blockname,(x,y,hoehe_gefaehlle),dxfattribs={"rotation": rotation,"layer": gefaelle_layer})
|
||||||
|
else:
|
||||||
|
a= msp.add_line(start,ende)
|
||||||
|
a.dxf.layer = "6-SP"
|
||||||
def anzahl_seperatoren_oder_scan(msp, x, y, doc, lib_doc, klassen_objekt, hoehe, rotation):
|
def anzahl_seperatoren_oder_scan(msp, x, y, doc, lib_doc, klassen_objekt, hoehe, rotation):
|
||||||
"""Importiert alle seperatoren und/oder scanner für das nötige objekt"""
|
"""Importiert alle seperatoren und/oder scanner für das nötige objekt"""
|
||||||
separatoren = klassen_objekt.anzahl_separatoren
|
separatoren = klassen_objekt.anzahl_separatoren
|
||||||
|
|||||||
Reference in New Issue
Block a user