ObjectPrintWidth slow but safe
3 posts Mitch Heynick (Helvetosaur) wrote: I have the following (python or equivalent in vb rhinoscript, works about the same): import rhinoscriptsyntax as rs objs = rs.ObjectsByType(4) for obj in...
View ArticleDistinguish two almost-identical objects
2 posts Mitch Heynick (Helvetosaur) wrote: There are three very simple objects in the attached file, two of which are copies and one of which is a mirror image of each other. Assuming there could be...
View ArticleHidden pointcloudpoints visible again
1 post powerpp wrote: Hi, I am hiding some points in a pointCloud using a pointcloud enumerator.Thenthe pointcloud is updated using scriptcontext.doc.Objects.Replace(old_pcloud, new_pcloudj)This works...
View ArticleWorking with .SAT file format
3 posts Kaveh_Allahdin wrote: Hi everyoneI was wondering how it is possible to import and work with.sat(acis) file formats and work with them in combination with rhinocommon.I 've got some .SAT file...
View ArticleVBscript modify multiline dottext
2 posts NicodeM (NdeM) wrote: I try to get in vbscript a multi line text string out of the text dot is that possible? I found out that is was possible to put them in. See row below,...
View ArticlePython in grasshopper_how to add point from python to grasshopper
2 posts elena (Liu_Xiang) wrote: I have a python script to generate point matrix. But when I have python in grasshopper . it not return physical point in rhino. How could I import rhinoscriptsyntax as...
View ArticleHow to set import options for stl in vbscript
4 posts miguel (miguelv) wrote: Hello, I am trying to import stl files in vbScript using Rhino.Command "_Import c:\filename.stl"The problem is that a window "STL Import Options" pops up. How can I...
View ArticleExit rhino from script/command file
2 posts Enrique (edemeer) wrote: Hi! I have a script in Rhinoscript for automating/batching some computations in rhino remotely. I use in my script Rhino.DocumentModified "False" to avoid the prompt...
View ArticleExporting dxfs by script issue
1 post James Carruthers (JimCarruthers) wrote: I've got a long-time-used script that exports curves to DXF, I believe though a "Rhino.Command" statement. The last time I ran it I suddenly started...
View ArticleCreate list for user to choose from
1 post ethank wrote: I'd like to make a list of choices, say between 10 cars, and present that to the user in the rhino command area to choose from so that my python script can then use that user...
View ArticleInteger Division
5 posts hstehling (hanno) wrote: Hi, I just stumbled over some unexpected behaviour and thought I'd share it here. Background: The standard division operator / behaves differently in python 2 and 3....
View ArticlePrevSelectedObjects not working?
11 posts Spanker Leach (Charles) wrote: Hi, in a script I want to get the object that was used by dimangle.But it doesn't return the object:...
View ArticleLeader Text Function
1 post djnelson75 wrote: So I think the LeaderText() is broken in python. It won't set the text to a new value.In trying to look under the hood. It looks function try's to set the geom.TextFormula if...
View ArticleHow to set width of listbox
2 posts Bill Knighton (bill_knighton) wrote: Is there a way to set the width of a dialog box like rhinoscriptsyntax.ListBox ? I am using python. I've tried giving it a long title and making the first...
View ArticleHow to change the degree of the curve in rhino python
5 posts elena (Liu_Xiang) wrote: I trying to use. But when I change the degree to 30 or 40. the curve did't change. rs.AddCurve( ( Pt1,Pt2,Pt3 ), degree) Any idea how to change the degree of the curve...
View ArticleHow to understand this error and debug
2 posts elena (Liu_Xiang) wrote: If i meet the following error in rhino python.How should I understand it , how to debug and check it? Runtime error (KeyNotFoundException): KeyError
View ArticlePython script to scale, copy and move to created layer(s)
3 posts Randy Gregory (rhinorudi) wrote: I need help with a script. I have looked at the sample script "CopyObjectsToLayer'. I have a script that copies & scales the object. I can create the...
View Article"MergeSrf" RhinoCommon Equivalent
2 posts Anders Holden Deleuran (AndersDeleuran) wrote: Is there a RhinoCommon equivalent to the Rhino command "MergeSrf"? I have dug around and found brep.MergeCoplanarFaces(). However this seems to...
View ArticlePython: Flatten an irregular list of list of list
6 posts Miguel Rus (Miguel) wrote: HI, Is there any quick/easy way to flatten a list in python? I've searched but so far all the solutions are messy or use an external module. Any ideas? -M
View ArticleWish Python rs.Import( fliename) rs.Insert(filename,options)
1 post vittorio wrote: Hi SteveCan you add a new method rs.Insert(.....) rs.Import(......) ?Ciao Vittorio
View Article