Hide Table of Contents
CreateCompoundNote Method (IDrawingDoc)

Obsolete for documents created in SOLIDWORKS 2016 and later. Superseded by ISketchBlockDefinition and ISketchBlockInstance. Creates and returns a compound note.

.NET Syntax

Visual Basic (Declaration) 
Function CreateCompoundNote( _
   ByVal Height As System.Double, _
   ByVal X As System.Double, _
   ByVal Y As System.Double, _
   ByVal Z As System.Double _
) As System.Object
Visual Basic (Usage) 
Dim instance As IDrawingDoc
Dim Height As System.Double
Dim X As System.Double
Dim Y As System.Double
Dim Z As System.Double
Dim value As System.Object
value = instance.CreateCompoundNote(Height, X, Y, Z)
System.object CreateCompoundNote( 
   System.double Height,
   System.double X,
   System.double Y,
   System.double Z
System.Object^ CreateCompoundNote( 
&   System.double Height,
&   System.double X,
&   System.double Y,
&   System.double Z



Note height in meters


x location of note in meters


y location of note in meters


z location of note in meters

Return Value

Newly created compound note



A compound note is a note that can contain multiple text strings and sketch geometry.

Compound notes are equivalent to a user-defined symbol. After creating a compound note, you can use the other compound note methods to add text and sketch geometry to the object.

This object appears to the end-user as though it were one item. If the user selects the compound note and drags it, all of the entities and text move together.

Because a compound note can have multiple pieces of text, many of the compound note methods require that you specify the index value of the text. For example, the first piece of text added to the compound note using INote::AddText has index number 1, the second text added has index number 2, and so on.

SOLIDWORKS adds the note to the view of the current selection, so you must make a selection before you call this method.


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

Subject:   Feedback on Help Topics
Page:   CreateCompoundNote Method (IDrawingDoc)
*   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) 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.