Friday 6 March 2015

Making of SE Equation Curve Part1

Competing software SolidWorks has a Equation Driven Curve command. Making such a facility available in Solid Edge would be both challenging and fun.

02

This Solid Edge Maker Faire tutorial takes you through the complete process of coding this program. Other making tutorials in this series can be accessed here.

01_thumb2_thumb_thumb This Solid Edge Equation Curve program and its source code can be downloaded at the end of this tutorial.

This tutorial uses Visual Studio 2010, .Net 4.0.

Start a VB.Net 'Forms Application' and name it EquationCurve. Make sure the check box settings are as shown below (3):

04

From the menu, select Project >  Add Reference... and from the dialog that appears, take the COM tab. Add references to Solid Edge Framework, Solid Edge FrameworkSupport, Solid Edge constants, Solid Edge Part and the Solid Edge Draft libraries.

You can see these added under References in the Solution Explorer:

01

Add another reference to the info.lundin.math.DLL using the Browse tab of the Add Reference dialog. This DLL is an expression parser and helps evaluate the equation for which the curve is drawn This library belongs to Patrik Lundin and can be downloaded from: http://www.lundin.info/mathparser

Create a Form as shown below:

02

Add the following Imports statements at the top of the code window. Each of these will be discussed as and when referenced in the code later.

03

Continued to Part 2...


Index of all Solid Edge Tips, Tutorials and Videos...


No comments:

Post a Comment