Quantcast
Channel: Rhino Developer - McNeel Forum
Browsing all 8527 articles
Browse latest View live

Delete a CRhinoBrepObject from a doc

@XNurbs wrote: Dale, We add a CRhinoBrepObject to a doc with the following code. Could you show us how to remove the CRhinoBrepObject from the doc? CRhinoBrepObject* pBrepObject = new...

View Article


How CurveOrientation Enumeration works

@flokart wrote: Hi all, i try to reverse curves but first i need to identify which curve is clock or counterclock direction, but i dont know how CurveOrientation Enumeration works. Thanks in advanced...

View Article


C# command in C++ project

@tj1 wrote: I’m looking to add a rhinocommon eto panel to my C++ project (based on this advice: C++ eto panel). I’d like to only give the user one thing to install. As I understand it the GUID must...

View Article

OnHelp Bug in v6?

@sergiofrc wrote: Hi I’m upgrading code from V5 to V6 and I find out that the OnHelp Overrides at the command class no longer works as before. In v5 a user while in my plugin command press F1 it...

View Article

Image may be NSFW.
Clik here to view.

Assign object to layer by Layer Name

@Stroopwafelandcoffee wrote: I’m trying to assign an object to a Layer by using the layer name, but I’m so far not able to get it done, the best example I can find: developer.rhino3d.com Move Objects...

View Article


Image may be NSFW.
Clik here to view.

Get selected Geometry with ObjectTable

@flokart wrote: Hi all, i try to get selected objects from the document with the ObjectTable. import scriptcontext as sc import rhinoscriptsyntax as rs import Rhino as rh sc.doc =...

View Article

GetObject to accept strings and transparent commands

@Alberto wrote: HI, We are trying to create a command that has an input as a string but we would also like to have the ability of running transparent commands. The issue seem to be that...

View Article

Image may be NSFW.
Clik here to view.

Problem converting source code created in Rhinoscript compiler into C# project

@AleksandarSM wrote: Hello, I have a lot of my own python scripts compiled into rhp file and I want to migrate these scripts to C# In Rhinoscript compiler I have created C# project but I can not make...

View Article


How to create ObjectBase from geometry

@flokart wrote: Hi all i try to get GeometryBase from Geometry to use GeometryEquals to delete identical geometry because if one object gets selected more than ones creates different Object.Ids…so...

View Article


How do I get the owner and org entered in the plugin license dialog?

@Max_Eskin wrote: I’m trying to add licensing to my plugin using the GetLicense method. This shows a dialog box with fields for owner, organization, and product key. However, the...

View Article

Get the tolerance related to Curve/Surface Evaluator

@XNurbs wrote: We use the following code to get tolerance. double dDocTol = m_pDoc->AbsoluteTolerance(); However, Curve/Surface Evaluator returns values related to the unit setting. How to get the...

View Article

Highlight an ON_Brep geometry

@XNurbs wrote: Dale, We display an ON_Brep geometry with the following code. Could you show us how to highlight the ON_Brep geometry when displaying it? ON_Brep * prnBrep…...

View Article

Image may be NSFW.
Clik here to view.

Flatten a tree

@flokart wrote: Hi all, i tried to flatten a tree but i donts know how to tell the path…i thought {0} but that seems wrong import Grasshopper as Gr print R R.Flatten({0}) Help is welcome Posts: 1...

View Article


Image may be NSFW.
Clik here to view.

Want to select all holes in a model via a script

@DanBayn wrote: I’ve been asked to create a script that can find all of the holes in a model. I can do that fairly easily, however there are two issues for which I could not find a solution: When...

View Article

Image may be NSFW.
Clik here to view.

Sequence of UNDO/REDO events

@software_comas wrote: Hi guys I would like to know whats the sequence of the events in case of a UNDO/REDO operation, when a custom undo event was previously registered: Rhino performs its UNDO/REDO...

View Article


Image may be NSFW.
Clik here to view.

Key for a Rhino.RhinoDoc.Objects

@flokart wrote: Hi all, a rhinoObjects can get UserDictionary is it possible to set a key for a rhinoObjects? At the moment i create for each branch with a object list a key to construct a dictionary...

View Article

How to find object by user string

@flokart wrote: Hi all, how can the object can be found by key or value after SetUserString import rhinoscriptsyntax as rs import Rhino as rh import scriptcontext as sc x.SetUserString("Key","Val")...

View Article


Image may be NSFW.
Clik here to view.

How to keep UserDictionary on DuplicateSegments

@flokart wrote: Hi all, is there a way to manipulate objects and keep UserDictionary on SubObjects? I try to get DuplicateSegments while keeping UserDictionary on all Segments. sc.doc =...

View Article

Is Mesh still single precision?

@mikity_kogekoge wrote: Hi, I think I heard Mesh is rewritten from scratch and now vertices are double precision. But seems like Rhino.Geometry.Mesh is still single precision (but I do see NGons…) Is...

View Article

Convert string input to variabel

@flokart wrote: Hi all, is there a option to use Grasshopper Python Node Input to create a variable. I want to create a dictionary every time a node is created. Thanks for Tips Posts: 2 Participants:...

View Article
Browsing all 8527 articles
Browse latest View live