RSS

Category Archives: CAD

Rhino C# Development (III) : Add Winform UI to Rhino


Rhino C# Development (I) : Get Visual Studio Wizard ready
Rhino C# Development (II) : HelloRhino


Now that we are able to talk with Rhino, let’s add our own UI to Rhino. In Rhino 5 with RhinoCommon SDK and Rhino_DotNet, you can easily add .net Winform User Control to Rhino.

image

Read the rest of this entry »

Advertisements
 
4 Comments

Posted by on May 9, 2013 in CAD, Dotnet/C#, Programming

 

Tags: , , , , , , ,

Rhino C# Development (II) : HelloRhino


If you have not got Rhino Visual Studio working, see this post to get it done.

1. In Visual Studio, create a new project, in the opened dialog, type “rhino” in the upper right filter field:

image

Read the rest of this entry »

 
2 Comments

Posted by on May 9, 2013 in CAD, Dotnet/C#, Programming

 

Tags: , , , , , , , , ,

Rhino C# Development (I) : Get Visual Studio Wizard ready


1. Go to http://www.rhino3d.com/new/dev to download the SDK. Unzip the file, and you will see 4 files:

image

Read the rest of this entry »

 
3 Comments

Posted by on May 9, 2013 in CAD, CAX, Dotnet/C#, Programming

 

Tags: , , , ,

Dissecting Solidworks Property Manager Tree Hierarchies with Spy++


Using Spy++, one can easily find the correspondence of the SolidWorks Property Manager Tree’s hierarchies:

image

image

The first button, with caption “ ” is the expand button, and the five tabs correspond to the subsequent 5 windows. The only visible tab is the active tab.

Note the 2nd tab is PropertyManager page and its caption is “uiVisualSketchEditorView_c”. With these dissection, one can then perform some interesting tasks in code.

 
Leave a comment

Posted by on April 1, 2013 in CAD, Programming

 

Create Solidworks addin in Visual Studio 2012


Up to now, Solidworks had released its 2013 sp2.0 version, and its API is updated to v21.2.0.50, but once you installed the API, you will not see the addin wizard appear in Visual Studio 2012.

One tricky way to trouble shoot this is:

  • Create a SolidWorks addin project in Visual Studio 2010
  • Open it the project in VS2012.

    image  image

Done!

 
Leave a comment

Posted by on March 31, 2013 in CAD, Dotnet/C#

 

Install AutoCAD 2011 for Mac OS X on Vmware


Download AutoCAD 2011 for Mac at AutoDesk download center

Open Mac OS in Vmware

The most difficult part is how to transfer the downloaded dmg file in Windows to Mac: I used google storage and uploaded the dmg, and then download it in Mac OS.

AutoCAD_MAC_A0

Install AutoCAD is then easy.

AutoCAD_MAC_A

Read the rest of this entry »

 
Leave a comment

Posted by on December 13, 2010 in CAD

 

UGNX .net API: How to get the parameter range of a curve?


static public void GetCurveParamRange(Tag CurveTag, out double MinPara, out double MaxPara) { UFSession gUfSession = UFSession.GetUFSession(); IntPtr evaluator; double[] pararm_range = new double[2]; gUfSession.Eval.Initialize(CurveTag, out evaluator); gUfSession.Eval.AskLimits(evaluator, pararm_range); MinPara = pararm_range[0]; MaxPara = pararm_range[1]; gUfSession.Eval.Free(evaluator); }

Download Visual Studio 2010 project here.

 
Leave a comment

Posted by on October 27, 2010 in CAD, Dotnet/C#