RSS

Category Archives: CAX

CAD,CAM,CAE…

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

 

Message: Unable to load DLL ‘libpart’: The specified procedure could not be found; Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.

In a recent project, I was required to develop a .Net assembly DLL and use it together with COMSOL with Matlab, where Matlab serves as the hub, and the .Net Assembly provides some services, Matlab consumes it, and COMSOL finally perform FEA and output the result:

MatlabNXComsol_B

Read the rest of this entry »

 
2 Comments

Posted by on November 15, 2010 in CAE, Dotnet/C#

 

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#

 

Using Hoops in C# (I) : HelloHoops

Hoops is a good 3D Visualization toolkit with OOP model enabled. In this tutorial, Hoops will be used in combination of .net. C# language will be used to demostrate the typical usage.

  1. Createa a new winform project, name it HelloHoops
  2. In the Hoops installation folder, search the file “HPanel.cs”, and copy it in explorer, and in VisualStudio.net, paste it.

    HelloHoops3

  3. Read the rest of this entry »

 
Leave a comment

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

 

SolidWorks Addin Wizard for VisualStudio 2005/08/10

When I try to develop SolidWorks C# Addin in the latest VisualStudio 2010, I found the addin wizard does not show up in VS2010.

After coping the SWCSharpAddin.zip to VisualStudio 2010 template folder, it does show up. Em, looks great.

SWAddin_F

Read the rest of this entry »

 
6 Comments

Posted by on September 24, 2010 in CAD

 

How to get SolidWork exe path programmatically

For some reasons, I need to get the path where SolidWorks are installed. Note that:

  • Uses may not always installl SolidWorks to the default locations.
  • Multiple SolidWorks versions may coexist;

In order to do this programmatically, one can refer to the registry for details.

SolidWorksPath_A

SolidWorksPath_B 

Read the rest of this entry »

 
1 Comment

Posted by on September 22, 2010 in CAD, Dotnet/C#

 

How to model irregular porous artifacts with SolidWorks?

See below video.

 
Leave a comment

Posted by on August 28, 2010 in CAD

 

How to use Autodesk Student to use AutoCAD for free

  1. Visit Autodesk Student Web and create an account:

    Autodesk_edu_A

Read the rest of this entry »

 
Leave a comment

Posted by on August 21, 2010 in CAD

 

Extending Unigraphics NX using C# (IV) : Recording journals

The concept of journaling is similar as the recording macros in SolidWorks. Before clicking the record journal button on the Jorunal Toolbar:

UG_Record_Macro_3

Do the following:

UG_Record_Macro  UG_Record_Macro_2

Then start recording journals, click the desired buttons or menu items to perform the expected actions, and then stop recording, edit the journal:

and you can get the scripts easily then:

UG_Record_Macro_4

Enjoy coding!

 
1 Comment

Posted by on May 18, 2010 in CAD, Dotnet/C#

 

COMSOL Multiphysics Programming Note (I)


fem.equ—contains information about equations on subdomains

fem.bnd—contains information belonging to boundaries

fem.edg—in 3D, this field is related to edges (curves)

fem.pnt—in 2D and 3D, this field corresponds to vertices (points)

fem.ode—specifies ODEs and other scalar equations independent of position


Read the rest of this entry »

 
Leave a comment

Posted by on April 15, 2010 in CAE, Maths

 
 
Follow

Get every new post delivered to your Inbox.