ShapeDiverGeometryInput DXF Import Units

Is there any way to detect the units of an incoming .dxf file that is being uploaded using the ShapeDiverGeometryInput component? I’d like to be able to account for different users uploading files in mm, in, feet, etc. so that it doesn’t throw of the rest of the script. Thanks!

1 Like

The geometry input doesn’t provide information about units for DXF imports so it’s safer to ask your users. You can add a units dropdown to the Grasshopper definition and use the Caterpillar plugin for conversions between various units so the rest of the script stays the same.