Quantcast
Channel: Scripting - McNeel Forum
Browsing all 5804 articles
Browse latest View live

Adjust DWG-import-Script from V6 to V7

Hello, unfortunately our script no longer works. The following line causes problems Dim strFile : strFile = Rhino.OpenFileName(“Wähle DWG”, “DWG Files (.dwg)|.dwg||”, “dwg”) Dim strCmd : strCmd =...

View Article


Image may be NSFW.
Clik here to view.

Brep.Split() with curves - why is the first element in the return list always...

As an example, let’s say you have a single surface and two closed curves that lie on it. Selecting the surface and the curves, coerce them to a brep and a list of curve objects, then run:...

View Article


Image may be NSFW.
Clik here to view.

Custom Boolean Difference

Dear Altruists, I would like to create custom boolean difference between two/ multiple objects. I have two objects like the right model in the attached picture. Now I would like to create a hollow in...

View Article

About RunScript question

Hi everyone, I’m writing a RhinoCommon by C#. I want to run two rhino’s command in my program then I use Rhino.RhinoApp.RunScript("_SelAll _cap", true), but it does not work. Could someone help me how...

View Article

How to add ezdxf module to Rhino python?

I tried to add c:\Python38 path to Rhino python options, but still didn’t find the module “Message: No module named ezdxf” ezdxf source: ezdxf · PyPI 2 posts - 2 participants Read full topic

View Article


Python Hatch pattern on multiple objects

Hi! I’m very new to python and running into a probably simple error if anyone could help. I’m trying to make a script to duplicate a hatch and assign layers and a new hatch pattern for the duplicate....

View Article

Image may be NSFW.
Clik here to view.

MeshClosestPoint - Minimal 3d shape with tolerance - Virtual point cloud of...

Hi, Has anyone studied the possibility to produce more detailed simple model than BoundingBox or MinimalBoundingBox? I wonder if there’s a way to find the closest points in 3d point array with...

View Article

Image may be NSFW.
Clik here to view.

One extrude command for extruding curves and surfaces

Hello there ! I would like to ask if is possible to make script, that will decide what command will be used if is selected curve or surface. Simply merge the 2 existing commands: ExtrudeCrv and...

View Article


Image may be NSFW.
Clik here to view.

Change cell color gridview

Hello guys , i have a gridview with 4 columns , what i want is to color just column named Color , i finded a code but color every single cell of the row and i don’t want this. The code it’s attached...

View Article


How to import and assign rmtl to object

Hi all. Rhino 7 . I would like to use my rmtl files. How to import and assign to object with common c# ? I tried with : Rhino.DocObjects.Material myMaterial = new...

View Article

Looking for a script to enlarge polysurfaces in X and Y directions only....?

I have an exterior stone panel project that I have to change the joints size from 1/2" down to 1/4". All the stone is 1 1/4" thick and that needs to remain the same. So a simple offsetsrf command will...

View Article

Image may be NSFW.
Clik here to view.

rs.GetObject - limit to selecting within a specific collection of objects?

GetObjects has an optional ‘objects’ argument that allows selection only within a predetermined set of objects. Is there a reason that GetObject() does not have the same option? image827×83 2.55 KB...

View Article

Converting lines?

Hello. I wonder. Is there a script similar to _SetLinetype. Create dashed lines with Polycurve objects The input value is: length of line distance between lines 8 posts - 2 participants Read full topic

View Article


Newbie trying to multiply vectors and matrices in Rhino script with python

I’ve been using Rhino for a couple of years but I’m just now learning to use scripts and I’m relatively new to Python as well. I’ve done some programs in Python using matrices and vectors with the...

View Article

Image may be NSFW.
Clik here to view.

What is GetSet?

Hello, help me please… Now I have 2021-02-14_201017633×505 42.1 KB I don’t understand it just… But what is more important, what is “getset descriptor”? How do I need to work with it?...

View Article


Image may be NSFW.
Clik here to view.

Ring with python

Hello, I am a beginner to python. Can anybody explain to me what went wrong here? image1677×818 285 KB I wanted to get a ring with 3-point arcs at every side of the profile. scripting looks good for...

View Article

End MS Excel process with python script

Hello, From my python script I can read/write Excel files without a problem However, I can not completely “kill” Excel process from the script once I’m done with it… There is an old thread on the...

View Article


Rhino.Geometry.Intersect.Intersection.MeshLine broken

Hi, it appears to me that the latest Rhino7 update breaks the said function from the Rhino-Common API. I’ve got a couple of scripts making use of it and they don’t find intersections anymore since I...

View Article

How can I change the color in IronPython?

I am sorry, but Why doesn’t this code work? import rhinoscriptsyntax as rs import System obj = rs.GetObject() rs.ObjectMaterialSource(obj, 1) index = rs.ObjectMaterialIndex(obj) color =...

View Article

DrawViewportMeshes for technical Drawing

Hello i am working in a Python component and i am implementing the in DrawViewportMeshes method the function Pipeline.DrawBrepShaded and Pipeline.DrawBrepWires to draw a series of Brep. I would like...

View Article
Browsing all 5804 articles
Browse latest View live