The polyline objects are overlapping, how to remove short curves?
helpfind1337×585 3.31 KB I am looking for a solution to eliminate short curves when objects are overlapping. find 2 curves overlapping then delete object short. Please help 3 posts - 2 participants...
View ArticleGetPageViews or get RhinoView from file in the RhinoCommon API
Hello I´ve been trying to use the Rhino.Display.ViewCapture.CaptureToBitmap() from the RhinoCommon API but it is returning None: import Rhino rhino_file_viewtable = rhino_file_instance.Views...
View ArticleIteration points
hello every body, i’ve got a closed polyline, and i would like to know how many 90° angles there is. so i wrote: points=rs.CurvePoints(cont) for i in range(0,len(points)-1): angle=rs.Angle2( points[i]...
View ArticleUse Rhino.Python to manipulate the Gumball?
Is it possible to use Rhino.Python to manipulate the Gumball location? The reason for this question is that I am generating some geometry from a Python script, however the Gumball is not located at...
View ArticleChanging dot secondary text problem
Hey guys, i tried to change a dot secondary text and dosen’t work , what i m missing? import rhinoscriptsyntax as rs textDot = rs.GetObject(“Select textDot”, rs.filter.textdot) textDot =...
View ArticlePlug In Compiler
It has been quite a while since I have had to compile a plug in for Rhino is there any info out in the public domain for guidance on this. I also cannot remember if the actual RVB script has to be...
View ArticleAny way to query the location of a sphere object?
I’m using Python for Rhino, and I was wondering if there is a way to query a position of a sphere object using its name or GUID. I realize that the concept of position is not well defined for generic...
View ArticleSprintf Equivalent
Hello, I finally took a deep dive into RhinoScript. I am slowly finding my way after looking at sample scripts. However, I am having a bit of trouble formatting a string, which in turn writes to a...
View ArticleCompiler python
I tried the compiler with one of my python script… It’s really nice!!! So I created an *.rhp, I dropped it in rhino, and it run, but I put in this script a rs.enableredraw( false). And when I quit the...
View ArticleComo juntar dois ou mais Scripts
Olá pessoal, gostaria de saber como eu poderia juntar dois ou mais scipts para que rodassem um após o outro, sendo que entre cada intervalo eu adicionaria uma informação. 2 posts - 2 participants Read...
View ArticleHow to extract CurveStartPoint or CurveEndPoint in CPlane Coordinate System?
Hello, I am completely new to Rhino Python. I wish to extract coordinates in CPlane system of start and end points of a Curve. But the CurveStartPoint and CurveEndPoint functions spit out in World...
View ArticleAnotation Style Creation in Version 7
I am trying to create an annotation style. From looking at the examples I came up with this: //Create the style and return the index. Don't save with the file. int dsi =...
View ArticleBrep.Trim() failure
Hi , Can someone please let me know why this minimal-example trim is not returning a trimmed brep? The surfaces are coplanar, and the smaller cutter resides within the larger surface to be cut. (There...
View ArticleRhino Crashing on trying to load a new image through Python Script
Hi im Jordan, I’m still somewhat new to coding so I would be very grateful for some help. I am trying to set up a UI window that displays an image that is corresponding to a selection in a ListBox. I...
View ArticleRhino7 GHPython Runtime Error: Unable to add line
I’m new to GHPython and getting the following error: Runtime error (PythonException): Unable to add line to document Traceback: line 482, in AddLine,...
View ArticleConvert planar surface to solid hatch while retaining display colour
Hi, I’d like some pointers on how to convert large numbers of planar surfaces into hatches, while retaining the surfaces properties such as display colour etc of each surface/hatch. I need to do this...
View ArticleExportwithOrigin in RhinoScriptSyntax (Python)
How would I script ExportwithOrigin in rhinoscriptsyntax Command()? This won’t work: rs.Command('-_ExportWithOrigin (1,2,3) "c:/folder/filename.3dm" _EnterEnd') What am I doing wrong? Thanks all. 2...
View ArticleHelp understanding rs.Angle result between two points with plane provided
I think I am doing a straightforward angle calculation between two points which are -90 degrees apart on a plane, but I am getting -45 degrees from the rs.Angle result. I’m guessing there is something...
View ArticleRhino 7; SplitMeshWithCurve issue
Hello, I’m in the process of converting Rhino 5 scripts into Rhino 7 scripts, and I got weird results using SplitMeshWithCurve function. Here is the mesh I’m tring to split, with the splitting curve:...
View ArticleConvert Non-planer Surfaces (or Ploy-surfaces looks like surface) to Planer ones
Hi, Is there a way to convert Non-planner Surfaces (or Ploy-surfaces looks like surface) to Planner ones? What I do is that I duplicate the edge of the surface and trim it from a planer surface after...
View Article