cerfdude
(Cerfdude)
February 12, 2025, 7:26am
1
Is it possible to automatically lock the GH solver when editing blocks in Rhino? Otherwise any GH pushes that are open cache the virtual geometry inside the block.
gankeyu
(Keyu Gan)
February 12, 2025, 7:28am
2
private static PlugIn plugin;
private static Type editorType;
private static MethodInfo methodTryGet;
private static PropertyInfo propertyIsInplace;
private static bool CacheReflection()
{
if (plugin != null && editorType != null && methodTryGet != null && propertyIsInplace != null)
return true;
plugin = PlugIn.Find(new Guid("f2231a2f-66bf-4558-94ce-988c15aede65"));
if (plugin == null)
…
As a workaround, you may detect whether Rhino is in block edit mode and prevent component from running.
cerfdude
(Cerfdude)
February 12, 2025, 7:29am
3
If this happens and you edit the block to remove the offending geometry you break the Caching widget and have to make a new one.
cerfdude
(Cerfdude)
February 21, 2025, 7:35am
4
Thank you. I would have to add this code to 1000+ clusters that conating only Grasshopper logic?