Need an algorithm to generate center line
Hey - for past couple of weeks I’ve been struggling to create and algorithm that generates center line (red curves in the attached image) of any given one or two closed curves (black curves in the...
View ArticleEto radiolist groupbox
Hi, All using ETO, it would be possible to create a structure like this: in the layout I have already inserted the three group boxes and the list of radio buttons (vertically) but it is the...
View ArticleDogbone script?
Hi, Does anyone have or know of a script that will make these in this way? I’ve probably modeled that 4000 times by now and I’m sick of doing it maybe for Rhino itself, it seems like what should/could...
View Articlers.AddLeader problem
Hi I couldn’t find out how to create a leader from script. Currently I’m using Rhino 7. got the same problem with rs.AddText(rs.AddText(“Hello Rhino!”, (0,0,0))) I’ve tried all the codes at this post....
View ArticlePolylines from Vectors
Hi guys, I’m having trouble creating Polylines from a field of vectors. I have a List of vectors, points and cells. They are all in the same order. My idea is to start a polyline from the startpoint...
View ArticleTest Curve Linear & Degree 1
Hi All, https://developer.rhino3d.com/api/rhinocommon/rhino.geometry.curve/islinear the method indicated in the link checks if a curve is linear, but to check if it is also a simple straight line with...
View ArticleSet new Dimension Style from GH
Hi everyone, I am trying to create a new Dimension Style from scratch and set it as the current one in Grasshopper. I tried to build the code but something is wrong since the new style is created but...
View ArticleInsert only visible layers as block
Assuming this can’t be done without Scripting, and I don’t have time while I’m working at the moment. Anyone have/able to make this .py script? File B - Use “Insert” and choose File A File A -...
View ArticleEdit button's linked script
Maybe this is an interesting one? How to write a script that opens a chosen script’s button for editing? 1 post - 1 participant Read full topic
View ArticleOutput of Fx not correct - Rhino bug or script bug?
One of the options in the attached Python script is to output a column showing ‘Other Attributes’, which my script gets from Attribute User Text. This works great, unless the Value is a function, in...
View ArticleCreafting a Brep.IsCurveInside method
Hi everyone, I’m trying to compute if a curve is inside a Sphere (well sometimes it could be a collection of Spheres instead of a single one) In the scenario I’m working on, it never happens that a...
View ArticlePython - loading and linking geometry from rhino to grasshopper
Hi All, I’m trying to write a component similar to the geometry pipeline in grasshopper. Basically, I want to load objects from certain layers to grasshopper and filter those that are inside the...
View ArticleDisable RadioButton
Hi, everyone items_to_disable = ["Mild steel", "4140"] for rb in self.radiobuttonlist.Children: if isinstance(rb, Eto.Forms.RadioButton): if rb.Text in items_to_disable: rb.Enabled = False Is it...
View ArticleIcon meaning?
I can’t find anything about what these icons mean in the Python Editor. Can someone explain them or point me to a reference? 3 posts - 2 participants Read full topic
View ArticlePython script that changes geometry of objects in document
Hello, I am trying in grasshopper to select all the meshes in the Rhino document and check if they are not closed, so that I close them using Rhino.Geometry.Mesh.FillHoles(), the script below runs...
View ArticlePython Help Setting Current View Within Loop / Inserting Block
Hello, I have a bit of python code I’m working on that inserts blocks into the current layout view but am trying to insert a block into each layout view within the list of input views. The psuedo code...
View ArticleRhino crashing during grasshopper run (Python node)
Hi, I’m facing an issue, that Rhino crashes, when I’m running a grasshopper file. The file mainly consists of a Python node, which contains some parallel processing. The process works iteration wise....
View ArticleExtractIsocurve through Greville points
Although not very impressive on its own, the output of spb_ExtractIsocurvesThruGrevillePts.py can be used by _Sweep1 to create the input surface. Before doing so, the shape curves can also be...
View ArticleToggling advanced options via script?
I’m looking for a way to toggle the Rhino.Options.Advanced.UseCompressionWhenSaving in the advanced tab of options. Not sure how… Any insight would be great. 1 post - 1 participant Read full topic
View ArticleLinearDimension.GetTextRectangle beeing weird on generated dims
It seems that GetTextRectangle behaves differently with “generated” dimensions than with the ones “selected” from the model. The third test (“spooked”) kind of “refresh” the object table (I guess)....
View Article