Civil3D connector reading Autocad units setting

Hi Speckle team,

Just worked through an issue where objects sent from Civil3D were coming into Speckle tiny and were showing that they were in mm. Essentially I think I’ve found that the Civil3D connector is reading the Autocad units setting rather than the Civil3D units.

Had a chat to our office Civil3D person and I learned that there are 2 places that units are set in Civil3D.
1 - "drawing units’ where you set the units that you’re working with in Civil3D
2 - the ‘units’ dialogue where you set/inherit units from Autocad (this is usually set to unitless)

The file I was working in was originally made in Autocad and the units in the ‘units’ dialogue were set to mm, while the units in the ‘drawing units’ was set to mm. From what I understand, normally when you’re working in Civil3D the ‘drawing units’ dialogue overrides the ‘units’ inherited Autocad. Setting the Autocad units in the ‘units’ dialogue fixed my problem and the geometry is showing up fine in Speckle.
I think generally the issue is with the drawing, not Speckle (as autocad should have been unitless) but I would expect Speckle to use the Civil3D units, not the Autocad units anyway.

[Units in AutoCAD: Drawing Units vs. DWG Units (-DWGUNITS)] ← this sort of explains the difference between the 2 settings

Happy to share the stream/file I was working with. Thanks!

2 Likes

Hi @Aleisha_M thanks for the bug report!

You’re right, I just checked our Civil connector and I was only pulling the drawing units when the insunits was not set.

I’ll make a hotfix for this in our current connectors.

In the meantime, check out our next gen connector for Civil3D (should be installed automatically the next time you update your current connector) - the units problem shouldn’t be an issue here, please let me know if it is!

3 Likes