.NET Framework Class Library
NeutralFormat.MDAddLine Method

<< Click to Display Table of Contents >>

Navigation:  Programming Mechworks PDM > .NET API > MwPDMApi Namespace > NeutralFormat Class > NeutralFormat Methods >

.NET Framework Class Library
NeutralFormat.MDAddLine Method

Add a line to the Master Drawing identified with the handler MDid

Namespace: MwPDMApi
Assembly:  MwPDMApi (in MwPDMApi.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

Visual Basic

Public Sub MDAddLine ( _

mdid As Integer, _
x0 As Double, _
y0 As Double, _
x1 As Double, _
y1 As Double, _
width As String, _
style As Integer, _
rgbColor As Integer _
)

C#

public void MDAddLine(

int mdid,
double x0,
double y0,
double x1,
double y1,
string width,
int style,
int rgbColor
)

Visual C++

public:

void MDAddLine(
int mdid,
double x0,
double y0,
double x1,
double y1,
String^ width,
int style,
int rgbColor
)

JavaScript

function mdAddLine(mdid, x0, y0, x1, y1, width, style, rgbColor);

Parameters

mdid

Type: System.Int32
Master Drawing handler

x0

Type: System.Double
X coordinate of the start point of the line (in millimeters)

y0

Type: System.Double
Y coordinate of the start point of the line (in millimeters)

x1

Type: System.Double
X coordinate of the end point of the line (in millimeters)

y1

Type: System.Double
Y coordinate of the end point of the line (in millimeters)

width

Type: System.String
line width (in pixels). to specify the width in millimeters add "mm" after the value

style

Type: System.Int32
line style. Possible values are:

o0 = solid line

o1 = dashed line

o2 = dotted line

o3 = dash-dotted line

o4 = dash-dot-dotted line

NOTE: This parameter is effective with TIF format only

rgbColor

Type: System.Int32
line color in BGR format: an integer in the form 0xBBGGRR

See Also

NeutralFormat Class

NeutralFormat Members

MwPDMApi Namespace