Why is Rhinoceros with Python processing so slow?
Hello Right now we are building a system that is running Rhinoceros with python scripts on an AWS EC2 instance by using python subprocess. Development was done on a local PC. Execution on the server...
View ArticleUserString & UserText Confusion, are these same?
During my search for the best way of managing user data, I encountered with some terms UserText and UserString. I guessed the UserText is the dictionary that is readably by the user from “Properties:...
View ArticleCreate surface from point cloud
Hi, I am trying to fit a surface to a point cloud using Python scripting. Using the Patch command from the viewport I can successfully fit a surface to the point cloud (~500000 points, see below...
View ArticleMsvcrt.getch
I was trying to used the msvcrt.getch in a python script I am writing but when asking for keyboard input it doesn’t stop and ask for user input and alwas puts in value 655335 or something like that. I...
View ArticleHelp Converting linked blocks to embed blocks and and collapse
Hi all! I have a problem with a python script. I need to convert all the blocks in the file to embedded blocks, collapse them ( remove any nested block) this is the code I am using at the moment:...
View ArticleVb.net To C# (inset mesh)
Hello everyone; i Convert this Vb Script for Inset Mesh(M+ plug-in) To c# all is currect but the end of Mesh.face is missing (not inset) in c# (script) Can anyone help me?? inset mesh-Vb.net To C#.gh...
View ArticleRhinoScript Editor Search Functionality
I’m having to fix up some code I wrote 12 years ago without a mandate to just redo it in python and the editor, in V7 and V8, seems broken. If I want to find some text I have selected I can’t just...
View ArticleDid I hit my first limitation for utilizing scripts?
Hello All, I was able to get this script to read a point coordinate and generate a dot object that reports the. z value of this coordinate. Before compiling it to a rhp plugin. I’m wondering I it is...
View ArticleNested list mapping
main_list = [[‘livingroom’, ‘Entrance’, ‘livingroom’, ‘bedroom’, ‘kitchen’, ‘bathroom’], [‘bedroom’, ‘Entrance’, ‘livingroom’, ‘bathroom’, ‘livingroom’, ‘kitchen’], [‘bedroom’, ‘Entrance’, ‘bathroom’,...
View ArticleNonmanifold Merge - python scripting?
I’m trying to access the NonmanifoldMerge command in Rhinocommon or python, but can’t seem find any reference to it anywhere. The goal is to be able to use it on polysurfaces in a model (>130k...
View ArticleNeed help with getobjects custom_filter
I need to create a script where getobject can only select the closed curve to define the plane, and surface to define the plane. I have created a filter using custom_filter, but if it works...
View ArticleCalculate the angle between adjacent line segments of a space mesh shell
I would like to ask for advice, I would like to calculate the angle of adjacent line segments of a space mesh shell, how do I do it? Is there any way to is to realize it? A.3dm (118.4 KB) 5 posts - 2...
View ArticleObtain objref for Rhino.Geometry.Brep?
If I have a rhino.geometry.brep stored in the memory in a python script, is there a way to access the object reference (Rhino.DocObjects.ObjRef)? Sc.doc.objects.Find, coerceobject or adding it to the...
View ArticlePanel(Layers, properties, etc.) locations with Python
Hi all, Is there a way to get and set the location and extends of the panels(Layers, properties, named views, etc.) on screen through Python? The reason being is that I find myself moving them around...
View ArticleKeyboard event handling
Hello, I want to make a script that continuously redraws objects based on parameters provided via a dialog box. I currently have this function which is showing the dialog box, collecting the...
View ArticleModifying the geometry of an object and maintain all other information
Hi, I’m trying to modify the underlying geometry of a referenced Rhino Geometry. In this case a polyline, where I want the points of the polyline to move to new location. I want to keep this simple,...
View ArticleBounding box
Buona sera a tutti, sono un autodidatta e sto iniziando solo ora a scrivere qualche macro che mi automatizzi un lavoro ripetitivo. dopo aver caricato un modello,devo creare un bounding box e poi...
View ArticleError in rs Help for RotateObject()
The Help for rs.RotateObject() and rs.RotateObjects() is wrong, it indicates you can supply a plane for the rotation axis, when in fact it wants a vector. Feeding it a plane in this case errors out. I...
View ArticleShifting Path in C#
Hi all, I have a DataTree in C# Scripting component and would like to reduce its path, for instance, {a;b;c} into {a;b} - same as the “Shift Path” component in Grasshopper. Does anyone know how?...
View ArticlePrevent UI from freezing during long running Python script - Windows
I was about to post this earlier today but found the solution some time later, so consider this a little public service announcement: Is there any way from preventing Rhino’s UI from locking up and...
View Article