@gccdragoonkain wrote:
Okay this one is slightly different.
I’m almost thereAbove, I had to manually call PointsOn command on the cube to get the points to display. How do I do this via programmatic plugin (C++) code?
Posts: 1
Participants: 1
@gccdragoonkain wrote:
Okay this one is slightly different.
I’m almost thereAbove, I had to manually call PointsOn command on the cube to get the points to display. How do I do this via programmatic plugin (C++) code?
Posts: 1
Participants: 1
@tsiddikee wrote:
It is bit off topic.
I want to use Rhino3dIO in WPF.
In RhinoCommon plugin I have mesh simulation with thousands of polygon, points and Lines.
I want to generate same geometry in WPF. So guess I need to use Rhino3dmIO.
and System.Windows.Media.Media3D;Please give me some basic idea, how I can tie them up.
I need to create a communication between Rhino3dmIO geometry class and System.Windows.Media.Media3D . Should I use System.ICloneable, the way HelixToolKit inplemented for the Mesh reading as attached Mesh3D.cs . I guess I need to read back Rhino3dmIO mesh to System.Windows.Media.Media3D and then read in WPF.If I am wrong then please give me some idea, how I can make the communication between two.
.Mesh3D.cs (17.4 KB)
Posts: 1
Participants: 1
@Manuel wrote:
Hi,
I have a huge collection of lines in Rhino forming a network. I would like to update their start and end points based on a list of new coordinates for their start and end points. So far I am deleting all line objects and creating new ones with the new coordinates given. All other attributes such as object name and colour should remain the same. However this is rather slow. How can I avoid creating new line objects but only updating their start and end points.
I am using RhinoCommon and python.
Thanks
M
Posts: 9
Participants: 2
@Dmitriy wrote:
Hi,
Basically question is given in the header.
Looking for the same functionality to activate control points and move them but for mesh which is not existing in the Rhino document.Thanks,
Dmitriy
Posts: 1
Participants: 1
@stjackin wrote:
Hi guys. I have a pointcloud with thousands points. Now I want to get some points in a regoin such as a boundary object. I do not want to do it by hand, because I have to do it thousand times. Is there any method I can use in rhinocommon or rhino.net ? I have check the objectTable object, it has a boundary property for all objects. I wonder If it is possible to get object by specify a certain boundary object, then we can get all objects in the boundary.
Any response is appricated.
Posts: 6
Participants: 2
@Willem wrote:
Hi,
Not specific Rhino related maybe, but I run into an issue where a folder and/or file remain locked after running a series of python scripts.
I’m using the Logging module to write a logfile during the runtime of the script.
However if I run the script again, I cannot delete the folder the logfile is in.
Even in Windows explorer I’m not allowed to delete the log file.What is strange is that it appears that ‘after some time’ I am able to delete the file, as if Windows is holding it locked for some time before releasing it.
Can someone point me in the right direction how to tackle this? it’s unfamiliar terrain for me. How would I find the cause and proper solution to force windows to release/delete a folder?
Thanks
-Willem
Posts: 2
Participants: 2
@t.egger wrote:
Hello, i use the following code to build surfaces in Rhino3 with VB6. Now i try to build this in vb.net to Rhino 5. Functions like “draw i line” to Rhino 5 works very well. But in vb.net don`t exist the funktion “array” and i am not experienced enough to translate this in vb.net. Can you help me???
Dim Rhino As Object Dim RhinoScript As Object Dim arrCount(1), arrPoints(), arrClosed(1), arrDegree(1), nCount, flächY, flächX Set Rhino = CreateObject("Rhino3.Application") Set RhinoScript = Rhino.GetScriptObject() arrCount(0) = 10 arrCount(1) = 10 arrDegree(0) = 1 arrDegree(1) = 1 arrClosed(0) = vbFalse arrClosed(1) = vbFalse nCount = 0 For flächY = 0 To arrCount(0) - 1 For flächX = 0 To arrCount(1) - 1 arrPoints(nCount) = Array(flächX, flächY, 2) nCount = nCount + 1 Next flächX Next flächY RhinoScript.AddSrfPtGrid arrCount, arrPoints Set RhinoScript = Nothing Set Rhino = Nothing
Posts: 1
Participants: 1
@Willem wrote:
Hi,
I’m running into an issue where Curve.DuplicateSegments() returns an empty array
Is this expected? I expected single segment curve to return that single segment.
From the docs it’s not obvious an empty array can be returned:http://developer.rhino3d.com/api/RhinoCommon/html/M_Rhino_Geometry_Curve_DuplicateSegments.htm
Thanks
-Willem
Posts: 1
Participants: 1
@Dmitriy wrote:
Hi, I got this error when add UserData to the attributes of the object.
System.NullReferenceException: Object reference not set to an instance of an object. at Rhino.DocObjects.Custom.UserData.NonConstPointer(Boolean createIfMissing) at Rhino.DocObjects.Custom.UserDataList.Add(UserData userdata)
I am following this sample
MyUserData
class is inherited fromDocObjects.Custom.UserData
I am adding user data directly to the attributes of RhinoObject:
robj.Attributes.UserData.Add(MyUserData)
Where can be the problem?
Thanks,
Dmitriy
Posts: 1
Participants: 1
@D-W wrote:
I need to run own conduit as soon as only current doc viewport is ready for viewing stuff - is there any internal event which i can use for that ?? EndOpenDocumentInitialiViewUpdate is almost what i need it only don’t apply when user pick no template and new document handler dont solve viewport readiness for custom conduit handling cause theres still no viewport when this handler fires off. Any ideas?
Besides when i enable conduit at EndOpenDocumentInitialiViewUpdate no other conduit shows up later so something is clearly wrong here. Maybe @nathanletwory you know where i should hook with my custom conduit ?
Posts: 3
Participants: 2
@Willem wrote:
Hi,
Is there a straightforward way to find all available Export Schemes for dxf/dwg?
It seems no longer stored in the registry, or I’m searching in the wrong place.Thanks
-Willem
Posts: 1
Participants: 1
@gabriele.ditrapani wrote:
Hi all,
I am new in programming and I would like to make this procedure automatic.
My goal is to write a script to export a group of surfaces (in iges) with their layer names and colour.
Do anyone have any suggestion please?Cheers
Gabriele
Posts: 1
Participants: 1
@Dmitriy wrote:
Hi,
Two questions:
- Is it possible to register Event Watcher for specific GUID?
- Is it possible to recognize movement of the control point (for curve, surface or mesh) and not general modification (translation, rotation and etc)
Thanks,
Dmitriy
Posts: 1
Participants: 1
@jake1 wrote:
Hello All,
I am trying to make a window in rhino that is dockable.
So far, I can only get floating windows.form to show up.I can’t seem to find a good C# tutorial.
If you have any suggestions, please let me know.Thanks,
Jake
Posts: 1
Participants: 1
@D-W wrote:
Controls in v5 don’t look the same and whole UI is weirdly changed margins are off and things are in general smaller and not in position. Is there any remedy for that? @dale @nathanletwory
Posts: 3
Participants: 3
@rnjthmhnkl wrote:
I am trying to track changes made to Rhino objects by the user. Does Rhino employ transactions or anything similar when the file is edited ? Is there anyway I can track changes or retrieve the history of changes ?
The best I found so far are UndoRecords. I see the methods to begin and end undo records etc. but how can I access these records to see what has been done?
Posts: 1
Participants: 1
@PohNee wrote:
Hi,
We have a working Rhino plugin that is developed using C#. It was targeted to run on Rhino 5 (32-bit).
Everything works fine and right now, we are working on migrating the plugin to run on Rhino 5 (64-bit).
One of the issue that we encounter is that a call to python script via Rhino.Runtime.PythonCompiledCode is throwing exception: “Could not add reference to assembly mtrand”.After some googling, I found a post mentioning that numpy/scipy for IronPython will only run in 32bit applications on Windows (https://stevebaer.wordpress.com/2011/06/27/numpy-and-scipy-in-rhinopython/). This post dated back to 2011.
Does anyone know if this is still true? and if yes, is there any workaround?
Thank you,
Poh Nee
Posts: 2
Participants: 2
@kitjmv wrote:
I would like to make simple panels with standard checkbox, button, etc …
I know PHP, NodeJs and i write little in C, but I do not know the .Net framework and i just started with python.
I think the best choice for me is Python and Eto but I have questions about it with Rhino 6
RhPython and GhPython can now write plugins ?(Yes, I found)- Can they access all Rh and Gh components in .Net SDK ?
- Is it recommended to use Eto than Winforms?
- Do you advise me to learn .NET?
To understand what I need to access is an example:
My panel must be a wrapper around commands.
Then, depending on the options chosen, execute the appropriate command or the function of the SDK
Posts: 1
Participants: 1
@kitjmv wrote:
Hello
I Have test a custom Eto Panel inside a global class
public class EtoHelper { // ... static methods ... [System.Runtime.InteropServices.Guid("9A5396ED-C99B-42C6-8712-F288AF470947")] public class RhPanel : Panel, System.Windows.Forms.IWin32Window { public RhPanel() { /*....*/ } } }
and I have an error: “need a constructor with uint, Rhino or no parameters”
but if I remove the static method and change the global class by a namespace all is ok.namespace EtoHelper { [System.Runtime.InteropServices.Guid("9A5396ED-C99B-42C6-8712-F288AF470947")] public class RhPanel : Panel, System.Windows.Forms.IWin32Window { public RhPanel() { /*....*/ } } }
Is this normal?
my code take the template of @dale : https://github.com/dalefugier/SampleCsEto/blob/master/Views/SampleCsEtoPanel.cs
Posts: 1
Participants: 1