|
|
|
@ -79,6 +79,12 @@ def convert(dxf_name, layer_name):
|
|
|
|
|
|
|
|
|
|
# Add to dataframe
|
|
|
|
|
points = pd.DataFrame(data)
|
|
|
|
|
|
|
|
|
|
# Check if there are z coordinates
|
|
|
|
|
if 'z' not in points.columns:
|
|
|
|
|
points['z'] = np.nan
|
|
|
|
|
|
|
|
|
|
# Reorder columns
|
|
|
|
|
points = points[['layer', 'type', 'id', 'x', 'y', 'z']]
|
|
|
|
|
|
|
|
|
|
# Export points
|
|
|
|
|