Behebung von Bugs
This commit is contained in:
@@ -45,8 +45,8 @@ class Gefaellestrecke(BaseModel):
|
||||
tefkurve_0 = None
|
||||
tefkurve_1 = None
|
||||
if "Kurvenrichtung" in gefaellestrecke_nachbarn:
|
||||
vario_hoehe_0 = float(gefaellestrecke_nachbarn.get("vario_hoehe_0")) * 1000
|
||||
vario_hoehe_1 = float(gefaellestrecke_nachbarn.get("vario_hoehe_1")) * 1000
|
||||
vario_hoehe_0 = float(gefaellestrecke_nachbarn.get("vario_hoehe_0"))
|
||||
vario_hoehe_1 = float(gefaellestrecke_nachbarn.get("vario_hoehe_1"))
|
||||
kurvenrichtung = gefaellestrecke_nachbarn.get("Kurvenrichtung")
|
||||
tefkurve_0 = gefaellestrecke_nachbarn.get("Tefkurve")
|
||||
if (kurvenrichtung == "links" and tefkurve_0 == "Aussen") or kurvenrichtung == "rechts" and tefkurve_0 == "Innen":
|
||||
@@ -59,8 +59,8 @@ class Gefaellestrecke(BaseModel):
|
||||
blockname_umlenk_links = block_Vario_Umlenkstation_500mm + "links"
|
||||
plant2dxf.import_block(block_Vario_Umlenkstation_500mm,lib_doc,doc)
|
||||
plant2dxf.import_block(block_Vario_Motorstation_500mm,lib_doc,doc)
|
||||
block_Vario_Umlenkstation_500mm =plant2dxf.dreh_block(block_Vario_Umlenkstation_500mm,doc,math.radians(3))
|
||||
block_Vario_Motorstation_500mm =plant2dxf.dreh_block(block_Vario_Motorstation_500mm,doc,math.radians(3))
|
||||
block_Vario_Umlenkstation_500mm =plant2dxf.dreh_block(block_Vario_Umlenkstation_500mm,doc,lib_doc,math.radians(3))
|
||||
block_Vario_Motorstation_500mm =plant2dxf.dreh_block(block_Vario_Motorstation_500mm,doc,lib_doc,math.radians(3))
|
||||
if blockname_motor_links not in doc.blocks:
|
||||
matrix = Matrix44.scale(1,-1,1)
|
||||
block_motor_links = doc.blocks.new(name=blockname_motor_links,base_point=(0,0,0))
|
||||
|
||||
Reference in New Issue
Block a user