MDAddRect

<< Click to Display Table of Contents >>

Navigation:  Programming Mechworks PDM > DBWCommandShell > Commands Reference > NeutralFormat >

MDAddRect

Description

Insert a rectangle in the Master Drawing identified with the handler MDid.

This command is effective for PFD format only

Syntax

call DBWShell("MDAddRect MDid x0 y0 x1 y1 frameWidth frameRGBcolor okFill fillRGBcolor")

Parameters

MDid

Master Drawing handler

x0

rectangle x-coordinate of the lower-left point (in millimeters)

y0

rectangle y-coordinate of the lower-left point (in millimeters)

x1

rectangle x-coordinate of the upper-right point (in millimeters)

y1

rectangle y-coordinate of the upper-right point (in millimeters)

framewidth

width in pixels of the rectangle frame

frameRGBcolor

color of the frame defined as RGB

okFill

0/1: 1 if the rectangle must be filled

fillRGBcolor

fill color