How to align the direction of curve to extrude taper
Hi all, I have a question. I want to extrude tapper for all curve in same direction , but some curve need to do flip to extrude tapper. Is it possible let all curve make the same direction. Thanks...
View ArticleRhino script executes correctly but not as background process
I’ve created a script that opens a file, selects a region, deletes everything else, and saves it, and it works fine when I execute it using the rhino command line or pasting it in command prompt...
View ArticleQuestion: how to cancell the default save message dialog
Hi, I wrote a script about generating the Sphere model and saved_as Rhino5. When I closed Rhino , the default save message dialog " Save changes to untitled?" came up . How to ban this dialog in...
View ArticleExport geometries from GH to CAD
Hi everyone, I am trying to create a Python component capable of exporting geometries directly from GH to CAD without baking them into Rhino canvas. I found this useful script on the forum made by...
View ArticleI'm Curious
Hi All, I was just wondering this: but those two numerical values (highlighted in bold) of the output in the print, what do they refer to? Thank you. 6 posts - 4 participants Read full topic
View ArticleRhinoscript/Python script that select objects based on object.ID property
Hello everyone, I am trying to make a script that will select multiple objects based on object ID. It is similar to the “SelId command” which already is in Rhino, but I want it to be able to input a...
View ArticleHops flask server call via cloud
Hello McNeel Forums! I am looking to call a cloud-hosted Cpython function from a hops component. I emulated the local flask server implementation demonstrated in the Hops Tutorial which runs smoothly....
View ArticleInteractive Standalone Script Editor?
Crazy question? Is there a way to script outside of Rhino (say, on an iPad, online, etc) that will show you the results of your work as you go? 2 posts - 2 participants Read full topic
View ArticleBasic Macro To Switch Layer then Add a Detail
Hello, I’m just starting to dive into making custom buttons/macros in Rhino and was wondering the best way to change layers using a script/macro. I keep all my details on one layer, so I’d love to...
View ArticleRs. ExtendCurve keep giving "iteration over non-sequence of type int
I am trying to find the intersection of a line extension and a brep. It keeps to give the following error message. However, after I used print(type(line)) to check, “line” is not int. The line...
View ArticleInput Dynamically
from Rhino import * from Rhino.Geometry import * from Rhino.Commands import * from Rhino.Input.Custom import * from scriptcontext import doc from System.Drawing import * import rhinoscriptsyntax as rs...
View ArticleLooking for a script (or plugin) to select 'Closed polylines'
Hello! I’m looking for a script or plugin that allows me to select ‘closed polylines’. In case of many of closed polylines and circles overlapped each other like below image, so I’d like to select all...
View ArticleGrasshopperDocument in VS
hi everyOne using System.Collections; using System.Collections.Generic; using Rhino; using Rhino.Geometry; using Grasshopper; using Grasshopper.Kernel; using Grasshopper.Kernel.Data; using...
View ArticleSubdivide meshFace or subDface
Hi, I am looking to replicate the functionality of the Subdivide Rhino command through Python scripting. The image below shows the process. I sub-object select and get the meshface and/or subDface,...
View ArticleGet an exported list of ID's of selected objects
Hello, As a bit of a continuation of my last post, I’m trying to make a script work that based on a selection of objects gives me a list (either CSV or txt) that I can later use to read with another...
View ArticleCreate dynamic output C# component
Hey everyone, I’m a little new in C# scripting so sorry if this is a simple question. I’m trying to create a C# component which gets a string, for example and create it’s output names, based on that...
View ArticleExport from script
I’m using rs.Command(“_Export”) in a script. Is there some way to call Export and have the script specify what file format I want so I don’t have to pick it from the list, and still let me name the...
View Articlers.GetBox() returns "unordered" vertices
Hi all! The rs.GetBox() from RhinoScriptSyntax returns an array of eight 3D points that are the box vertices. I thought that the first 3D point in the array would be the first point selected by the...
View ArticleFill the closed curve with fixed shapes
i want to create a python script or locust file to automatically stuff the least rectangle inside cuver close like an image. Hope everybody help please. because the amount I need to do is quite large...
View ArticleRuntime error (ArgumentTypeException): expected Brep, got Guid
import Rhino.Geometry as rg # Define material resistivity (in ohm-meters) resistivity = 1.68e-8 # Define input geometry parameter brep = x # Calculate cross-sectional area of Brep area =...
View Article