How to explode nested blocks till individual block in Rhino
I want to explode nested blocks till individual blocks, So how to explode nested blocks using Rhino API. 2 posts - 2 participants Read full topic
View ArticleHow do I get my Rhino 8 trial to run Python 3?
Hello all… I’m coding in vscode and using Python 3.10. When I send my code to Rhino for execution I see that it’s running on Python 2.7. Here’s my sys.version info: [2.7.12 (2.7.12.1000)...
View ArticlePoint3d object can't be compared to None
I don’t expect this to gather a lot of support, but many of the RhinoScriptSyntax functions use/return Point3d objects and they can’t be compared to None. import Rhino.Geometry as rg ImportantPoint =...
View ArticleR8 - Missing default linebreaks in rs.MessageBox
Hi there, the rs.MessageBox function in R8 does not add automatic line breaks when long texts are inserted for the message. Please try below script example: import rhinoscriptsyntax as rs msg = "This...
View ArticleR8 problem with scripted _-Import and PDF
Hi there, i got an R7 script which imports a PDF file using below syntax: cmd = "_-Import {} ".format(chr(34) + file_path_name + chr(34)) cmd += "_PreserveUnits=_Yes " cmd += "_PDFScale=1 " cmd +=...
View ArticleHow to get a polyline from a line by inserting an edit point
Given a line class object (a simple straight line), I would like to insert an edit point at a length value and end up with a straight polyline. What’s the best way to do this? I can’t figure it out on...
View ArticlePython 2.7 dictionary question
I don’t use dictionaries all the time, so I’m not a master. I need to create a rather long one this time, with over 100 entries. However, using the test script below, the first entry does not seem to...
View ArticleNo language found in Py3 component
Hi Ehsan! Japhy mentioned that you might help with my GH/Python problem. My problem is related to the use of Python 3 in Grasshopper. I have Python 3.12.1 installed on my system (installation...
View ArticleHOW to switch IGES types of
for example IGES 143 ,IGES 144, 3D MAX 5.0. In Rhino5. Use Python achieve 2 posts - 1 participant Read full topic
View ArticleRhino.RhinoDoc.ExtractPreviewImage buglet
Hi there, using below code in R8 produces an error on a saved and opened document if no path is provided to the method: import scriptcontext bitmap = scriptcontext.doc.ExtractPreviewImage(path=None)...
View ArticleHow to navigate Rhino scripting documentation?
I can’t begin to tell you how unhelpful I find the Rhino scripting documentation. I think I must be approaching it wrong somehow. Can you tell me how I should be approaching it? Here is an example: I...
View ArticleDifference between IronPython2 and Python3 in Rhino 8
In Rhino 8 Grasshopper has new python components, IronPthon 2 and Python 3. Could anyone tell me the difference between these 2 components ?? by searching internet, what I understand so far is,...
View ArticleViewCaptureSettings.PointSizeMillimeters buglets and svg wishes
Hi @stevebaer, there is a small buglet with PointSizeMillimeters, the helpdoc states that it allows Double but a value of 1.4 is always reverted to r="2" in the svg file. some future wishes: Could you...
View ArticleSystem.IO.DriveInfo does not exist in Python 2 in Rhino8
In Rhino 7, System.IO.DriveInfo exists. But not in Rhino8 when using Python2 (It does in Python 3, though.) 1 post - 1 participant Read full topic
View ArticleRhino 8 rs.GetSettings not finding ConfigParser
Hello, There seems to be an issue in Rhino 8 where the ConfigParser module is not in the expected place. How do you feel about creating a corresponding rs.WriteSettings? Or maybe it is time to just...
View ArticlePython, unable to import Pandas in Python3Component
Hello, Like many other colleagues, we are still facing the error : "1. Error running script: partially initialized module ‘pandas’ has no attribute ‘_pandas_datetime_CAPI’ (most likely due to a...
View ArticleRhino 8 Script: Editor keeps loses caret
When using script editor in R8, sometimes the caret (text cursor) will disappear after each key stroke, and I’d have to click again to input the next charater. I think it mostly happens after moving...
View ArticleISSUE: rs.DeleteObjects() doesn't delete hidden geometry in RH8
Hi there, when I use rs.DeleteObjects() to remove geometry from the scene, hidden objects are not deleted. The documentation doesn’t say anything about the visiblity state. please see my script to...
View ArticleRhino API's `Arc.StartAngle`
When attempting to write Arc.StartAngle using the Rhino API, consistently returns zero. Is this the expected behavior?" 2 posts - 2 participants Read full topic
View ArticleHow to properly interface with GUIDs
Hello I am trying to understand how to properly interface with Rhino GUIDs in python. When I want to access the properties, whether geometric or otherwise, of the object the GUID represents should I...
View Article