Creates a new note in this drawing.
.NET Syntax
Visual Basic (Declaration) | |
---|
Sub InsertNewNote2( _
ByVal UpperText As String, _
ByVal LowerText As String, _
ByVal NoLeader As Boolean, _
ByVal BentLeader As Boolean, _
ByVal ArrowStyle As Short, _
ByVal LeaderSide As Short, _
ByVal Angle As Double, _
ByVal BalloonStyle As Short, _
ByVal BalloonFit As Short, _
ByVal UpperNoteContent As Short, _
ByVal LowerNoteContent As Short _
) |
Visual Basic (Usage) | |
---|
Dim instance As IDrawingDoc
Dim UpperText As String
Dim LowerText As String
Dim NoLeader As Boolean
Dim BentLeader As Boolean
Dim ArrowStyle As Short
Dim LeaderSide As Short
Dim Angle As Double
Dim BalloonStyle As Short
Dim BalloonFit As Short
Dim UpperNoteContent As Short
Dim LowerNoteContent As Short
instance.InsertNewNote2(UpperText, LowerText, NoLeader, BentLeader, ArrowStyle, LeaderSide, Angle, BalloonStyle, BalloonFit, UpperNoteContent, LowerNoteContent)
|
C# | |
---|
void InsertNewNote2(
string UpperText,
string LowerText,
bool NoLeader,
bool BentLeader,
short ArrowStyle,
short LeaderSide,
double Angle,
short BalloonStyle,
short BalloonFit,
short UpperNoteContent,
short LowerNoteContent
) |
C++/CLI | |
---|
void InsertNewNote2(
& String^ UpperText,
& String^ LowerText,
& bool NoLeader,
& bool BentLeader,
& short ArrowStyle,
& short LeaderSide,
& double Angle,
& short BalloonStyle,
& short BalloonFit,
& short UpperNoteContent,
& short LowerNoteContent
) |
Parameters
- UpperText
Upper text string to be put in the note
- LowerText
Unused; pass an empty string
- NoLeader
True does not add a leader line, false does
- BentLeader
True adds a bent leader line, false does not
- ArrowStyle
Arrowhead type as defined in swArrowStyle_e
- LeaderSide
Leader line side as defined in swLeaderSide_e
- Angle
Text angle
- BalloonStyle
Balloon style type as defined in swBalloonStyle_e
- BalloonFit
Balloon fit type as defined in swBalloonFit_e
- UpperNoteContent
Unused; set to 0
- LowerNoteContent
Unused; set to 0
Example
You must be a SolidWorks subscription customer to access the SolidWorks API forum's documents.
- Open https://forum.solidworks.com/community/solidworks/api?view=documents.
- Log in.
- Click SolidWorks > API to open the SolidWorks API forum.
- Click the Documents tab.
- Locate the Insert Note Leader at Sketch Point (VBA, VB.NET, and C#) document and download the Zip file.
See Also