I am fairly new to rhino sdk and I am unable to figure out a simple step such as how to open an existing .3dm file from harddisk using C# plugin.
Can someone guide me where can I find a sample code or relevant documentation regarding this.
Please let me know if this is not the right forum to seek help on plugins.
Permalink Reply by Dale Fugier on March 13, 2013 at 8:04am Hi Varun,
You can open a .3dm file by scripting Rhino's Open command using Rhino.RhinoApp.RunScript. See the attached sample command for an example.
When opening, importing, saving, or exporting from Rhino, scripting native Rhino commands is only way to go. You see, every file type you want to import or export potentially has a different set if arguments. Thus, it is not possible to write a generic function that will allow you to open/import/save all file types. Thus the requirement for command scripting.
Let me know if this helps.
-- Dale
Permalink Reply by Varun Bhartiya on March 13, 2013 at 8:19am
Permalink Reply by Varun Bhartiya on March 19, 2013 at 12:30am
Permalink Reply by Dale Fugier on March 19, 2013 at 8:23am No, neither Rhino nor RhinoScript is thread safe.
-- Dale
© 2013 Created by McNeel Admin.
