Weird GetObjectList() return & what is an 'ActiveObject'
Hi, Given the following code: protected override Result RunCommand(RhinoDoc doc, RunMode mode) { var settings = new ObjectEnumeratorSettings(); settings.ActiveObjects = true; settings.NormalObjects =...
View ArticlePlanarClosedCurveRelationship behave differently from V5 to V6
I have a plugin written for V5 and now converting to V6. One of the function that I find different is the PlanarClosedCurveRelationship is different. I call the function with 0 tolerance with no issue...
View ArticleIs it possible to check if Brep and Point3d intersects?
Hi everyone! I want to check if Brep and point3d intersects in rhinocommon, how can i achive that? thanks. 3 posts - 2 participants Read full topic
View ArticleCurrent layer color
I want to get the color of the current layer, how to do it? I can’t seem to find it, maybe I’m not careful enough to ask for help.Can you give an example。 Rhino 6 C# 3 posts - 2 participants Read full...
View ArticleResthopper manage diferent rh outputs from three js
Hi, I have several samples using resthopper where I send inputs to a gh or ghx files. But all my samples return me a mesh to handle it in javascript. Is posible to receive diferent output to manage...
View ArticleCustomMeshObject OnDraw method problem with Rhino Sun light ON
Hello, I have a strange problem. The plugin creates its own CustomMesh and overwrites the OnDraw method. Inside OnDraw the plugin draws 1 box. Works fine. But if I change the viewport mode to...
View ArticleVisual Studio C# - Input Data Tree "GH_Text" datatype
How can I declare an Input DataTree with “GH_Text” data type, tried “GH_String” but it didn’t work got invalid cast error message image1390×146 10.1 KB 8 posts - 2 participants Read full topic
View ArticleChanges to RhinoApp.Idle event between Rhino 5 and 6?
Hi all, I’ve been playing around with event handling in python, trying to follow the best practice of setting flags (using scriptcontext.sticky) and then doing as much as possible when Rhino is idle,...
View ArticleDetails with Rhinocommon plugin
Hi there I am having an issue with details and layouts as a plugin. I have a code attached which when I run through EditPythonScript does what is required and makes a layout with a detail and sets the...
View ArticleCapture geometries transformations within Events
Hello Discourse, I am currently trying to solve a problem in one of my Rhino Plugins. I am storing geometry in the User Dictionary of a closed curve. This geometry is automatically generated from the...
View ArticleDropDown MenuItem
Hi everyone, Is there any way to create MenuItem like DropDown as below images? Thanks in advance, -Oğuzhan 1 post - 1 participant Read full topic
View ArticleObjRef for save user data in C#
(topic withdrawn by author, will be automatically deleted in 24 hours unless flagged) 1 post - 1 participant Read full topic
View ArticleCompiling Plugins for both Rhino 6 and Rhino 5 in the same solution
Hi All, I have developed a Rhino 5 plugins, I am now upgrading it to Rhino 6. I saw the Rhi structure in the help section and it has a structure like the picture below. image844×319 4.89 KB What is...
View ArticleTransform.ChangeBasis or Orient3Pt
I want to locate a curve on two points, just like the “Orient3Pt” or “Orient” command in Rhino. I read the documentation and searched the forum. The answer I got is Transform.ChangeBasis Method, but...
View ArticleDetermine if Rhino document is in block edit mode
Hello, I am trying to figure out programmatically if the current Rhino Doc is in Block edit mode. Subscribing to the command event I can tell if the edit mode started or if OK was pressed afterwards....
View ArticleCreateBooleanIntersection
Hi, Is there a way to use CreateBooleanIntersection method with polygon that has holes: Rhino.Geometry.Curve.CreateBooleanIntersection(Curve a, Curve b); Or the only way is to use Clipper library? 1...
View ArticleSaving the data of Display Conduits C#
Hi all, I am still working on my custom clipping box(just like Revit has) which is attached with 6 clipping planes on each face using Rhino.Display.DisplayConduit class. The clipping box needs to be...
View ArticleInstalling our plugin for both Rhino 6 and Rhino 7
During the installation of our plug-in we will be registering the plug-in ourselves following the instructions from here: Registering Plugins on Windows Assuming, as mentioned in other forum topics,...
View ArticleMirror option
Hallo I have a question about Mirror option. When I use Rhino command to mirror ON_Brep object, the mirrored object is fine. But when I use ON_Xform::Mirror from SDK C++ mirrored object have opposite...
View ArticleSerialization for plugin objects and saving to rhino file
Hi @dale and others , I’m not super familiar with c# serialization but I understand in general that it allows all sort of data structures to be saved as binary data. We have a pretty complex plugin...
View Article