How do I change the annotated model space scaling ratio?
How do I change this value in python? 3 posts - 2 participants Read full topic
View ArticleGet Curve IntersectionEvent
Hi, Is there a way to get resulting curves from curve and surface intersection similar to SCX component by scripting? 2 posts - 2 participants Read full topic
View ArticleCommand doesn't work via package manager
Hey all, I published a plugin for my python command. However, after I install it, it doesn’t pop up the form like when I run the script via the ScriptEditor. I installed it via the package manager....
View ArticleHow to turn off ICurrentEnvironment.ForReflectionAndRefraction
Hey all, I’m getting confused on how to turn off the reflection in the current environment using Python for Rhino 7 & 8. I found the RenderEnvironment in...
View ArticleETO form Script Editor Python button with image
Hi, I would like to ask if someone could show how using eto forms create a button that has multiple buttons with images as a button background? Or if it is not possible, is there any example how to...
View ArticleAutomatically reassigning annotation style and dim scale
Hey all, New to scripting so fingers crossed this is a simple fix. The gist of what I’m trying to do is automate a process for taking old architectural details imported from CAD and reassign their...
View ArticleInsert a subfunction in the middle of command?
import rhinoscriptsyntax as rs ort = rs.Ortho() rs.Ortho(False) def on(): rs.Ortho(True) rs.Command(‘_Leader pause’) How to insert the open orthogonal effect in the middle of the command command? 1...
View ArticleHide Layers in Layer Panel via Eto.Form / Script
Hi, I use a template for all my models which has +150 layers, but frequently I only need say 10 in each actual model. Once the model is built, I can filter the layers that are visible in the Layers...
View ArticleHow to Use ReplayHistoryResult?
I want to manipulate geometry in Rhino from ETO forms with sliders using python. I can kind of do it, but the geometry looks very choppy as it updates and updating is only truly possible in wireframe...
View ArticleWebView2 in R7 with ETO using Python
Hey all, is it possible to use WebView2 for Rhino7 in Python? Thanks! 1 post - 1 participant Read full topic
View Article[Windows Only]: R8 Parameter is not valid to create System.Drawing.Bitmap
Hey all, it doesn’t seem like I can call System.Drawing.Bitmap like the snippet below on Windows. However, the same code works on macOS. How can I fix it? Thanks! web_client = System.Net.WebClient()...
View ArticleIronPython global name '__transformers__' is not defined
Hey all, I’m making some network request on R8 using python 2.7. I noticed that if the network request is made immediately when the plugin starts to run, I have a chance of running into this exception...
View ArticleIs Sweep1 Broken in Rhino.Geometry and Grasshopper?
It works fine with circlular rails, but you can see that for rectangular rails, I get a crazy result. This is the code: rectangle sweep problem.py (855 Bytes) What am I doing wrong? Update: It seems...
View ArticleDirections of the Principal Axis of a surface with Python script
the Rhino command AreaMoments returns, among other things, the direction of the principal axis of the surface. The correspondong rhinoscript command SurfaceAreaMoments does not return those...
View ArticleSynchronize cpython between workstations
What is the best way to synchronize multiple workstations using cpython with several packages in Rhino8. I tried C:\Users\myuser1\.rhinocode\py39-rh8>./python -m pip freeze >...
View ArticleHow can I implement Eto.Forms.Filtercollection in python
Hi, I’d like to refresh the datastore of my Eto.Forms.TreeGridView. I’ve read this topic and the documentation and appearently I can pass a FilterCollection object to the TreeGridView.DataStore...
View ArticleRhino Plugin - hidden command appears in toolbar
@eirannejad I’ve made a plugin using the ScriptEditor, marking a command as Hidden, but the command appears in the plugin toolbar: Is this expected? If so, how can I hide the command from the Toolbar...
View ArticleIron Python keep selection
I can select edges of a brep within an ironpython script. I can see the highlighted selection in Rhino, if I execute time.sleep(5). After the script is finished, the selection dissapears. How can I...
View ArticleBrep Solid Orientation for mesh?
Hi, Is there any method as for BREP to know the orientation of solid? I am referring to this RhinoCommon method: https://developer.rhino3d.com/api/rhinocommon/rhino.geometry.brep/solidorientation What...
View ArticleDetailViewObject => Commit changed to detail
Hello dear colleagues, can someone describe difference between the two methods: DetailViewObject.CommitChanges() RhinoObject.CommitChanges method and DetailViewObject.CommitViewportChanges()...
View Article