Hide Table of Contents
IFindMinimumRadius Method (ICurve)

Finds the minimum radius of curvature of the selected curve and its position and u-v parameters.

.NET Syntax

Visual Basic (Declaration) 
Function IFindMinimumRadius( _
   ByRef Bound As System.Double, _
   ByRef NumOfRadius As System.Integer, _
   ByRef Radius As System.Object, _
   ByRef Location As System.Object, _
   ByRef Parameter As System.Object _
) As System.Boolean
Visual Basic (Usage) 
Dim instance As ICurve
Dim Bound As System.Double
Dim NumOfRadius As System.Integer
Dim Radius As System.Object
Dim Location As System.Object
Dim Parameter As System.Object
Dim value As System.Boolean
 
value = instance.IFindMinimumRadius(Bound, NumOfRadius, Radius, Location, Parameter)
C# 
System.bool IFindMinimumRadius( 
   ref System.double Bound,
   out System.int NumOfRadius,
   out System.object Radius,
   out System.object Location,
   out System.object Parameter
)
C++/CLI 
System.bool IFindMinimumRadius( 
&   System.double% Bound,
&   [Out] System.int NumOfRadius,
&   [Out] System.Object^ Radius,
&   [Out] System.Object^ Location,
&   [Out] System.Object^ Parameter
) 

Parameters

Bound
Array containing the start and end boundary parameters (see Remarks)
NumOfRadius
Number of radius returned; can be 0 or 1
Radius
Minimum radius of curvature (see Remarks)
Location
Position where minimum radius curvature occurred  (see Remarks)
Parameter
Curve parameter  (see Remarks)

Return Value

True if operation succeeds, false if it fails

Example

Unmanaged C++ COM:

 

/////////////////////////////////////////////////////////////////////////////

// IMinRadius implementation

STDMETHODIMP CMinRadius::StartNotepad()

{

// TODO: Add your implementation code here

CComPtr<IModelDoc> iModelDoc2;

m_iSldWorks->get_IActiveDoc(&iModelDoc2);

 

CComPtr<ISelectionMgr> swSelMgr;

iModelDoc2->get_ISelectionManager(&swSelMgr);

struct IDispatch* pDispSelection;

CComPtr<IEdge> swEdge;

swSelMgr->GetSelectedObject6(1,-1,&pDispSelection);

pDispSelection->QueryInterface(__uuidof(IEdge),reinterpret_cast<void**>(&swEdge));

pDispSelection->Release();

 

double boundArr[2];

CComPtr<ICurve> swCurve;

swEdge->IGetCurve(&swCurve);

 

VARIANT_BOOL isClose,isPeriodic,testRetVal;

swCurve->GetEndParams(&boundArr[0],&boundArr[1],&isClose,&isPeriodic,&testRetVal);

 

long numOfRadius(0);

VARIANT radius,Location,UVParameter;

VARIANT_BOOL status(FALSE);

swCurve->IFindMinimumRadius(boundArr,&numOfRadius,&radius,&Location,&UVParameter,&status);

 

SafeDoubleArray radiusSA(radius);

double test1 = radiusSA[0];

 

SafeDISPATCHArray locationSA(Location);

 

CComPtr<IMathPoint> swMathPoint1;

locationSA[0]->QueryInterface(__uuidof(IMathPoint),reinterpret_cast<void**>(&swMathPoint1));

 

double locationArra1[3];

 

swMathPoint1->get_IArrayData(locationArra1);

 

SafeDoubleArray UVParameterSA(UVParameter);

 

double uvpara1 = UVParameterSA[0];

return S_OK;

}

Remarks

The search is confined to the portion of the selected curve lying inside of Bound.

COM returns these data types for these parameters:

  • Radius: VARIANT of SafeDoubleArray
  • Location: VARIANT of SafeDispatchArray of IMathpoint
  • Parameter: VARIANT of SafeDoubleArray
 

See Also

Availability

SOLIDWORKS 2009 FCS, Revision Number 17.0


Provide feedback on this topic

SOLIDWORKS welcomes your feedback concerning the presentation, accuracy, and thoroughness of the documentation. Use the form below to send your comments and suggestions about this topic directly to our documentation team. The documentation team cannot answer technical support questions. Click here for information about technical support.

* Required

 
*Email:  
Subject:   Feedback on Help Topics
Page:   IFindMinimumRadius Method (ICurve)
*Comment:  
*   I acknowledge I have read and I hereby accept the privacy policy under which my Personal Data will be used by Dassault Systèmes

Print Topic

Select the scope of content to print:

x

We have detected you are using a browser version older than Internet Explorer 7. For optimized display, we suggest upgrading your browser to Internet Explorer 7 or newer.

 Never show this message again
x

Web Help Content Version: API Help (English only) 2019 SP05

To disable Web help from within SOLIDWORKS and use local help instead, click Help > Use SOLIDWORKS Web Help.

To report problems encountered with the Web help interface and search, contact your local support representative. To provide feedback on individual help topics, use the “Feedback on this topic” link on the individual topic page.