Python odbc connection
@enzo_molinari wrote: Hi, I'm trying to connect to an access db using odbc, but I'm stuck at the beginning.When I put "import pyodbc" in the code the message i receive is: "No module named pyodbc".So,...
View ArticleMoving Object to Cplane without affecting Design
@ryanedkins wrote: I am using a rhino plugin called gem vision matrix, and it has a custom marco called gvGemView, which moves the gem object to 0,0,0 and orientated directly upward. video of the...
View ArticleNormal vector of plane always same even after rotation
@Mr_Sinter wrote: Hi @all, i would like to measure the normal-vector of a plane before and after rotation. I only want those surfaces of a brep, which normal-vector in z-dir is -1 and lie at z=0: for...
View ArticleScripts and Undo question / wish
@Jarek wrote: Hi @Dale, I recently ran into a problem where undo-like behavior while running a script would be very helpful. For any string or number values, implementing my own undo inside the script...
View ArticleHow to compute surface normals of a multiple-face brep?
@Wolfgang wrote: Is there a way to get the normal vector at a point on a multiple-face brep? I found that for single-facebreps, there is a function Rhino.SurfaceNormal(), but it doesn’t seem to work...
View ArticleImport Partial CSV File
@brixton wrote: Is there a way to use rhino scrpit, or python script to just import certain lines of a csv file. Meaning that the script specifies lines 2-10, then stops reading the csv. Thanks....
View ArticleSplit surface at tangents
@AleksandarSM wrote: Hello, Is there a way to split surface at tangents with just selecting the surface, and not supplying any other argument, like Rhino command DivideAlongCreases >...
View ArticlePython enumerate()
@lawrenceyy wrote: So I've found that enumerate does weird things to the index when you don't enumerate from the beginning. How do I force the index to be correct? Example: mylist1=range(10,20)...
View ArticleVbscript question: running script from another script without creating a file...
@Jarek wrote: Hi All, I am currently running a new vbscript from my main RhinoScript by creating the 2nd script 'on the fly' from array of strings and writing it to external secondfile.vbs file, then...
View ArticleMake previous layer active
@cosmas wrote: Goodmorning scripting friends, is there a way to create a script/ or macro (if it can be done that simply) to make whatever layer was previously current, current again? I have aliases...
View ArticlePython Code About Validating User Input
@Ahmed_Hossam wrote: I have read alot about validating the user input at different websites, but I still wasn't able to find a method in python for generating the condition at "the end of the while...
View ArticleFinding the 'base' surface in a FlowAlongSrf history chain
@JimCarruthers wrote: As the title says, I'm having the user pick a surface which is either the Base or Target surface in a FlowalongSrf with istory, and trying to retrieve the Base surface. The base...
View ArticleRhinocommon Python with StrongBox Example
@Josh_Lopez-Binder wrote: Continuing the discussion from How can I use Plane.FitPlaneToPoints from Python correctly?: I was also confused when I initially tried to use a function that modified an...
View ArticleExport curvature values for curves
@Zemleroi wrote: I believe there is no built-in way to export curvature values from points on the curvature graph. Is there a script available to do this? What I am thinking of is a way to export, as...
View ArticleRhino.UI.Dialogs.ShowTextDialog bug?
@clement wrote: Hi @dale, i´ve found that if more than 30 lines of text are used in below code for the txt variable: Rhino.UI.Dialogs.ShowTextDialog(txt, "Output") the output is an empty dialog. Does...
View ArticleOrder that hatches are displayed in
@cosmas wrote: Hey guys, Does anyone know what determines how the order that hatches are displayed in the hatch dialogue box is determined? It doesn't seem to be alphabetical and I am trying to make...
View ArticleRhinoScript DocumentURL
@tobias wrote: Hi all,I wonder what exactly is a DocumentURL?DocumentURL is a RhinoScript method to return or set the URL of the current Rhino document, but what exactly is that and how to use it?...
View ArticleFollow link redirection & Assign Name to Material in Python
@MichaelW wrote: Hi all, im a bit stucked with two things: how to assign a name to a material in python? and: i try to access a picture by a link which is redirected to another link. so the script...
View ArticleHelp on SplitBrep
@Cyver wrote: Hi all, i'm trying to split an object from center world by making a cutplane and use it as cutter, but something is wrong i my (poor) script, i got an error message "string required" in...
View ArticleUse layer name when exporting
@wiivanil wrote: I'm new to scripting.I wrote a script that export a jpg of objects on every single layer.Now, when I launch the script I write the file name every time the window come up. I'd like to...
View Article