Table of Contents

Class MathUtilitiesExtensions

Namespace
Hymma.Solidworks.Extensions
Assembly
Hymma.Solidworks.Extensions.dll

extensions for SolidWorks.Interop.sldworks.MathUtility

public static class MathUtilitiesExtensions
Inheritance
MathUtilitiesExtensions
Inherited Members

Methods

ConvertLengthUnit(MathUtility, double, swLengthUnit_e)

changes the unit of length from default in solidworks (meter) to the one specified

public static double ConvertLengthUnit(this MathUtility mathUtility, double length, swLengthUnit_e newUnit)

Parameters

mathUtility MathUtility
length double

the length to change the unit of

newUnit swLengthUnit_e

the unit required to change the length to SolidWorks.Interop.swconst.swLengthUnit_e

<pre><code class="lang-csharp">ModelDoc2.LengthUnit;</code></pre>
</example>

Returns

double

length in new new unit