load_dxf#
- sectionproperties.pre.geometry.load_dxf(dxf_filepath: str | Path, spline_delta: float, degrees_per_segment: float) Geometry | CompoundGeometry [source]#
Import any-old-shape in
.dxf
format for analysis.- Parameters:
- Raises:
ImportError – If
cad_to_shapely
is not installed. To enable dxf features usepip install sectionproperties[dxf]
.RuntimeError – No polygon objects are found in the file
ValueError – The filepath does not exist
- Returns:
Geometry or CompoundGeometry loaded from
.dxf
file- Return type: