However, according to what I’ve read the. In C++, and makes the object the garbage collector’s responsibility. The method public static GeometryBase CreateFromNativePointer(įrom the class in Rhincommon takes a native pointer, generated by something like ON_Mesh* m = new ON_Mesh(.) Any help or suggestions would be greatly appreciated! I prefer not to use external plugins and am currently working with Rhino 7. If _key("myconduit"):Ĭonduit = scriptcontext.sticky Rectangle = (x_TR - self.side_dim, y_TR - self.side_dim*i, x_TR, (y_TR - self.side_dim*i) - self.side_dim * i)Ĭolor = (lors,lors,lors)Į.Display.Draw2dRectangle(rectangle,color,1,color) Here’s the code I’ve written so far, but unfortunately, it’s not functioning as expected, and I’m struggling to identify the issue: import RhinoĬlass CustomConduit(圜onduit):ĭef _init_(self, colors =, scale_factor = 1.0, text_title_dim = 10, text_dim = 8, side_dim = 10, texts = ,title = "U Legend", subtitle = "Utilisation factor ", subsubtitle = "GSA Case ", case = "(A1)"):Ĭorner = 2d(bounds.Top, bounds.Right) I’m a newcomer to RhinoAPI and currently working on a Python script within Rhino (to be used in Grasshopper) for generating a legend similar to the image below: net 7.īelow both a benchmark graph and a marketing graph for those of you with no mathematical scruples net 4.8 - this looks to be due to the tuneup and improvements in Curve Intersection checking? but it is more than made up for by the move to. I do spot a fractional slow down in the move to Rhino 8 under. Most of the runtime is from our GCode simulation engine which is raw c#. The headline is that we are seeing a 15-20% performance improvement on file preparation times just by using. net 7 nuget packages for RhinoCommon We still need to test deployment via Yak but that’ll be a task for the new year. There were a couple of roadblocks but solutions exist, I look forward to formal. net upgrade assistant is good but by no means perfect. It took around 3 days to work through our 23 C# projects - the. ZebraCut transforms geometry into gCode for our industrial knife/laser cutting machines. We have got the core of our ZebraCut CAM Plugin upgraded to. net 7 upgrade I thought I’d share our experiance. Print (str(Cap) + ' planar surfaces were created.')įor those developers on the fence about commiting to the. If (objcount > 1): rs.DeleteObject (strNewCurve) LineR = rs.AddLine(arrStartPoint, arrEndPoint)ĪrrJoinedCurves = rs.JoinCurves(arrObjectsToJoin) If rs.IsCurvePlanar(strNewCurve) and not(rs.IsLine(strNewCurve)):ĪrrStartPoint = rs.CurveStartPoint(strNewCurve)ĪrrEndPoint = rs.CurveEndPoint(strNewCurve) If only one closed polyline or polycurve is selected, then I can't get the guid and future steps fail. # Create a joined polyline from the selected curves Go.SetCommandPrompt(“Select planar curves and edges to build surface.”) How to fix? See the line where I comment ‘Problem is here’. Single closed planar polyline.3dm (33.8 KB) If there is more than one object selected, then when I use rs.joincurves, the output is GUID, but I can’t use rs.JoinCurves on a single item without getting an error It works great, unless I try to use it on what seems like the simplest case - a single closed planar polyline (or polycurve.) This is because I’m having trouble getting the GUID if there’s only one object selected by the user. It even works on multiple open or closed shapes at once. The scirpt creates a planar surface from either open or closed shapes, including surface edges and curves. I have this script that I’ve hacked together.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |