Alternative to MergeEdge
I recently realized that _RemoveKnot/_RemoveMultiKnot and their related RhinoCommon methods, e.g., NurbsCurveKnotList.RemoveKnots, can maintain the shape of the curve when the knots are removed at...
View ArticleI 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 ArticleDrawing Compare Tool in Rhino for merging changes between Make2d drawings
A bit like a new feature in AutoCAD 2021 I’m wondering if diffing 2d drawings in Rhino could be used for automatic merging of changes between drawings generated with the Make2D command considering...
View ArticleHow to update block definition of a selected object?
I’m trying to select a block and refresh it. 2 posts - 1 participant Read full topic
View ArticleUse kangaroo_ triRemesh in C# Visual studio
Dear all, I wonder if anyone knows how to use Daniel Picker’s Powerful triRemesh inside Visual Studio. I have added the reference inside but it seems I can’t directly call the method as we do it in...
View ArticleMinimum setup Rhino compute to replace Rhino.exe /runscript option?
Inspired by these scripts I’m trying to run the following in windows command prompt: for %i in (*.3dm) do Rhino.exe /nosplash /runscript="-RunPythonScript (...\TagObjects.py) save exit" "%i" it works...
View Articlesubprocess.Popen not present in autocompletion list, but is available
I’m writing a command that will open a selected linked block in Rhino in a subprocess without waiting for it to close (without blocking the active Rhino document). I’ve tried subprocess.call and...
View ArticleChange Linked Block's Filepath
I can’t seem to find a method to change linked blocks file path from python. It is available from the block manager (just changing the path make the block definition point to a different file). 3...
View ArticleCapitalize first letter + Leave rest alone?
I have this script, and I’m trying to output the sublayers as camel-case, where the parent layer is named by the user input, and the sublayers use that string as a suffix, but capitalizes the first...
View ArticleCan'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 ArticleTransfer 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 ArticleWhy 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 ArticleThe 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 ArticleUnroller 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 ArticleCreating 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 Articlers.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 ArticleIn-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 ArticleCan 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 ArticleCurve Seam adjustement fails if seam coincides with knot
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 ArticleSet 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