639 B
639 B
Wichtige Ezdxf Methoden
- block.add_blockref(blockname,(kordinaten)dxfattribute={"rotation": rotation,"layer": layer})
- Fügt inserts in ein block hinzu
- msp.add_blockref(blockname,(kordinaten)dxfattribute={"rotation": rotation,"layer": layer})
- Fügt insert ins Modelspace hinzu
- doc.blocks.new(blockname, base_point=(0,0,0))
- Fügt einen neune Block ins Document hinzu(gleichen Block kann man nur einmal machen if abrage wär if blockname in doc.blocks)
- msp.query("DXFOBJEKT)
- Holle jedes spezifische dxfobjekt von dem Modelspace, wird meistens für Inserts verwendet