"global name 'new_tol' is not defined" - HB String to Object and other issues :s

Hi,
I’m pretty new to using Ladybug and Honeybee and I’m having a few issues I can’t figure out after trying to update to 1.1.0
First time around I think I had a problem during the installation and when I first attempted to use a script I had a whole bunch of errors most namely stating that I was missing a ‘constructions’ folder in ‘honeybee_standards’.
After trying to fix this for a while I removed all the ladybug & honeybee tools I had, including Radiance and Openstudio (which I had also installed the latest versions of), and reinstalled everything again, making sure to follow the installation steps to the letter. This second time around everything seemed to install much better and I had no immediate errors I loaded the versioner and config componenets and everything seemed fine. However, my first red flag was when attempting to use the ‘HB String to Object’ component where I got the error message “global name ‘new_tol’ is not defined”. I also tested an example model called ‘afn_apartment_model’ which should have run fine but when I attempted to run this I got -

“1. Solution exception:Your Rhino Model units system is: Millimeters
C:\Users\jenkins\git\OpenStudio\src\model\PlanarSurface.cpp@657 : Cannot create a surface with vertices [[0.005, 0.005, 0.003], [0.005, 0.005, 0], [0.005, 0.01, 0], [0.005, 0.01, 0.003]]”

Might be an inexperienced oversight on my part, but I’ve no idea whats gone wrong and would greatly appreciate any help :slight_smile:

Hi @admey Change your rhino model units to mts

Hi @Asisnath, thanks for a quick response! yeah, I thought that and tried that too but got the same message just with ‘meters’ instead of ‘millimeters’ :confused:

Capn you please share your definition here.

Sure - here is the example file I was attempting to use - I’ve included an ‘HB String to Object’ example on the same definition that I was also testing to get the first error. I’m still a new user here so can’t upload files yet but here’s a WeTranfer link that I hope works:

@admey ,

The new_tol issue is a bug/typo. Thank you for reporting it and I just pushed a fix:

Here is the message that you were supposed to get instead of the ambiguous new_tol message:

Imported Model tolerance is significantly coarser than the current Rhino model tolerance. It is recommended that the Rhino document tolerance be changed to be coarser and this component is re-run.

As @Asisnath says, this is all the result of you having a Rhino model that’s not in meters but the geometry that’s internalized in the Grasshopper definition is meant to be in meters. You’ll probably have to change the Rhino model and then re-compute the canvas at least two times to ensure the new units are read throughout all of the components. Or change the Rhino model to meters before opening Grasshopper.

Ah yeah that totally was it! working great now, thanks!