Creating a custom GH component that removes the geometry when Preview is not enabled, but retains the geometry when baked - Grasshopper2024-03-29T13:38:57Zhttps://www.grasshopper3d.com/forum/topics/creating-a-custom-gh-component-that-removes-the-geometry-when?feed=yes&xn_auth=noOn the same note, what method…tag:www.grasshopper3d.com,2017-07-19:2985220:Comment:17859542017-07-19T06:45:05.594ZBianchi Dyhttps://www.grasshopper3d.com/profile/BianchiDy
<p>On the same note, what method would I use to determine if the user opted to bake the geometry? (similar to how I can find out if Preview is set to True/False)</p>
<p>On the same note, what method would I use to determine if the user opted to bake the geometry? (similar to how I can find out if Preview is set to True/False)</p> Under Rhino.RhinoDoc.ActiveDo…tag:www.grasshopper3d.com,2017-07-18:2985220:Comment:17852912017-07-18T11:15:34.866ZMateusz Zwierzyckihttps://www.grasshopper3d.com/profile/MateuszZwierzycki
<p>Under Rhino.RhinoDoc.ActiveDoc.Objects you have all the methods do add new objects to the current document. </p>
<p><a href="http://developer.rhino3d.com/api/RhinoCommonWin/html/T_Rhino_DocObjects_Tables_ObjectTable.htm" rel="nofollow" target="_blank">http://developer.rhino3d.com/api/RhinoCommonWin/html/T_Rhino_DocObj...</a></p>
<p></p>
<p>I believe you'll call it </p>
<p>circle_GUID = rc.RhinoDoc.ActiveDoc.Objects.AddCircle(<em>Circle</em>, <em>Attributes</em>)</p>
<p>which is also a…</p>
<p>Under Rhino.RhinoDoc.ActiveDoc.Objects you have all the methods do add new objects to the current document. </p>
<p><a rel="nofollow" href="http://developer.rhino3d.com/api/RhinoCommonWin/html/T_Rhino_DocObjects_Tables_ObjectTable.htm" target="_blank">http://developer.rhino3d.com/api/RhinoCommonWin/html/T_Rhino_DocObj...</a></p>
<p></p>
<p>I believe you'll call it </p>
<p>circle_GUID = rc.RhinoDoc.ActiveDoc.Objects.AddCircle(<em>Circle</em>, <em>Attributes</em>)</p>
<p>which is also a function returning a GUID of this new Circle.</p>
<p></p>
<p>Regarding the display... I don't think any of the objects passed to the display pipeline are actually added to the ObjectTable. </p>
<p></p>