Block_methoden in einen eigen File refactored
This commit is contained in:
@@ -4,6 +4,7 @@ import math
|
||||
from pydantic import BaseModel, Field, field_validator
|
||||
from typing import Optional
|
||||
import plant2dxf
|
||||
import block_methoden
|
||||
class Omniflo(BaseModel):
|
||||
teileid:str
|
||||
x:float
|
||||
@@ -68,8 +69,8 @@ class Omniflo(BaseModel):
|
||||
else:
|
||||
linie.dxf.layer = "A-2"
|
||||
def omniflo_foerdererstellung(msp, x, y, doc, lib_doc, omniflo_objekt, rotation):
|
||||
plant2dxf.import_block("bogen1",lib_doc,doc)
|
||||
plant2dxf.import_block("bogen2",lib_doc,doc)
|
||||
block_methoden.import_block("bogen1",lib_doc,doc)
|
||||
block_methoden.import_block("bogen2",lib_doc,doc)
|
||||
|
||||
laenge = omniflo_objekt.laenge
|
||||
h0 = omniflo_objekt.h0
|
||||
|
||||
Reference in New Issue
Block a user