Hide Table of Contents
SummaryInfo Property (IModelDoc2)

Gets or sets file summary information for the SOLIDWORKS document.

.NET Syntax

Visual Basic (Declaration) 
Property SummaryInfo( _
   ByVal FieldId As System.Integer _
) As System.String
Visual Basic (Usage) 
Dim instance As IModelDoc2
Dim FieldId As System.Integer
Dim value As System.String
instance.SummaryInfo(FieldId) = value
value = instance.SummaryInfo(FieldId)
System.string SummaryInfo( 
   System.int FieldId
) {get; set;}
property System.String^ SummaryInfo {
   System.String^ get(System.int FieldId);
   void set (System.int FieldId, System.String^ value);



Identifier for field as defined in swSummInfoField_e

Property Value

Text in field



In line with Microsoft recommendations for OLE support, the file summary information for SOLIDWORKS documents is written as an OLE property set into a stream named "\005Summary Information" off the root storage of the SOLIDWORKS document's compound file.


  • MFC does not currently provide classes that manage summary information. However, the DRAWCLI application shipped with Visual C++ does include a sample implementation, in the form of the class CSummInfo, which you can use as an example when implementing your own. This class is used by the document class CDrawDoc. DRAWCLI also includes property pages for displaying and modifying Summary Information.

  • Some dates are localized.

Option Explicit


Sub main()

    Dim swApp           As SldWorks.SldWorks

    Dim swModel         As SldWorks.ModelDoc2

    Dim Text1           As String

    Dim Text2           As String

    Dim Text3           As String

    Dim Text4           As String


    Set swApp = CreateObject("SldWorks.Application")

    Set swModel = swApp.ActiveDoc


    ' All of these date strings will be localized according to

    ' the current regional settings


    ' These two dates (day, month, and year)

    ' will be in numeric format and localized

    Text1 = swModel.SummaryInfo(swSumInfoCreateDate)

    Text2 = swModel.SummaryInfo(swSumInfoSaveDate)


    ' These two dates will be the same as displayed in the

    ' File, Properties menu in text format

    Text3 = swModel.SummaryInfo(swSumInfoCreateDate2)

    Text4 = swModel.SummaryInfo(swSumInfoSaveDate2)


    Debug.Print "CreateDate = " + Text1

    Debug.Print "SaveDate = " + Text2

    Debug.Print "CreateDate2 = " + Text3

    Debug.Print "SaveDate2 = " + Text4

End Sub


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:   SummaryInfo Property (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) 2018 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.