mcneel / rhino3dm

Libraries based on OpenNURBS with a RhinoCommon style
MIT License
599 stars 135 forks source link

create a new instance definition #436

Closed Gaspard-Bourgeois closed 6 months ago

Gaspard-Bourgeois commented 2 years ago

I don't succeed in creating new instance definition by code.

Can you update scripts to match with the documentation of Add method bellow : https://mcneel.github.io/rhino3dm/python/api/File3dmInstanceDefinitionTable.html

Currently only idef can be added and I don't find any way to create a new idef from objects.

Zhanchenhaha commented 2 years ago

hello,did you solved the problem? I have same problem in C#

Gaspard-Bourgeois commented 2 years ago

I didn't find any solution, except starting from a template

fraguada commented 9 months ago

I've started work on this here: https://github.com/mcneel/rhino3dm/tree/luis/addInstanceDefinition

fraguada commented 6 months ago

This has been added and will be available in rhino3dm 8.6.0

fraguada commented 6 months ago

@Gaspard-Bourgeois @Zhanchenhaha This has been fixed in rhino3dm. You can get it on 8.6.0-beta1 [dotnet][py][js]

Gaspard-Bourgeois commented 6 months ago

Thanks