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

Can't set -Make2D LayerName via rhinoscript in Rhino 8 WIP?

LayerName option in Make2D command doesn’t seem to work - last layername is used instead. Could it be that text behaves any differently from Yes/No options? Is there a better way to Make2D from...

View Article


Transfer block contents w layer structure under block parent layer

Hello! My first post here and very new to scripting. I’m just wandering if it’s possible to process block instances in the following manner: BlockInstanceLayer: BlockInstance001: Solid001,...

View Article


Why is the circle not drawn

import rhinoscriptsyntax as rs rs.Command("_Circle " + str(0) + “_Enter” + str(20) + “_Enter” ) Simple question. Why is the circle not drawn? 7 posts - 5 participants Read full topic

View Article

Image may be NSFW.
Clik here to view.

The problem of installing Lady Bug

Hello all, I would like to ask you a question and I would be very happy if you would help me. I downloaded the newest version of Ladybug tools(1.5) from food4rhino. But when I install it, I...

View Article

Image may be NSFW.
Clik here to view.

Unroller method very easy to lose TextDot

I want to unroll some breps ,and follow some TextDot ,but the result often lost any TextDot,but _UnrollSrf command not !! 4 posts - 2 participants Read full topic

View Article


Creating custom sort for Curves in C#

Hello everyone! Can one create a custom sort for curves? Example code: x.Sort(new CustomCompare()); /// class CustomCompare : IComparer { public int CompareRegionRelashionship(Curve x, Curve y) { if (...

View Article

Image may be NSFW.
Clik here to view.

rs.ObjectsByType() again not obeying State param

In Rhino 7 rhinoscriptsyntax the ObjectsByType(geometry_type, select, state) function is not returning a list of ids properly constrained by the State parameter. A similar bug was reported in R5 and...

View Article

In-Line way of including LayerMaterialIndex (etc) when creating AddLayer?

Is there an in-line way of setting LayerPrintWidth (and other attributes, like MaterialIndex, etc.) when you’re scripting for AddLayer? Example: rs.AddLayer(new_element)...

View Article


Image may be NSFW.
Clik here to view.

Can Rhino.Interface (COM) filter when running multiple Rhino processes?

I am trying to use COM to open a selected 3dm file in an existing Rhino instance. Is there any way to filter the list of existing Rhino processes? I’m trying to get a Rhino process without any file...

View Article


Image may be NSFW.
Clik here to view.

Curve Seam adjustement fails if seam coincides with kont

debugging_seam_adjust.gh (11.0 KB) I am using a script that adjusts a curve’s seam to a given parameter. In some situations adjustments fails (while returning True): the seam stays in the original...

View Article

Set name of objects as filename input?

I am trying to adapt a .rvb script to convert from IGES to 3DM files automatically, and I do need to set the name of the objects to be the same as the imported file name and I get stuck at:...

View Article

Attribute User Text: set Key and Value with Python-Script

Hello! I use Attribute User Text to assign informations to an object: docs.mcneel.com Attribute User Text properties | Rhino 3-D modeling Properties that manage user text. To automate the process I...

View Article

How to get all the text in a RhinoPageView?

I’m trying to modify Kelvin Cheng’s script that prints one PDF page of each Layouts as a separate file. I want to add to each PDF file’s name suffix of a text object in that layout (it’s a revision...

View Article


Image may be NSFW.
Clik here to view.

Please fix rs.JoinSurfaces for V8

Right now rs.JoinSurfaces() is a really dumb function - and it doesn’t need to be. The current wrapper code is this: def JoinSurfaces(object_ids, delete_input=False): """Joins two or more surface or...

View Article

/runscript flag doesn't work if Rhino started from subprocess.Popen

I can’t get Rhino to runscript via subprocess.Popen. It opens the file correctly, but doesn’t run any commands. It works fine when run from cmd prompt. Also doesn’t work when run from Cpython. Why...

View Article


rs.LayerVisible much slower than "toggling lightbulbs" in the panel

(topic deleted by author) 1 post - 1 participant Read full topic

View Article

How to exclude nested blocks inside externally linked blocks

The script below manages to exclude nested blocks that are inside embedded blocks, but doesn’t seem to work for blocks nested inside externally linked blocks (those inserted with “Linked” “Reference”...

View Article


Image may be NSFW.
Clik here to view.

Spawning multiple Rhino instances stops due to licensing prompt

Running scripts that start larger number of Rhino windows (30+) causes these prompts for licence to pop up. Once filled in the processes start as intended, but ideally these wouldn’t show at all, if...

View Article

I can't undo a python script that lock layer in Rhino 7

For example, in a blank document, I added ‘Layer 01’ and then I ran this python script: import rhinoscriptsyntax as rs rs.LayerLocked(‘Layer 01’,True) After that, when I do the undo command (or Ctr...

View Article

Is it possible to postpone loading of externally linked blocks?

Opening a file with blocks that are externally linked might take a long time and I think that it would be useful to be able to set rules when those blocks are loaded - for example blocks that are on...

View Article
Browsing all 5938 articles
Browse latest View live