Hide Table of Contents
CreateFeatureMgrView2 Method (IModelViewManager)

Creates a new view (tab) in this FeatureManager design tree.

.NET Syntax

Visual Basic (Declaration) 
Function CreateFeatureMgrView2( _
   ByVal BitMapFile As String, _
   ByVal ToolTip As String, _
   ByVal WhichPane As Integer _
) As FeatMgrView
Visual Basic (Usage) 
Dim instance As IModelViewManager
Dim BitMapFile As String
Dim ToolTip As String
Dim WhichPane As Integer
Dim value As FeatMgrView
 
value = instance.CreateFeatureMgrView2(BitMapFile, ToolTip, WhichPane)
C# 
FeatMgrView CreateFeatureMgrView2( 
   string BitMapFile,
   string ToolTip,
   int WhichPane
)
C++/CLI 
FeatMgrView^ CreateFeatureMgrView2( 
&   String^ BitMapFile,
&   String^ ToolTip,
&   int WhichPane
) 

Parameters

BitMapFile

Bitmap file that you want to use for the tab

ToolTip

Text for the ToolTip

WhichPane

Pane to use as defined in swFeatMgrPane_e

Return Value

Pointer to the new tab

Remarks

This method provides the ability to place your newly created Feature Manager 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.

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 receive a non-NULL return value, you can use IFeatMgrView::GetFeatMgrViewWnd or IFeatureMgrView::GetFeatMgrViewWndx64 to get the new view handle. Because the view created is empty, you can use the new view handle in combination with standard MFC calls to draw, as desired, into the 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 automatically sets up to receive FeatMgrView ActivateNotify and DeactivateNotify events. On the appropriate notification, you can call IModelDoc2::DeleteFeatureMgrView or IModelDocExtension::DeleteFeatureMgrViewx64 to clean up and delete your view.

 

See Also

Availability

SolidWorks 2003 SP1, Revision Number 11.1


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:   CreateFeatureMgrView2 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) 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.