Hide Table of Contents
AddFeatureMgrView3 Method (IModelDoc2)

Adds the specified tab to the FeatureManager design tree view.

.NET Syntax

Visual Basic (Declaration) 
Function AddFeatureMgrView3( _
   ByRef Bitmap As System.Integer, _
   ByRef AppView As System.Integer, _
   ByVal ToolTip As System.String, _
   ByVal WhichPane As System.Integer _
) As System.Boolean
Visual Basic (Usage) 
Dim instance As IModelDoc2
Dim Bitmap As System.Integer
Dim AppView As System.Integer
Dim ToolTip As System.String
Dim WhichPane As System.Integer
Dim value As System.Boolean
value = instance.AddFeatureMgrView3(Bitmap, AppView, ToolTip, WhichPane)
System.bool AddFeatureMgrView3( 
   ref System.int Bitmap,
   ref System.int AppView,
   System.string ToolTip,
   System.int WhichPane
System.bool AddFeatureMgrView3( 
&   System.int% Bitmap,
&   System.int% AppView,
&   System.String^ ToolTip,
&   System.int WhichPane



Pointer to the bitmap that you want to use for the FeatureManager design tree tab; the bitmap should be no larger than 16x18; this standard pointer is created by performing a New on Cbitmap


Pointer to an existing view that you want to use as your FeatureManager design tree view. If you do not have an existing view, then use IModelViewMgr::CreateFeatureMgrView2, which returns a view handle


ToolTip string


Pane in which to add the view as defined in swFeatMgrPane_e

Return Value

True if the FeatureManager design tree view tab is added successfully, false if not


This method is not valid in the context of the Microsoft .NET Framework; it is only valid for old-style add-ins, which are now obsolete. Instead, use IModelViewManager::CreateFeatureMgrControl3, which allows you to provide the ProgID or CLSID of an ActiveX control to use in the new tab for the FeatureManager design tree.

This method is identical to the earlier version, IModelDoc2::AddFeatureMgrView2, except that this method provides the ability to place the new tab on either the top or bottom pane. The pane may or may not be visible. However, the tab is added to the specified pane. Only the values swFeatMgrPaneTop and swFeatMgrPaneBottom from swFeatMgrPane_e should be used as inputs in the whichPane argument.


Under certain conditions, for example while the Surface, Extend command is active in the user interface, SOLIDWORKS locks the bottom pane and does not allow the activation of any other tab. If your application needs the ability to activate your new tab at all times, consider adding it either to the top pane or to both panes. If you add it to the top pane only, it may not be apparent to the user until the top pane is made visible.


If you have an existing CView, this method adds that view as a new FeatureManager design tree view. This method also provides a parameter for adding a tab, which the user clicks to activate your view.


The FeatureManager design tree view added to this document is not persistent. In other words, the FeatureManager design tree view is not stored with this document and must be recreated upon reloading the document.


This method does not receive IFeatMgrView::ActivateNotify and IFeatMgrView::DeactivateNotify events.


This view is generated by you and can be drawn into as you desire. However, because you generated this view, you are responsible for deleting it. See IModelDoc2::DeleteFeatureMgrView and IModelDocExtension::DeleteFeatureMgrViewx64 for details on how to delete your Feature Manager view.



See Also


SOLIDWORKS 2001Plus FCS, Revision Number 10.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

Subject:   Feedback on Help Topics
Page:   AddFeatureMgrView3 Method (IModelDoc2)
*   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:


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

Web Help Content Version: API Help (English only) 2015 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.