Blend surface with open edges
Hello, I have a problem blending two surfaces using Python scripting. So far I have been using the Brep.CreateBlendSurface command which works well when blending from closed edges on both surfaces....
View ArticleIf statement based on item index
I have an arbitrary list of data that will vary in length. I have two basic expressions to apply to the data in these lists. Items with index 0 and -1 (start, end) need to be operated on by...
View ArticleConfusion about rs.MirrorObject()
Hello, I’m really new to Rhino Python scripting, but not new to Python. I am trying to create a box and then mirror that box. If I run my script with the front view selected, everything works as...
View ArticleTrimmed surfaces become untrimmed surfaces through c# or python script
Hello, I would like to filter out surfaces whose air is less than a given value, for example y =2 m2 (like the green surface in the figure). I tried the scripts in C# and Python, it works but I get...
View ArticleObj_id not defined
Hi all. I do want to modify a python script that I am using to rotate parts into Rhino and I do want to also add an alignment operation into the same script. The last two lines of code...
View ArticleConverting JSON to CSV
Hi, i’m trying to convert JSON to CSV. So far i have the following code, which i mostly found here. #! python3 # r: numpy, pandas, json import rhinoscriptsyntax as rs import pandas as pd import json...
View ArticleSelect adjacent objects from bounding box
Hello, I would like to be able to select all the objects that are next to a selected object by using a box or the bounding box. I have tried rs.WindowPick(), but nothing happens. Any help would be...
View ArticleFilletSrf command in Python
Hello, I am trying to fillet surfaces in Python script in Rhino 8. rs.Command("-FilletSrf Radius=0.3 Extend=no Trim=no BlendType=Deformable SelId " + str(surface) + " SelId " + str(cone)) The result...
View Article"live" Z coordinate of block as text
Hello! I am trying to make a “live” elevation block that reflects the Z coordinate of the block insert point. I tried with the text field inside the block but the text is static because it references...
View ArticleIronPython 2 vs Python3
Here is a script in IronPyron 2 that work fine and that i used to change the color of a box. Here is the same script in New python 3 (Rhino 8) Any clues on this error? 2 posts - 2 participants Read...
View ArticleMissingMemberException: 'Rhino.Geometry' object has no attribute 'Rhino'
hey so i try to run this code but get always an error, the code is below and i tried changing line 24 to something else like : radians = angle * math.pi / 180 or import math then radians =...
View ArticleGet rid of popup messages with python, commandline or rs?
Hi, I’m currently working on a script to help me create FEA Meshes with Rhino and some plugins. But i keep getting those annoying messages: Is there a way to click automated on no? I allready tried...
View ArticleAddsweep1 options
hello, I need Sweep1 with both the option “trim” and “rotate” valide at the same time. Is it possible? Thanks, Roy 2 posts - 2 participants Read full topic
View ArticleAccessing Excel from 2.7 Python
I’m trying to get an old script that uses Excel working on my apprentices’ machine, with a fresh Office 365 install, and (to simplify) on the code below it fails to add a reference to “Office” or...
View ArticlePython + rhinocommon: Creating a double-precision mesh
I’m trying to create a double-precision mesh in R7SR36 using Rhinocommon in IronPython. Below is the code: import Rhino msh = Rhino.Geometry.Mesh() msh.Vertices.UseDoublePrecisionVertices = True pt =...
View ArticleRhino.Input.Custom.GetNumber() with Optionlist
I need a list of predefined numbers to choose from or to input a custom number. I assume I have to use Rhino.Input.Custom.GetNumber() But numbers won’t work with AddOption So I don’t know how to do...
View ArticlePython 2 -> Python 3 - Int is not subscriptable?
Hello, I’m updating some of my older scripts and having an issue in Python 3 related to the following lines, I have a single input value in an input “T” for “Thickness”, the input Type is an Int with...
View ArticleRandom select hatches
Is there a method to randomly choose hatches of a particular color (in this case trees drawn in top view) and then randomize the selection of them, so that I can alter some of the colours to make...
View ArticleNo module named 'optree' in default python 3 Script Editor
Hi, I have tried to use Rhino 8 new python editor today. Very excited that we can use python 3 and more packages in rhino. My problem is: first I want to try scipy by using r: scipy but it failed ,...
View ArticleGrasshoper crash when creating script
Why does grasshopper crash when I try to create a script in python 3? 4 posts - 2 participants Read full topic
View Article