Rhino 9 Beta on linux missing doc level block instance API

Hello,

With @Jedd_Morgan we’ve started to upgrade our headless Rhino.Inside based file importer app running on windows to the latest beta using linux container. The initial port was smooth sailing and I got to a working state pretty fast.

Throwing our internal test files at the fresh goodies I ran into an issue with the doc level block instance API not implemented.

A fully self contained reproduction and side by side comparison with the macOS version is available in this repo: GitHub - specklesystems/rhino9-linux-instance-api-repro: Minimal repro: Rhino 9 WIP on Linux ships librhcommon_c.so without the doc-level block-instance C-API — all CRhinoInstance* entry points RhinoCommon binds are absent, so InstanceObject.InstanceDefinition & co. throw EntryPointNotFoundException · GitHub

We kinda sorta have a workaround keeping instance.InstanceDefinition as the primary path for definition name/description/members, and on EntryPointNotFoundException falling back to resolving definitions from the doc’s source 3dm instead but it’s messy.

It would be nice to understand whether this API gap is known and patching is in the works.

Thanks :slight_smile:

4 Likes