Ghpythonlib issu
Hello, Community I’m getting an error while trying to retrieve rectangle data using a simple script (ghpythonlib). Please, see the pic attached. Is it a bug or am I doing something wrong? When it...
View ArticleNo module named 'Rhino.RhinoDoc' in python 3
When I try to do: import Rhino.RhinoDoc it works in the python 2 editor, but in the python 3 editor, I got the following error ModuleNotFoundError: No module named 'Rhino.RhinoDoc' 2 posts - 2...
View ArticleGet optional output in Python 3
In python 2, if I want to get the optional output, I could use the strongbox in the clr module like: Idcs = clr.StrongBox[Array[int]]() dist = rg.Intersect.Intersection.MeshRay(mesh, ray, Idcs) But in...
View ArticleRhino 8 - Script Editor - Help on functions?
Greetings, Any chance of implementing the Help available in Rhino Python Editor on the new Script Editor? It is very useful, especially when it pops immediately when the function is defined, thank...
View ArticleConversion from string to float
’ <’ not supported between ‘str’ and ‘float’ . And there is no option to change the input data type to float. And cannot change the data type in python also 6 posts - 4 participants Read full topic
View ArticleHiddenLineDrawing.Compute with Blocks
@rajaa I am working along the below example to implement a custom version of HiddenLineDrawing.Compute. Rhino Bug: HiddenLineDrawing.Compute Rhino Developer It looks as if all your objects are behind...
View ArticleRhino8 - Layer adding with python script (RESOLVED)
Hi all, Quite some time ago I wrote a RhinoPython script to add a block of layers in Rhino5. It creates a series of new layers with succeeding numbers following a prefix based on a selected sub layer,...
View ArticleHelp: Rhino.Geometry.HiddenLineDrawing.Compute viewport question
Hi @stevebaer or @GregArden I am working on a script to automate some make2d stuff of blocks and I don’t understand how viewports work in this regard. In ordinary Make2D we can choose Cplane and this...
View ArticleBlend 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 Article