Hide Table of Contents
DocumentVisible Method (ISldWorks)

Allows the application to control the display of a document in a window upon creation or retrieval.

.NET Syntax

Visual Basic (Declaration) 
Sub DocumentVisible( _
   ByVal Visible As System.Boolean, _
   ByVal Type As System.Integer _
) 
Visual Basic (Usage) 
Dim instance As ISldWorks
Dim Visible As System.Boolean
Dim Type As System.Integer
 
instance.DocumentVisible(Visible, Type)
C# 
void DocumentVisible( 
   System.bool Visible,
   System.int Type
)
C++/CLI 
void DocumentVisible( 
&   System.bool Visible,
&   System.int Type
) 

Parameters

Visible

True the documents of the specified type are displayed upon creation or retrieval, false they are not

Type

Type of document to which you apply visibility as defined in swDocumentTypes_e

Remarks

This method is a flag that allows you to display or hide documents as they are loaded.

If you create a document invisibly by passing false to this method, then you cannot make it visible with IModelDoc2::Visible. Instead you should close it and then reopen it as a visible document.

Additionally if SOLIDWORKS was hidden by a call to ISldWorks::UserControlBackground, and a document is opened (e.g., a configuration is loaded), then you must call ISldWorks::DocumentVisible to keep the SOLIDWORKS user-interface hidden.

 

See Also



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:   DocumentVisible Method (ISldWorks)
*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) 2019 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.