Using Rhino3dm in Blender

AFAIK the Import hidden geometry option doesn’t do anything yet. There is a PR awaiting review that takes care of this.

Aye, the PR will be handled today! The PR contains some other goodies too (:

2 Likes

Just installed the latest version of the addon 0.0.5 and when I try to import a Rhino file I get this error message:

Traceback (most recent call last):
File “C:\Users\User\AppData\Roaming\Blender Foundation\Blender\2.80\scripts\addons\import_3dm_init_.py”, line 104, in execute
return read_3dm(context, self.filepath, self.import_hidden, self.import_views, self.import_named_views, self.update_materials, self.import_hidden_layers)
File “C:\Users\User\AppData\Roaming\Blender Foundation\Blender\2.80\scripts\addons\import_3dm\read3dm.py”, line 186, in read_3dm
convert_rhino_object(og, context, n, attr.Name, attr.Id, layer, rhinomat, scale)
File “C:\Users\User\AppData\Roaming\Blender Foundation\Blender\2.80\scripts\addons\import_3dm\converters\curve.py”, line 109, in import_curve
CONVERT[type(og)](og, curve_data, scale)
File “C:\Users\User\AppData\Roaming\Blender Foundation\Blender\2.80\scripts\addons\import_3dm\converters\curve.py”, line 30, in import_line
fr = rcurve.Line.From
AttributeError: ‘rhino3dm._rhino3dm.LineCurve’ object has no attribute ‘Line’
location: :-1

In latest Blender 2.81 build for Windows I get this:

Traceback (most recent call last):
File “C:\Users\User\AppData\Roaming\Blender Foundation\Blender\2.81\scripts\addons\import_3dm_init_.py”, line 104, in execute
return read_3dm(context, self.filepath, self.import_hidden, self.import_views, self.import_named_views, self.update_materials, self.import_hidden_layers)
TypeError: read_3dm() takes 5 positional arguments but 7 were given
location: :-1

After a Blender restart, I get this error message:

Traceback (most recent call last):
File “C:\Users\User\AppData\Roaming\Blender Foundation\Blender\2.81\scripts\addons\import_3dm_init_.py”, line 104, in execute
return read_3dm(context, self.filepath, self.import_hidden, self.import_views, self.import_named_views, self.update_materials, self.import_hidden_layers)
File “C:\Users\User\AppData\Roaming\Blender Foundation\Blender\2.81\scripts\addons\import_3dm\read3dm.py”, line 137, in read_3dm
scale = r3d.UnitSystem.UnitScale(model.Settings.ModelUnitSystem, r3d.UnitSystem.Meters) / context.scene.unit_settings.scale_length
AttributeError: module ‘rhino3dm’ has no attribute ‘UnitSystem’
location: :-1

Right, the rhino3dm package needs to be updated. I’ll write an operator that does that for you from the comfort of your Blender seat. It’ll be 0.0.6 then I guess (:

Ok, thank you. I’m waiting for the update then.

Perhaps we can put a version check for rhino3dm when we check if it exists, and then upgrade if necessary? We can simply set a required_version in the add-on and update as necessary.

@tom_svilans, something along those lines yes. I was thinking that maybe we could split of the current auto-install of dependencies into an operator that a user explicitly calls to set up import_3dm - it’d be easier to tell the user important things through the operator reporting bits, or use UI popups. I’m tinkering with some of that stuff now, but feel free to try too.

Hi there,
i´m not able to activate import with this error message:
screenshot_1
I also copied the rhino3dm folder to blender\addons as described … but it´s not working.
I´m just a noob, so please be patient with me :wink:

1 Like

I’m working on some further improvements to the dependency installation part. I’m targeting to get something out by the end of the week.

Keep having the same problem as described by R Stein… followed installation instructions but no luck (see screenshot)
… would appreciate if someone can could help! (Win 10, Rhino 6, Blender 2.8, Python 3.7)
Thanks!

Hi @martin_anton, that looks like you got rhino3dm version 0.7.0 installed.

There was a small, but breaking change between 0.6.0 and 0.7.0. The quickest way to get you going is to open the file curve.py from the location mentioned in your screenshot, and edit line 99 to read PolyCurve instead of Polycurve.

1 Like

Thanks for the quick reply!
Changed the wording and it worked! I am able to import rhino files now!
:slight_smile: !!!

Wohoo! :slight_smile:

Hi @nathanletwory apologies for another noob question but is this the correct zip file to download and install from?

I follow the instructions but don’t seem to get anything showing up in Blender after I install this zip file

Screenshot%20(4)

@jcmv_design, that is the wrong zip. See the releases tab in the middle of your screenshot. Click that and get the latest release.

Thanks @nathanletwory I followed your directions above for renaming PolyCurve but i’m still getting this error.
I think it might be something to do with not having pip installed, but I can’t really decipher some of the suggestions above is there an ‘idiots guide’ somewhere? xD

1 Like

@jcmv_design what does the rest of the error report say when you scroll down in it?

Hmm, the only thing standing out is the space in your paths due to space in username. I think that is causing the problem - I’m probably not escaping the paths correctly on Windows.

I’ll let you know when I have an updated version ready for your testing.

1 Like

A thought on layers: Yesterday I imported a larger architectural file to test more complex groups and blocks and the outliner became completely crowded and quite cumbersome to navigate with all the layers in the file. Shouldn’t layers be grouped into a single main collection “Layers”, just like e.g. named views and groups? Also, an option to skip empty layers on import might be useful…