Get DocumentPath or DocumentName before file is saved?
I’m trying to reopen the same file via Python - it’s an autocad drawing that Rhino opens to use it as a base for generated geometry. However, I can’t seem to get document’s path or name without saving...
View ArticleName and add viewport + named viewport
Hi everyone, I would like to automate the creation of new viewports + named viewports. My usual process is: create floating viewport dock floating viewport create a cplane with 3Pt plan view to cplan...
View ArticleWould it be possible to specify export scheme in "Export" command?
It would be really helpful if there was an option either in the “Export” command or via any API (rhinoscript, RhinoCommon) to export selected objects to DWG via a specific Export Scheme (saved in a...
View ArticleIterating through groups of objects
I wrote a script that is working on a single selected group of curves. It’s for exporting nested sheets to dxf for CNC use. It copies the group, moves it to the origin, rotates, exports and then...
View ArticlePython, Select blocks that contain elements in a specific layer
Hello Everyone and @pascal . I’m trying to make a Python Script called “Kill Layer” the intent is to select a layer and delete all of it’s contents and then delete the layer itself. my biggest hurdle...
View ArticleHow to cancel UVEditor
Hi all, I finish the UVditor work, I know i can cancel or apply by manual method to press the cancel bottom. But I want to edit a python or script , I try to many script command ( Enter/cancel…)...
View ArticleHow to create a lightweight HUD to display information in the 3d viewport
I’m trying to write a script that displays information about the objects directly in the viewport. Is there a lightweight way to create such a Heads-Up-Display? Listing information in ListBox/Eto...
View ArticleHow to replicate EnableClippingPlane command in a script?
I can’t figure out how EnableClippingPlane and DisableClipping can be access from rhinoscript or RhinoCommon. I’ve see that there has been a new method provided in Rhino 6, but without an example I...
View ArticleGet customized macros or keyboard shortcuts programmatically
I try to pull my cunstomizations with a script ( s. the code below), but this returns only the default settings. Is it even possible? For aliases this is easily done with rs.AliasNames() I tend to...
View ArticleRhinoscriptsyntax.GetRectangle() is broken
Here is the Help for rs.GetRectangle(): So, supplying mode=0 as the first argument (or leaving it out) should enable “All modes”. However, there are no command line options offered (as the Rhino...
View ArticleGet name/id of the currently selected layer?
Is there any way to get name or id of the currently selected layer via RhinoCommon or rhinoscriptsyntax? 5 posts - 3 participants Read full topic
View ArticleETO forms and list box
Hi if I add a list box to an ETO form I can populate the list box with pre defined text but I would like to add a list box and populate it with the Layers of the open Rhino file. Can anyone please...
View ArticleFind larger surface in a brep
Hi again, my apologize in advance for the tons of quest that I will publish but I’m learning and I came from python and vb.net =D I would need to find the largest surface of a brep, to define if the...
View ArticleEto Forms, Select object without closing the form
Hello, I am working on an ETO form which supposed to chose objects but currently after closing the form I am able to chose objects. How can I make it enable to do it without closing the form?...
View ArticleMake2D through Vectorize
Hi all, I need quite often to extract a silhouette of some parts to be drafted in production drawings. Rhino has got already Make2D or Silhouette but if the source surface is not watertight output...
View ArticleGet and set the object-level UVW texture repeat values in Python
As the title says…how would I do this? 10 posts - 3 participants Read full topic
View ArticleArray block along a 3D curve without rotation on Z axis only
I’m using “arraycrv” command and with road-like and freeform options but no luck, I’m actually trying to array a street lamp block along a mountain road, the issue is that when there is a bend in the...
View ArticleHow to get detail view extents - left bottom and top right corners
I’m trying to run Make2D for each detail view on a Layout page and I figured that -SelCrossing can be used to select all visible elements (I couldn’t get SelVisible to work), but I don’t know how to...
View ArticleCoding a Rice Field
i was wondering if there was a way to code something like these rice fields in RhinoPython: i would like to base a project for uni around this, we are mainly learning parametric design and i want a...
View ArticleIs it possible to close BlockEdit with a command/script?
It would be great if there was a command or some Python API method to close Block Editor, effectively clicking this “OK” button: 1 post - 1 participant Read full topic
View Article