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 Object, _
   ByVal RelatedFeatures As Object, _
   ByVal AutoSizeDiameter As Boolean, _
   ByVal LpMateReference As Entity, _
   ByVal BoundingValues As Object _
) As Boolean
Visual Basic (Usage) 
Dim instance As IAssemblyDoc
Dim ComponentIn As Component2
Dim RelatedComponents As Object
Dim RelatedFeatures As Object
Dim AutoSizeDiameter As Boolean
Dim LpMateReference As Entity
Dim BoundingValues As Object
Dim value As Boolean
 
value = instance.CreateSmartComponent(ComponentIn, RelatedComponents, RelatedFeatures, AutoSizeDiameter, LpMateReference, BoundingValues)
C# 
bool CreateSmartComponent( 
   Component2 ComponentIn,
   object RelatedComponents,
   object RelatedFeatures,
   bool AutoSizeDiameter,
   Entity LpMateReference,
   object BoundingValues
)
C++/CLI 
bool CreateSmartComponent( 
&   Component2^ ComponentIn,
&   Object^ RelatedComponents,
&   Object^ RelatedFeatures,
&   bool AutoSizeDiameter,
&   Entity^ LpMateReference,
&   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) 2012 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.