External Access to Rhino 7
I’m trying to access Rhino 7 using VBA in Office 365 Excel. I found this link but cannot seem to get the macros to access Rhino:...
View ArticleOpening new Window using eto on button press
Hello Everyone, I’m trying to program a Rhino Python Script with the eto library which opens a new, different selection window on a button press. The first level dialog is supposed to be a main menu,...
View ArticleExporting to STP through python rhino 7
I am having a an issue in exporting a closed polysurfaces as STP file through python. the script was working in previous rhino but now in rhino 7 exports only empty STP files (0 kb) Snip of the code:...
View ArticlePython style guide
With the arrival of Hops for GrassHopper ther’s gonna be a whole lotta Python on this forum in coming years so here are some words to the wise… See also the full PEP8 style guide or just import this 4...
View ArticleCreate a function that can be typed into the command line to run a Python Script
Hi, I want to create a custom Rhino Command that I can run by typing it into the command line and having it run a Python Script. Typically I create a toolbar button and paste in the Python code,...
View ArticleDraw lines between two curves and automatically dimension them every 100m
695×242 27.8 KB I want to automate the process of drwaing one line every 100units to find out the distance between the two lines every 100units, the distance must then be dimensioned. Is there an easy...
View ArticleHelp for Enable disable in python grasshopper components
hi everyone Enable disable in python grasshopper components in this code doesn’t to disable the component and nothings happening !! please help me to control this by python or c# scripts ( i doesn’t...
View ArticleScripting TextObject Command
Hi, Looking for a way to script the TextObject command in Rhino 7 using Python. Can anyone help with this. I like the ability to end up with curves and utilize the spacing function. image289×541 10.6...
View ArticleExtract application data from 3dm
I want to extract some data from 3dm files. If I use Audit3dm in Rhino, this gives me info on the build and operating system used. That’s the data I want. In Rhino Common I see Rhino.FileIO.File3dm...
View ArticleReplace dot to comma and vice versa
(topic withdrawn by author, will be automatically deleted in 24 hours unless flagged) 1 post - 1 participant Read full topic
View ArticleAutomate meshing process
I am writing an optimization program and I need to automate the meshing process. I am using Rhino 5 and trying to write a python script. to call externally and run rhino with some parametric function...
View ArticleCDbl in French?
I have a Rhinoscript that reads a .ini file. But Rhinoscript doesn’t recognize the numerical result as a number if Rhino is running in French. Works perfectly in English. If the input number from the...
View ArticleHow to get the index of Control point of surface in python script
I have struggled many time to find out how get the index of control point of the surface in rs.ObjectGripLocation command. Follow to the instruction on this web ObjectGripLocation that the index value...
View ArticleI created some usefull scripts for exporting multipage PDFs
I created these two scripts to export multiple pages to a pdf. It’s something I have really needed in the past, so I thought I might share them with all of you. The first one collects all layout views...
View ArticleSize of Face wrong when importing STEP-File
I wrote a Python-Script that lets me select an objects face an than morphes a given structure onto that face, so that there is no overlap over the edges. Visual example of how it should work: Box...
View ArticleFonts.FindOrCreate fails to find font
Hi @Pascal and @dale, i am trying to create a TextEntity using the “Arial Black” font. To locate it, i use: te.FontIndex = scriptcontext.doc.Fonts.FindOrCreate("Arial_Black", False, False)...
View ArticleUpdate Eto form from another thread
Hi there, I am trying to update an Eto form from another thread. My main purpose is to populate a dialog with data from an external source that takes about 6-7 seconds to be fetched. I’d like to have...
View ArticleMoving and rotate a object by another object using python
Hey guys, how can i move and rotate a object by another object using python. In image it’s a contour of object who has been rotated and moved from origin point, and i want using python to match with...
View ArticleHelp for this c# command SubD.CreateFromSweep Method
help for this c# command SubD.CreateFromSweep Method hi everyone Can anyone help me in writing this so many orders? a...
View ArticleRhino3dm: face get mesh always None!
Hello , what is the error in this code? always GetMesh(rh.MeshType.Any) is None. The file is a simple cube import rhino3dm as rh file = "..../cube.3dm" rf = rh.File3dm.Read(file) for obj in...
View Article