Convert Rhinosyntax GUIDs to Rhino Geometry Curve objects
(topic deleted by author) 2 posts - 2 participants Read full topic
View ArticleEdit Code Site Developer
https://developer.rhino3d.com/api/rhinocommon/examples/addcircle import Rhino import scriptcontext import System.Guid def AddCircle(): center = Rhino.Geometry.Point3d(0, 0, 0) radius = 10.0 c =...
View ArticleStill prompted to save after doc modified flag set to false
My document is still “edited” after I set the doc.Modified flag to false. Version 8 (8.5.24072.13002, 2024-03-12) Rhino Mac import Rhino doc = Rhino.RhinoDoc.ActiveDoc doc.Modified = False 2 posts - 2...
View ArticleRhinoscriptsyntax on Visual Studio Code
Hi all, I would like to ask if rhinoscriptsyntax were possible imported it on visual studio code. I am using Rhino 8 with the RhinoCode extension and the script runs well. However, on VS Code I get...
View ArticleScript C# boundary surface
Hello, I’m trying to create a surface from a given closed curve in the GH C# component. I used Brep.CreatePlanerBreps method but it gives me a rectangular untrimmed surface rather than the surface...
View ArticleUser text fields: python string manipulation
Using text fields, I would like to extract part of string (page name). I suppose the re library is not available as in this example, is it? Playing around with Text fields, this popped up: Does it...
View Article; end line Python
Hi all, import Rhino as rh; def Def1(): go = rh.Input.Custom.GetObject(); go.SetCommandPrompt("Select points"); go.GeometryFilter = rh.DocObjects.ObjectType.Point; go.GetMultiple(1, 0); Def1(); I had...
View ArticleDiagram on how to convert objects
Hi all, a scheme that dictates the guidelines on how to convert a certain piece of data into another, in the various different cases of input type: using Get() or FindByObjectType() etc exist? 2 posts...
View ArticleThere is a way to export a file for every layer? (easy)
There is a way to export a file for every layer with the object of that layer? 3 posts - 2 participants Read full topic
View ArticleLoading Tkinter in Python for Rhino 8
Is tkinter not supported in Rhino’s script editor? I’ve tried installing with # r: tkinter as well as with pip but neither are working. I have been able to install matplotlib just fine. 5 posts - 3...
View ArticleChange layer of object?
Hi All, I’ve hit a wall on what should be a simple problem. I’m creating a polyline from a list of points, and I want to assign it to a layer (specified by a string). the function executes without...
View ArticleMoving from old Grasshopper C# to new Grasshopper C#
Hi All, I am slowly migrating some of my old C# scripts from the old Grasshopper in R7 to the new Grasshopper in R8. Most things go pretty well. On this one, I have an error that I don’t understand....
View ArticleRhino7 Copy the custom obj with command _CopyToClipboard
hi guys. i have create custom obj from the sample https://discourse.mcneel.com/uploads/short-url/2ACJgXlVO1cPAlcpMmbLGSCB2B1.zip ,when i copy the custom obj use that’s no problem. and it enter code...
View ArticleDisplay Pipeline draw objects
Hi, I’m working on a simple python script that dynamically creates and animates geometry. I got it working in 2D easily, but having issues rendering 3D geometry in the display pipeline. I can render...
View ArticleMatplotlib in Rhino8
Hello, I would like to ask why I receive this warnings from the script editor in rhino 8 when I tried to plot a figure with matplotlib: UserWarning: FigureCanvasAgg is non-interactive, and thus cannot...
View ArticleRhino 8 HiddenLineDrawing - Issue with OccludingSectionOption
Hello Everybody, maybe @rajaa ? I’m trying to get a custom version of Make2D running via HiddenLineDrawing and I managed to get out visible lines, even cut by a plane. Already pretty nice! Now I want...
View ArticleImport function in Rhino 8 from external python file
Hello, I am working on Rhino 8 and using a Visual Studio Code as editor. I could ask if there is a way to import a file python (on VS Code) where I define a function and then Run the code on Rhino...
View ArticleLanguageNotReadyException
Hi everyone. I make a small jewelry kit for Rhino. It was great in Rhino 6 and 7. I just tried releasing for Rhino 8. It works fine on my PC, but the first person to buy it got this error when he...
View ArticlePython - Passing Arguments To Class Help?
Hello, I created a CustomButton class with Eto Drawables and am trying to pass 2 arguments to the constructor, a boolean and a color value. When attempting this I get a TypeError saying that I’m...
View ArticleIs there a bug in Subd.CreateFromSweep()?
I am getting conflicting errors that makes the SubD.CreateFromSweep static method not work for me. this.prongSubD = RG.SubD.CreateFromSweep(centerlineCurve, profiles, true, false, false); This gives...
View Article