Add geometry to view port in permanent lock mode

I’m looking to create and addin which accepts Rhino geometry and inputs and processes this behind the scenes in custom models many of which will store geometric data (but not necessarily the equivalent Rhino type). I then want to have these represented in the view port but they should not be editable (basically identical to how grasshopper represents it’s types in the view port). I know selections can be locked, but the user can unlock the geometry and i don’t not want them to access.

A quick google and i couldn’t find what i was after. I’m assuming this is reasonably easy i just need to know either a) how to write geometry to the doc with read only permission, or b) avoid having the doc manage this geometry and instead render it directly to the view port?

I should also state that the locked geometry would also be clearly visible (like with grasshopper). I.e. locking single objects is a gray which does not stand out from the standard view port background. Assigning the objects to a layer, giving the layer a color and locking that layer, looks good… but i would rather not add layers visible to the user.

Hi Mike -

It sounds like you are looking for display conduits:

-wim

1 Like

Perfect! yep that looks like what i am after. Thanks

Always surprised when things just work, this is exactly what i was after basically just copied my code which updates the doc into the conduit and worked first time (with some minor tweaks).