RhinoScript from Guidebook doesn't work
The code from the guidebook keeps asking about my ‘favourite things’ without any grande finale Could you please check if it forks for you? I work with Rhino 4 Sub MyFavouriteThings() Dim strPrompt,...
View ArticleHelp with Layers in a Script
Here is a Rhino script that I have worked with. The goal of the script is to read a CSV file that has either a one line description or X,Y,Z coordinates. When it hits a description, it creates a layer...
View ArticleAttribute User Text as Python dictionary
Hello! I am trying to retrieve all objects from the rhino document in order to get their Attribute User Text as a Python dictionary. No luck so far… What I have been trying is this: for rObj in...
View ArticleConnecting to mysql database using python on Hostgator
Hi everyone, I am trying to connect to a mysql database on my Hostgator web server I followed the instruction in this link: ironpython.info Databases with Odbc - IronPython Cookbook However, i...
View ArticleScript to isolate parent layer without effecting children?
i found some floating around the forum but they all turn off all the other layers and turn on all the child layers. i’d like to just isolate based off the parent layer leaving the on/off state of the...
View ArticleString add parenthese to coordinates - help
Hi I’ve got a problem with this part of my python script (keep in mind - I mostly use python to make elobrated macros) In the begin I input numbers for it . lpp = 264500 LOA = 277000 beam = 46000...
View ArticleCan i send commands to rhino from another application (link to excel sheet)?
I was thinking of a script that zooms to a certain location in the rhino doc when i click a button in an excel spreadsheet… is this possible to do with VBA? 1 post - 1 participant Read full topic
View ArticlePyCAM for Rhino 3D?
There’s an open source 2-1/2D CNC toolpath generator called PyCAM which would be really neat if it were in Rhino3D. I checked all the files; it’s all Python. I think it’s enough for many small-mill...
View ArticlePossibility of FaceColor and/or EdgeColor for mesh
Hi all, I am developing a feature that require the user to select some meshFaces/meshEdges and maybe set different categories for them. The data can be stored in UserString, but we want to make sure...
View ArticleRun grasshoper script with python
Hey guys, it s possible to run a grasshoper script from a python file and run it without open the editor of gh? 2 posts - 2 participants Read full topic
View ArticleExit Grasshopper and Rhino from python script
I also got the problem described in the following threads: import rhinoscriptsyntax as rs rs.Command("_Exit") rs.Exit() don’t work when executed in an ‘if’ clause. If I click “Test code”, it works as...
View ArticleRhino 6: Numpy + Scipy
Hello here, I’m in a process of converting a Rhino 5 project to a Rhino 6 project, using IronPython, numpy & scipy. It is told everywhere that Rhino 6 being 64 bits, while (numpy,scipy) being 32...
View ArticleExport objects from layers list
Hello community! I am working on a python script that allows me to automatically export big architectural rhino files to 3dsmax in the most convenient and fast way. I have problems exporting the...
View ArticleCould someone explain: 1. Warning (CS0162): Unreachable code detected (line 90)
Hey guys, So, I am fairly new in coding, Rhinoceros and Grasshopper. I took an introductory course as part of a class in my Masters and I thought I was grasping the basics but then this error comes...
View ArticleOpen another Rhino 3dm file, but python still remain at the same directory
Hi everyone, I have 2 rhino 3dm files in different directories. I use some python script in 1 of the files to open another one (something like rs.Command(’-_Open “file2.3dm”’) However, I found that...
View ArticleRhinoscriptsyntax PopupMenu() bug - incorrect position with 4K screens
rs.PopupMenu() is supposed to pop up under the cursor position if no optional position argument is supplied. image728×263 6.51 KB I have a desktop with two HD (1920 x 1200) monitors (extended...
View ArticleA generic error occurred in GDI+
Hi all, I have a python script that works both in Rhino 6 and WIP. But in BETA the message “A generic error occurred in GDI+” occurs ALMOST every time I use it. Is it a bug or can someone please give...
View ArticleVector Normal to Curve/Line in GHPython
Hi, This might be a more obvious one. I have curves which are not aligned to the standard planes (WorldXY, WorldYZ & World XZ). I am looking to move these curves along their normal vectors on the...
View ArticleMessage Box That can be turned off after a time
Hello, I have a python macro that takes a fair amount of time to complete and I’ve been sending messages to the command line asking the user to wait, which they may or may not see. Is there a way to...
View ArticleManipulation of grid size
how can i give the distance between one line to another line as one distance and from that line to one more line as different distance and that also can be paramterised 2 posts - 2 participants Read...
View Article