Hide Table of Contents
CreateSmartComponent Method (IAssemblyDoc)

Creates a Smart Component.

.NET Syntax

Visual Basic (Declaration) 
Function CreateSmartComponent( _
   ByVal ComponentIn As Component2, _
   ByVal RelatedComponents As System.Object, _
   ByVal RelatedFeatures As System.Object, _
   ByVal AutoSizeDiameter As System.Boolean, _
   ByVal LpMateReference As Entity, _
   ByVal BoundingValues As System.Object _
) As System.Boolean
Visual Basic (Usage) 
Dim instance As IAssemblyDoc
Dim ComponentIn As Component2
Dim RelatedComponents As System.Object
Dim RelatedFeatures As System.Object
Dim AutoSizeDiameter As System.Boolean
Dim LpMateReference As Entity
Dim BoundingValues As System.Object
Dim value As System.Boolean
 
value = instance.CreateSmartComponent(ComponentIn, RelatedComponents, RelatedFeatures, AutoSizeDiameter, LpMateReference, BoundingValues)
C# 
System.bool CreateSmartComponent( 
   Component2 ComponentIn,
   System.object RelatedComponents,
   System.object RelatedFeatures,
   System.bool AutoSizeDiameter,
   Entity LpMateReference,
   System.object BoundingValues
)
C++/CLI 
System.bool CreateSmartComponent( 
&   Component2^ ComponentIn,
&   System.Object^ RelatedComponents,
&   System.Object^ RelatedFeatures,
&   System.bool AutoSizeDiameter,
&   Entity^ LpMateReference,
&   System.Object^ BoundingValues
) 

Parameters

ComponentIn
IComponent2 to make smart
RelatedComponents
Array of the components to associate with the Smart Component
RelatedFeatures
Array of the features contained in the components to associate with the Smart Component
AutoSizeDiameter
True to auto-size a cylindrical Smart Component that has multiple configurations, false to not
LpMateReference
Concentric mate reference between a cylindrical face or axis and a feature
BoundingValues
Array of doubles specifying minimum and maximum diameter values with which each configuration is compatible

Return Value

True if the Smart Component is created, false if not

Example

Remarks

For example, a component with these configurations:

  • TenInchDiameter

  • ThirteenInchDiameter

  • TwentyInchDiameter

might have a BoundingValues array of [9,11,12,14,19,21], which specifies a +1 tolerance over each configuration parameter.

 

See Also

Availability

SOLIDWORKS 2007 FCS, Revision Number 15


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:   CreateSmartComponent Method (IAssemblyDoc)
*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) 2017 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.