# \#c

**URL:** https://discourse.mcneel.com/tag/356-tag/356.md

[Latest](https://discourse.mcneel.com/latest.md) · [Categories](https://discourse.mcneel.com/categories.md) · [Tags](https://discourse.mcneel.com/tags.md)

---

## [How to generate patterns using KangarooSolver.dll (not Grasshopper)](https://discourse.mcneel.com/t/how-to-generate-patterns-using-kangaroosolver-dll-not-grasshopper/219192)

<div class="topic-metadata">

**Author:** [@Fernando\_Fonseca\_Aco](https://discourse.mcneel.com/u/Fernando_Fonseca_Aco)\
**Replies:** 4\
**Last updated:** [May 25, 2026, 11:45am UTC](https://discourse.mcneel.com/t/how-to-generate-patterns-using-kangaroosolver-dll-not-grasshopper/219192 "2026-05-25T11:45:10Z")

</div>

Hi, I’m developing a Rhino plugin in C# and using KangarooSolver.dll directly (not Grasshopper). I’m trying to generate hexagonal-like packing patterns (e.g. circle/sphere distributions) on meshes or surfaces. I’ve se…

---

## [Trying Boolean Union SDK C++](https://discourse.mcneel.com/t/trying-boolean-union-sdk-c/214866)

<div class="topic-metadata">

**Author:** [@Mauricio3](https://discourse.mcneel.com/u/Mauricio3)\
**Replies:** 1\
**Last updated:** [January 21, 2026, 10:22pm UTC](https://discourse.mcneel.com/t/trying-boolean-union-sdk-c/214866 "2026-01-21T22:22:32Z")

</div>

Hi everyone, I’m encountering an issue with RhinoBooleanUnion. I pass a valid list of Breps (checked for nulls), but I often get an Access Violation Exception (0xC0000005) inside tl.dll. The inputs are generated via Of…

---

## [C# creating automatic sliders](https://discourse.mcneel.com/t/c-creating-automatic-sliders/84502)

<div class="topic-metadata">

**Author:** [@tognatta.aditya](https://discourse.mcneel.com/u/tognatta.aditya)\
**Replies:** 20\
**Last updated:** [January 19, 2026, 9:47pm UTC](https://discourse.mcneel.com/t/c-creating-automatic-sliders/84502 "2026-01-19T21:47:38Z")

</div>

Hey ! I am trying to create multiple sliders based based upon an integer input. I have modified James -ramden code:. The problem is it works fine on the first attempt, but the number of sliders increases exponentially…

---

## [C++ Parse relative coordinates without using CRhinoGetPoint](https://discourse.mcneel.com/t/c-parse-relative-coordinates-without-using-crhinogetpoint/213962)

<div class="topic-metadata">

**Author:** [@John\_Dough](https://discourse.mcneel.com/u/John_Dough)\
**Replies:** 4\
**Last updated:** [December 30, 2025, 8:57am UTC](https://discourse.mcneel.com/t/c-parse-relative-coordinates-without-using-crhinogetpoint/213962 "2025-12-30T08:57:46Z")

</div>

I am creating a custom Move command which asks for a CRhinoGetObjet using the point\_object filter. Then I want to ask the user for a new point position, which has to be inputted as x,y,z coordinates. I don’t want to ac…

---

## [Curve extrusion along curve differences between gui and api](https://discourse.mcneel.com/t/curve-extrusion-along-curve-differences-between-gui-and-api/209596)

<div class="topic-metadata">

**Author:** [@margari](https://discourse.mcneel.com/u/margari)\
**Replies:** 4\
**Last updated:** [October 1, 2025, 7:44am UTC](https://discourse.mcneel.com/t/curve-extrusion-along-curve-differences-between-gui-and-api/209596 "2025-10-01T07:44:51Z")

</div>

Dear all, I have developed a c++ Rhino plug-in and now I need to write a command to enlarge planar curves of a specific offset value, on a 2D plane. The expected result is a 2D surface. I’m able to reach exactly the t…

---

## [Free surface meshing](https://discourse.mcneel.com/t/free-surface-meshing/197517)

<div class="topic-metadata">

**Author:** [@zhang2](https://discourse.mcneel.com/u/zhang2)\
**Replies:** 1\
**Last updated:** [January 9, 2025, 2:38pm UTC](https://discourse.mcneel.com/t/free-surface-meshing/197517 "2025-01-09T14:38:08Z")

</div>

How to use C# to make a complete free-form surface mesh division based on surface expansion and guide line method, generating gh plug-in

---

## [Showing hidden objects not working correctly](https://discourse.mcneel.com/t/showing-hidden-objects-not-working-correctly/108247)

<div class="topic-metadata">

**Author:** [@tobias.stoltmann](https://discourse.mcneel.com/u/tobias.stoltmann)\
**Replies:** 3\
**Last updated:** [November 7, 2024, 1:10pm UTC](https://discourse.mcneel.com/t/showing-hidden-objects-not-working-correctly/108247 "2024-11-07T13:10:10Z")

</div>

Hey there, I want to hide certain objects in my file… foreach (var obj in RhinoDoc.ActiveDoc.Objects) { if (show\_case == true) { RhinoDoc.ActiveDoc.Objects.Hide(obj, true); } else { …

---

## [FileIO.File3d x RhinoDoc - opennurbs issue](https://discourse.mcneel.com/t/fileio-file3d-x-rhinodoc-opennurbs-issue/192686)

<div class="topic-metadata">

**Author:** [@janotaondrej91](https://discourse.mcneel.com/u/janotaondrej91)\
**Replies:** 4\
**Last updated:** [October 11, 2024, 5:40am UTC](https://discourse.mcneel.com/t/fileio-file3d-x-rhinodoc-opennurbs-issue/192686 "2024-10-11T05:40:07Z")

</div>

Hello, I would like to ask few “maybe simple” questins, which I am not sure of the answers. Recently, I deal with task of generating .3dm files from inside of the Rhino/Grasshopper. I was able to do so (and I am absolu…

---

## [Replacement for LookupObject?](https://discourse.mcneel.com/t/replacement-for-lookupobject/192715)

<div class="topic-metadata">

**Author:** [@Terry\_Chappell](https://discourse.mcneel.com/u/Terry_Chappell)\
**Replies:** 2\
**Last updated:** [October 10, 2024, 12:43am UTC](https://discourse.mcneel.com/t/replacement-for-lookupobject/192715 "2024-10-10T00:43:00Z")

</div>

@dale, Currently I am deleting all objects from a layer using the following C++ code in my DLL: // Get child layer. const CRhinoLayer& Layer = layer\_table\[children\[i\]\]; // Get all objects on the layer. ON\_SimpleArray\<C…

---

## [Get distance between Curves Squared](https://discourse.mcneel.com/t/get-distance-between-curves-squared/191950)

<div class="topic-metadata">

**Author:** [@charles.joseph](https://discourse.mcneel.com/u/charles.joseph)\
**Replies:** 4\
**Last updated:** [September 30, 2024, 9:22am UTC](https://discourse.mcneel.com/t/get-distance-between-curves-squared/191950 "2024-09-30T09:22:10Z")

</div>

Hi, I have a recursive bit of c# code to turn a Curve into a polyline with a set distance tolerance: void SubdivideRecursive(Curve crv, double dMinT, double dMaxT, double dTol) { LineCurve line = new LineCurve(crv.Po…

---

## [Mesh shading wrong](https://discourse.mcneel.com/t/mesh-shading-wrong/183097)

<div class="topic-metadata">

**Author:** [@Terry\_Chappell](https://discourse.mcneel.com/u/Terry_Chappell)\
**Replies:** 4\
**Last updated:** [May 31, 2024, 2:35pm UTC](https://discourse.mcneel.com/t/mesh-shading-wrong/183097 "2024-05-31T14:35:52Z")

</div>

I have a mesh with 26 very non-planar faces arranged into a cone shape. I have extracted 1 mesh face in order to more clearly show its shape: I then used the vertex coordinates of this face to create a new mesh with …

---

## [Eto.Forms Equivalent for the C++ SDK?](https://discourse.mcneel.com/t/eto-forms-equivalent-for-the-c-sdk/125584)

<div class="topic-metadata">

**Author:** [@eebs99](https://discourse.mcneel.com/u/eebs99)\
**Replies:** 7\
**Last updated:** [March 9, 2024, 1:13pm UTC](https://discourse.mcneel.com/t/eto-forms-equivalent-for-the-c-sdk/125584 "2024-03-09T13:13:51Z")

</div>

Hello, I’m intending to convert one of my C# plugins to C++ and am looking for a C++ equivalent to Eto.Forms - or at least, be able to produce graphical menus such as the one that appears in the Loft command. Is there a…

---

## [Component group parent](https://discourse.mcneel.com/t/component-group-parent/173335)

<div class="topic-metadata">

**Author:** [@anon39580149](https://discourse.mcneel.com/u/anon39580149)\
**Replies:** 6\
**Last updated:** [January 15, 2024, 9:52am UTC](https://discourse.mcneel.com/t/component-group-parent/173335 "2024-01-15T09:52:30Z")

</div>

Hello How to get the group parent name (if available) or guid of the component?

---

## [Tree Branch component: SLOW](https://discourse.mcneel.com/t/tree-branch-component-slow/170316)

<div class="topic-metadata">

**Author:** [@Daniel\_Alexander\_Smi](https://discourse.mcneel.com/u/Daniel_Alexander_Smi)\
**Replies:** 4\
**Last updated:** [December 1, 2023, 3:36pm UTC](https://discourse.mcneel.com/t/tree-branch-component-slow/170316 "2023-12-01T15:36:37Z")

</div>

The Tree Branch component is cripplingly slow–4+ seconds in the below function. I’m sure it would be much faster in C#, but I’m struggling with the documentation for manipulating tree structures in that code. Anyone know…

---

## [Why cannot I use opennurbs in C++ DLL with Visual studio 2019](https://discourse.mcneel.com/t/why-cannot-i-use-opennurbs-in-c-dll-with-visual-studio-2019/168660)

<div class="topic-metadata">

**Author:** [@鄭宗偉](https://discourse.mcneel.com/u/%E9%84%AD%E5%AE%97%E5%81%89)\
**Replies:** 7\
**Last updated:** [November 17, 2023, 7:24pm UTC](https://discourse.mcneel.com/t/why-cannot-i-use-opennurbs-in-c-dll-with-visual-studio-2019/168660 "2023-11-17T19:24:39Z")

</div>

I wanna use OpenNurbs in C++ and create a DLL. There is no “stdafx.h” in my project, but a header named “pch.h” where, therefore, I added the following lines with the instructions. #define OPENNURBS\_PUBLIC\_INSTALL\_DIR “…

---

## [Nothing to Undo(c#)](https://discourse.mcneel.com/t/nothing-to-undo-c/167437)

<div class="topic-metadata">

**Author:** [@장유경](https://discourse.mcneel.com/u/%EC%9E%A5%EC%9C%A0%EA%B2%BD)\
**Replies:** 4\
**Last updated:** [October 18, 2023, 9:13am UTC](https://discourse.mcneel.com/t/nothing-to-undo-c/167437 "2023-10-18T09:13:58Z")

</div>

I want to make possible using “Undo” while running this plugin. However, whenever I press Ctrl+Z or write “Undo”. Rhino always say “Nothing to Undo.” Is anybody know the reasons or solutions? I need your help. I’m usin…

---

## [Rhino Plugin Making](https://discourse.mcneel.com/t/rhino-plugin-making/167174)

<div class="topic-metadata">

**Author:** [@장유경](https://discourse.mcneel.com/u/%EC%9E%A5%EC%9C%A0%EA%B2%BD)\
**Replies:** 2\
**Last updated:** [October 13, 2023, 6:30pm UTC](https://discourse.mcneel.com/t/rhino-plugin-making/167174 "2023-10-13T18:30:22Z")

</div>

unsigned int serial\_number = context.m\_doc.RuntimeSerialNumber(); const wchar\_t\* myScript = L"\_Box 0,0,0 10,10,10"; CRhinoScriptContext s = CRhinoScriptContext(); s.SetScript(L"\_-Line 0,0,0 10,10,10"); RhinoApp().R…

---

## [When is the perfect time to learn Scripting within Grasshopper?](https://discourse.mcneel.com/t/when-is-the-perfect-time-to-learn-scripting-within-grasshopper/165961)

<div class="topic-metadata">

**Author:** [@prajwalbkumar](https://discourse.mcneel.com/u/prajwalbkumar)\
**Replies:** 15\
**Last updated:** [September 30, 2023, 5:26pm UTC](https://discourse.mcneel.com/t/when-is-the-perfect-time-to-learn-scripting-within-grasshopper/165961 "2023-09-30T17:26:27Z")

</div>

Calling all the OG Developers of Scripting in Grasshopper for their 2 cents. When did you feel the need to learn Scripting (for any purpose) in Grasshopper? I am actually being FOMOed into all the crazy stuff that has b…

---

## [Vb.net To C# (inset mesh)](https://discourse.mcneel.com/t/vb-net-to-c-inset-mesh/164953)

<div class="topic-metadata">

**Author:** [@Rh-3d-p](https://discourse.mcneel.com/u/Rh-3d-p)\
**Replies:** 2\
**Last updated:** [September 3, 2023, 10:34am UTC](https://discourse.mcneel.com/t/vb-net-to-c-inset-mesh/164953 "2023-09-03T10:34:07Z")

</div>

Hello everyone; i Convert this Vb Script for Inset Mesh(M+ plug-in) To c# all is currect but the end of Mesh.face is missing (not inset) in c# (script) Can anyone help me?? inset mesh-Vb.net To C#.gh (23.9 KB)

---

## [C# create custom parameter from base class](https://discourse.mcneel.com/t/c-create-custom-parameter-from-base-class/110576)

<div class="topic-metadata">

**Author:** [@marcio.sartorelli.so](https://discourse.mcneel.com/u/marcio.sartorelli.so)\
**Replies:** 7\
**Last updated:** [September 1, 2023, 9:36pm UTC](https://discourse.mcneel.com/t/c-create-custom-parameter-from-base-class/110576 "2023-09-01T21:36:14Z")

</div>

Is there a simple way to create a custom parameter class inherited from GH\_Param\<BaseClass\>, where BaseClass is an abstract class, and construct the parameter with the inherited classes? I have the abstract class Elemen…

---

## [How do I get a Rhino image buffer data in C++?](https://discourse.mcneel.com/t/how-do-i-get-a-rhino-image-buffer-data-in-c/160368)

<div class="topic-metadata">

**Author:** [@fatecasino](https://discourse.mcneel.com/u/fatecasino)\
**Replies:** 12\
**Last updated:** [July 11, 2023, 11:26am UTC](https://discourse.mcneel.com/t/how-do-i-get-a-rhino-image-buffer-data-in-c/160368 "2023-07-11T11:26:12Z")

</div>

Hi, I am building an output buffer via CUDA and I am trying to get a Rhino image buffer data to “see” this data. As I understand the most straight-away but perhaps slow method is to copy pixel by pixel from the one buff…

---

## [Accessing an item of a tuple of a list of a method of a class](https://discourse.mcneel.com/t/accessing-an-item-of-a-tuple-of-a-list-of-a-method-of-a-class/158101)

<div class="topic-metadata">

**Author:** [@YellowLion](https://discourse.mcneel.com/u/YellowLion)\
**Replies:** 9\
**Last updated:** [April 21, 2023, 1:55pm UTC](https://discourse.mcneel.com/t/accessing-an-item-of-a-tuple-of-a-list-of-a-method-of-a-class/158101 "2023-04-21T13:55:00Z")

</div>

I made a list of tuples and I can’t understand why I can’t access it in other methods. Bing Chat says something about Static and InnerClass and OuterClass and Program. It must represent the basic Closest Point componen…

---

## [Reading instanced geometry](https://discourse.mcneel.com/t/reading-instanced-geometry/78789)

<div class="topic-metadata">

**Author:** [@nathaniel](https://discourse.mcneel.com/u/nathaniel)\
**Replies:** 6\
**Last updated:** [April 21, 2023, 7:53am UTC](https://discourse.mcneel.com/t/reading-instanced-geometry/78789 "2023-04-21T07:53:58Z")

</div>

Hello, I have just started using OpenNURBS to read 3dm models into my (C++) application. Naturally, getting started with a new library takes some time, but I am currently trying to figure out how to properly read the in…

---

## [Grasshopper c# editing GH\_Path in loop](https://discourse.mcneel.com/t/grasshopper-c-editing-gh-path-in-loop/158207)

<div class="topic-metadata">

**Author:** [@kris.dpd](https://discourse.mcneel.com/u/kris.dpd)\
**Replies:** 6\
**Last updated:** [April 13, 2023, 1:28pm UTC](https://discourse.mcneel.com/t/grasshopper-c-editing-gh-path-in-loop/158207 "2023-04-13T13:28:02Z")

</div>

Hi all, What is the best method to edit the index of GH\_Path within a loop? I’m new to rhino commons, so any help would be appreciated. I have currently written the code like this, but I am sure there must be a better …

---

## [Grasshopper c# DivideCurveByLength Method issues](https://discourse.mcneel.com/t/grasshopper-c-dividecurvebylength-method-issues/158198)

<div class="topic-metadata">

**Author:** [@kris.dpd](https://discourse.mcneel.com/u/kris.dpd)\
**Replies:** 3\
**Last updated:** [April 13, 2023, 3:27am UTC](https://discourse.mcneel.com/t/grasshopper-c-dividecurvebylength-method-issues/158198 "2023-04-13T03:27:01Z")

</div>

Hi all, I am new to c# scripting in grasshopper and have issues with the DivideCurveByLength method. I keep getting the following error : " 1. Error (CS0103): The name ‘tempPoints’ does not exist in the current context…

---

## [Grasshopper c# get item from list](https://discourse.mcneel.com/t/grasshopper-c-get-item-from-list/156087)

<div class="topic-metadata">

**Author:** [@kris.dpd](https://discourse.mcneel.com/u/kris.dpd)\
**Replies:** 6\
**Last updated:** [March 10, 2023, 1:57am UTC](https://discourse.mcneel.com/t/grasshopper-c-get-item-from-list/156087 "2023-03-10T01:57:37Z")

</div>

Hi all, I am very new to c# grasshopper scripting and just getting started. I wanted to know - given a tree input, how would you retrieve the first item in each branch? private void RunScript(DataTree\<object\> x, ref ob…

---

## [How to modify the Userdata Using C++](https://discourse.mcneel.com/t/how-to-modify-the-userdata-using-c/153430)

<div class="topic-metadata">

**Author:** [@Qingxiang](https://discourse.mcneel.com/u/Qingxiang)\
**Replies:** 4\
**Last updated:** [January 18, 2023, 3:08am UTC](https://discourse.mcneel.com/t/how-to-modify-the-userdata-using-c/153430 "2023-01-18T03:08:30Z")

</div>

Hi guys, I have encounter a problem of modification of the usedata. The sample case of \[cmdSampleAttributeUserData.cpp\]is really helpful for me with link (rhino-developer-samples/cmdSampleAttributeUserData.cpp at 7 · mc…

---

## [The data structure of ON\_SimpleArray](https://discourse.mcneel.com/t/the-data-structure-of-on-simplearray/153246)

<div class="topic-metadata">

**Author:** [@Qingxiang](https://discourse.mcneel.com/u/Qingxiang)\
**Replies:** 4\
**Last updated:** [January 13, 2023, 4:23pm UTC](https://discourse.mcneel.com/t/the-data-structure-of-on-simplearray/153246 "2023-01-13T16:23:22Z")

</div>

Dear Sir/Madam: I have just test a C++ sample SampleSplitCurve and it runs well. But I am very confused about the data structure of ON\_SimpleArray crv\_t. After adding a line in the code, the output result is the same. F…

---

## [How to get a Matrix from C++ to C# using the Moose Project](https://discourse.mcneel.com/t/how-to-get-a-matrix-from-c-to-c-using-the-moose-project/151005)

<div class="topic-metadata">

**Author:** [@Carlos\_Carrasco](https://discourse.mcneel.com/u/Carlos_Carrasco)\
**Replies:** 0\
**Last updated:** [November 22, 2022, 10:33am UTC](https://discourse.mcneel.com/t/how-to-get-a-matrix-from-c-to-c-using-the-moose-project/151005 "2022-11-22T10:33:21Z")

</div>

New user of Grasshoper here. Brief description of my problem: I’m using GitHub - dalefugier/Moose: Demonstrates how to share a common library with both a C++ and a C# plug-in. and I can’t convert my ON\_Matrix from C++ t…

---

## [How can I get a list as output in C#?](https://discourse.mcneel.com/t/how-can-i-get-a-list-as-output-in-c/150939)

<div class="topic-metadata">

**Author:** [@Carlos\_Carrasco](https://discourse.mcneel.com/u/Carlos_Carrasco)\
**Replies:** 9\
**Last updated:** [November 21, 2022, 2:17pm UTC](https://discourse.mcneel.com/t/how-can-i-get-a-list-as-output-in-c/150939 "2022-11-21T14:17:16Z")

</div>

New user of Grasshopper 3D here, and my problem is that I created a component that generates some Points, this component run 26 times (for example) because I gave him 26 inputs. The thing is I want a list of this 26 oup…

[Next page](https://discourse.mcneel.com/tag/356-tag/356.md?match_all_tags=true&page=1&tags%5B%5D=c)
