Hide Table of Contents
CreateFeatureMgrControl4 Method (IModelViewManager)

Creates a new FeatureManager design tree view containing the specified ActiveX control with a tab that displays the specified scaleable icon.

.NET Syntax

Visual Basic (Declaration) 
Function CreateFeatureMgrControl4( _
   ByVal BitMapFileNames As System.Object, _
   ByVal Class As System.String, _
   ByVal LicKey As System.String, _
   ByVal ToolTip As System.String, _
   ByVal WhichPane As System.Integer _
) As FeatMgrView
Visual Basic (Usage) 
Dim instance As IModelViewManager
Dim BitMapFileNames As System.Object
Dim Class As System.String
Dim LicKey As System.String
Dim ToolTip As System.String
Dim WhichPane As System.Integer
Dim value As FeatMgrView
 
value = instance.CreateFeatureMgrControl4(BitMapFileNames, Class, LicKey, ToolTip, WhichPane)
C# 
FeatMgrView CreateFeatureMgrControl4( 
   System.object BitMapFileNames,
   System.string Class,
   System.string LicKey,
   System.string ToolTip,
   System.int WhichPane
)
C++/CLI 
FeatMgrView^ CreateFeatureMgrControl4( 
&   System.Object^ BitMapFileNames,
&   System.String^ Class,
&   System.String^ LicKey,
&   System.String^ ToolTip,
&   System.int WhichPane
) 

Parameters

BitMapFileNames

Array of fully qualified paths to three bitmap files, one for each size (small, medium, and large), to be used for the tab icon in different screen resolutions

Class

CLSID or ProgID for the ActiveX control (see Remarks)

LicKey

License key for the ActiveX control; empty string if unknown

ToolTip

Text to display when hovering over the tab icon

WhichPane

Pane where to add the tab as defined in swFeatMgrPane_e (see Remarks)

Return Value

Pointer to the new tab

Example

Remarks

To:

  • Add a tab to the FeatureManager design tree, specify WhichPane with swFeatMgrPane_e.FeatMgrPaneBottom. 
  • Add a tab to a split FeatureManager design tree, specify WhichPane with either swFeatMgrPane_e.swFeatMgrPaneTop or swFeatMgrPane_e.swFeatMgrPaneBottom. See IModelDoc2::FeatureManagerSplitterPosition for details on splitting and positioning the split panel bar in the FeatureManager design tree.
  • Delete the tab created by this method, use IFeatMgrView::DeleteView

Specify Class with either the ProgID or the CLSID of the registered ActiveX control. You can obtain these strings by searching for the registered ActiveX control in the registry editor.

For example, RichEditCtrol.ocx resides in c:\Program files\SOLIDWORKS Corp\SOLIDWORKS\sldUtils. It is registered during the SOLIDWORKS installation. When you search for RichEditCtrl.ocx in the registry, you find ProgID = GTSWRICHEDITCTRL.RichEditCtrlCtrl.1 and CLSID = {7632C33C-A935-48FF-84D9-F0F173EF543D}. Use either the registry's ActiveX ProgID or CLSID to specify Class. The ActiveX control library names displayed in the Object Browser may not be the same as the ActiveX control names in the registry. Do not use the Object Browser to specify Class.

  

See also Keystrokes and Accelerator Keys in ActiveX Modeless Dialogs and PropertyManager Pages.

 

See Also

Availability

SOLIDWORKS 2020 FCS, Revision Number 28.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:   CreateFeatureMgrControl4 Method (IModelViewManager)
*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) 2020 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.