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

Select text by color

@Tudor_Chirila wrote: Hi. My current challenge is to select all texts from a rhino document, and then append each text to new lists, but by color. A short example: I have 10 text objects, 3 are red, 3...

View Article


Sort by X,Y

@Tudor_Chirila wrote: Hi guys. I have another challenge. I need to sort some rectangles. What I need to get done is this: select all objects and name them consecutive, like Sheet 01, Sheet 02, etc....

View Article


How could I add a linear dimension

@Yang_Cao wrote: What should I define this point? point_on_dimension_line.I set it to be like this: Add position dimension on top view basepoint = x, y, z originx = 0, y, z Dimpointx = 0.5*x,y+40000,z...

View Article

How to set the import options (which will comes up after import stl file use...

@fengyee_zju wrote: Anybody can help on this? thank you! when use rhino script to import stl file, the scripts shows below: ==========================================================Sub TestFileOpen()...

View Article

Import a new layout

@Yang_Cao wrote: Hi, how could I import a layout from file using pythonscript? Thank you. Posts: 2 Participants: 2 Read full topic

View Article


How to draw a line that have an asigned angle to x asix in XYplane

@fengyee_zju wrote: would any one can help on this?as we know we can use _line command and set _Angled in Rhino to draw a line that have an assigned angle to X asix in XYplane.but how can we do this...

View Article

Mesh face area

@fengyee_zju wrote: would you kindly help me?how to find the mesh face which have the biggest area?thank you very much. Posts: 2 Participants: 2 Read full topic

View Article

Image may be NSFW.
Clik here to view.

Weird dimension python script

@Yang_Cao wrote: Hi, I want to add the dimension on "front"plane, the height from the center(center of gravity) to the left bottom corner(basepoint) of the box. I used the following python script....

View Article


Pause script to allow user to position objects before continuing?

@btub wrote: Hi, I'm working on a script that needs to allow the user to select and drag an object to a new location before continuing. I know how to pause a script to wait for user input (string) or...

View Article


Model space scale of current DimStyle

@BaptisteC wrote: Hi,Does anybody know how I could access the model space scale value set in the current dimension style using python?I can't find the corresponding attribute.Thanks Posts: 3...

View Article

Keyboard callback or mouse callback

@suc_kiet wrote: Hi all, I move object with function: import System.Drawing.Color import Rhino import rhinoscriptsyntax as rs def move(): rc, objref = Rhino.Input.RhinoGet.GetOneObject("object",...

View Article

Circle tanget 3 curves using Rhino.Command

@louis9jan wrote: Hi Guys, I am wondering, is it possible to make the tangent circle to three curves using Rhino.Command method in Rhino4 or earlier ? Posts: 1 Participants: 1 Read full topic

View Article

Script for exporting control points of multiple curves

@antus wrote: Hello, I need some expert help with a script for exporting the control points of multiple curves. The curves will be planar, one in front of the other along the X-axis (like...

View Article


Image may be NSFW.
Clik here to view.

Sweep1 is completely baffling

@Alex_Steinberg wrote: Hi All, I have been banging my head against this simple bit of code for the better part of today and I only seem to find more issues. What I'm trying to do is to take a closed...

View Article

Adapting a vbscript

@JimCarruthers wrote: I found a VBScript file for generating pseudo-random integers that is not running for me because it make a number of references to "Wscript" that Rhinoscript doesn't...

View Article


Exporting To a 3dm with layout

@JimCarruthers wrote: I'd like to, as the title says, export objects to a Rhino file along with a particular layout page. There doesn't seem to be a way to do this, aside from I guess exporting the...

View Article

Circle Closest Points

@suc_kiet wrote: Hi: In this script, why Rhino.Display.DrawLine() and Rhino.Display.Draw2dText() no work? import Rhinoimport rhinoscriptsyntax as rsimport System.Drawingimport scriptcontext def...

View Article


Cancelling Rhino.GetOption

@radair3155 wrote: I'm running Rhino 5 on win7. I wrote a vbscript that I connected to a button using the command "!_ToggleScale" which runs fine and cancels stock Rhino functions waiting for command...

View Article

Referencing model dimension value in layout space

@marinerjohan wrote: When you draw a dimension in layout space snapped to a model space object, it will display the model space dimension. I have tried to access the value using rs.DimensionValue(),...

View Article

Image may be NSFW.
Clik here to view.

The Closest point on curve without splitting or trimming the curves

@louis9jan wrote: Hi All, Pls check the posted image.... Is it possible ?? GetClosestPointWithoutSplittingTheCurves.jpg1109x621 76.3 KB Posts: 5 Participants: 3 Read full topic

View Article
Browsing all 5887 articles
Browse latest View live