4D CAD Reference


Next: , Up: (dir)

About this manual

This manual is UNDER CONSTRUCTION.

Documentation on one or multiple html pages.

How to use this manual

microbizz.png
Published by Microbizz (http://www.microbizz.nl)

4D CAD plug-in for 4th Dimension
written by Adriaan van Os (adriaan@microbizz.nl)

4D CAD Reference,
written by Adriaan van Os

Special thanks to
Arend van Randen, David Righart, Justus Janssen and Hans van Os
This documentation last updated on 7 May 2012.

This manual copyright ©2005 Adriaan van Os, The Netherlands. All rights reserved
The names of the actual products and companies listed herein are the trademarks of their
respective owners.


   


Next: , Previous: Top, Up: Top

Contents

Short Contents

Table of Contents


Next: , Previous: Contents, Up: Top

1 Introduction


Next: , Up: Introduction

1.1 History

arpa.png

Development of 4D CAD started in October 1998 at ARPA-Intrabouw, a leading software developer for the building-industries in The Netherlands.

The reasons for starting the project were quite convincing. End-users were dissatisfied with 4D Draw, it missed typical CAD features and we wanted something stable, fast and powerful.

I were given the task of writing the software and a first partial development release (4D CAD 1.0d2) was ready in June 1999. Yet, many features were missing and more development releases had to follow.

New features were always discussed first with Arend van Randen and I have to thank Arend for his excellent analyses and his many valuable suggestions.

When development releases came ready, David Righart started work on the DrawToCAD test application. I thank David for his feedback, his many suggestions and bug reports and for his fine cooperation up to today.

Also I have to thank Justus Janssen for answering my endless questions about AutoCAD and for providing me with test drawings in DXF format. Justus wrote the DXF export module of DrawToCAD.

My father Drs. Hans van Os, a retired teacher of mathematics, wrote a first version of the CADPolyAndPoly polyline intersection function, a daunting task.

microbizz.png

In January 2001, I founded Microbizz. From then on, development continued at Microbizz and a first release version (4D CAD 1.0) was ready in July 2001. In successive months, 4D CAD was built into ARPA-Intrabouw’s application software, to the great satisfaction of end-users.

More releases and features followed and finally in November 2004, I found the time to rewrite DrawToCAD to a DemoCAD demonstration package. Work on the 4D CAD Reference started in April 2005 and will continue from there.

It is my sincere hope that 4D CAD will find enthousiastic developers and happy end-users.

Adriaan van Os
April 2005


Next: , Previous: History, Up: Introduction

1.2 Rationale

The rationale behind 4D CAD is simple. It combines the advantages of component software and integrated software.


Next: , Previous: Rationale, Up: Introduction

1.3 How to use this manual

Read the chapter on Concepts to get a fundamental understanding of 4D CAD. Take special care studying the sections on

To learn how to use 4D CAD, read the User reference chapter. The rest of the manual can be used as a reference work. Note the various indices

Important


Next: , Previous: How to use this manual, Up: Introduction

1.4 Requirements

4D CAD strives to be compatible with

Enough memory must be available to load large drawings. Importing raster images only works if Apple Quicktime is installed, both on Macintosh and on Windows.


Next: , Previous: Requirements, Up: Introduction

1.5 Installation and licensing

On Macintosh put 4D CAD into the Mac4DX folder, on Windows put both plug-in files into the Win4DX folder.

You received a developer license file when you purchased 4D CAD. This file contains your name plus a unique number. It must be put in the resource fork of the 4D structure file (contact support@microbizz.nl if you don’t have access to a Macintosh to do this). Without this file, 4D will quit upon opening the application (don’t panic).

License files for server, client and run-time deployment must be put into the Mac4DX and Win4DX folders.


Next: , Previous: Installation and licensing, Up: Introduction

1.6 DemoCAD

democad.png

DemoCAD is a 4D application with full source code, that demonstrates how to use 4D CAD. To get started with DemoCAD, run the software and play around with the various functions, available in menus.

Then, study the source code, starting with the procedures

To get an understanding of DemoCAD internals, study

DemoCAD was written using Microbizz Toolbox, an application framework for 4th Dimension, written over the years by Adriaan van Os and used by several 4D developers in The Netherlands. This manual doesn’t discuss Microbizz Toolbox (the methods starting with the letter T), but if you are interested, study the above procedures plus

Integrated into Microbizz Toolbox are two more plug-in packages

This manual doesn’t discuss them either.

Important

DemoCAD
©2004-2011 ARPA-Intrabouw, The Netherlands
©2004-2011 Microbizz, The Netherlands


Next: , Previous: DemoCAD, Up: Introduction

1.7 Technical support

For technical support by email, write to support@microbizz.nl with a clear description of the problem, precise error codes and possibly a screendump of what you are doing.

Microbizz can provide technical training and development services. Contact adriaan@microbizz.nl for more information.


Next: , Previous: Technical support, Up: Introduction

1.8 Bibliography

Selected bibliography


Previous: Bibliography, Up: Introduction

1.9 The documentation system

This manual was created with the GNU Texinfo documentation system, using a CodeWarrior plug-in compiler written by Adriaan van Os. It was later ported to Xcode.

texinfo.png

Illustrations were created using 4D CAD and Apple Preview (and exported to the patent-free PNG format).


Next: , Previous: Introduction, Up: Top

2 User reference

This chapter describes 4D CAD from a user perspective, although with hints for developers on customization and related methods.

The mode palette section has subsections for the various modes


Next: , Up: User reference

2.1 Area

A 4D CAD area consists of the following elements

cadarea.png

More elements can be added with a Title split.

Programming
The area can be customized with CADSetDisplay.

Areas
%CAD, %CADView, %CADBackground

Methods
CADGetDisplay, CADSetDisplay.


Next: , Previous: Area, Up: User reference

2.2 Mode palette

Modes on the mode palette are:

modepalette.png

Methods
CADGetMode, CADSetMode.


Next: , Up: Mode palette

2.2.1 Intersect mode

intersectmode.png

Intersect mode is a specialized object selection mode. In this mode you can

Methods
CADSelect.


Next: , Previous: Intersect mode, Up: Mode palette

2.2.2 Enclose mode

enclosemode.png

Enclose mode is a specialized object selection mode. In this mode you can

Methods
CADSelect.


Next: , Previous: Enclose mode, Up: Mode palette

2.2.3 Touch mode

touchmode.png

Touch mode is a specialized object selection mode. In this mode you can

Methods
CADSelect.


Next: , Previous: Touch mode, Up: Mode palette

2.2.4 Reshape mode

reshapemode.png

Reshape mode is a general purpose object selection and edit mode. In this mode you can

When translating, you can

The cursor changes to an arrow cursor when it is on top of a grip handle. It is used for a reshape or resize, where you can

Object type Modifier key Solid grip handle Open grip handle
Line Drag the line’s start- or endpoint
shift Restrict movement to the line’s direction
command Anchor the line’s center
Polyline Drag a polyline vertex Move a polyline line
shift Restrict movement to an adjacent line’s direction Move the line perpendicular to its own direction
command Resize the polyline from its center Resize the polyline from its center
shift & command Resize the polyline proportionally from its center Resize the polyline proportionally from its center
Square Resize the square diagonally Resize the square horizontally or vertically
command Anchor the square’s center Anchor the square’s center
Rectangle Drag a rectangle vertex Drag a rectangle line
shift Resize the rectangle proportionally Resize the rectangle proportionally
command Anchor the rectangle’s center Anchor the rectangle’s center
Circle Resize the circle diagonally Resize the circle horizontally or vertically
command Anchor the circle’s opposite box vertex Anchor the circle’s opposite side
Ellipse Reshape the ellipse, anchoring its center Resize the ellipse horizontally or vertically
shift Resize the ellipse proportionally Resize the ellipse proportionally
command Anchor the ellipse’s opposite box vertex Anchor the ellipse’s center
Circle arc Resize the circle arc Change the circle arc’s start or end angle
Ellipse arc Reshape the ellipse arc Change the ellipse arc’s start or end angle
shift Resize the ellipse arc proportionally
String Resize the string
Raster image Resize the raster image proportionally Resize the raster image vertically or horizontally
shift Resize the raster image unrestricted (unless it is sheared) Resize the raster image proportionally
command Anchor the raster image’s center Anchor the raster image’s center
Block insert Resize the block insert proportionally Resize the block insert vertically or horizontally
shift Resize the block insert unrestricted (unless it is sheared) Resize the block insert proportionally
command Anchor the block insert’s center Anchor the block insert’s center

A reshape or resize can have the effect that an object is flipped horizontally or vertically or both horizontally and vertically. The latter is equal to a 180 degrees rotation.

Important
When you drag, you will notice that nothing happens until the cursor moves a few pixels. This is called drag hesitation and its purpose is to prevent unintentional drags caused by object selection.

Programming
Drags can be customized with CADSetDragPrefs, snaps with CADSetSnapPrefs.

Methods
CADGetSnapPrefs, CADSetSnapPrefs, CADGetDragPrefs, CADSetDragPrefs.


Next: , Previous: Reshape mode, Up: Mode palette

2.2.5 Translate mode

Translate mode is a specialized object selection and translation mode, available only by calling CADSetMode. In this mode you can

When translating, you can

Important
When you drag, you will notice that nothing happens until the cursor moves a few pixels. This is called drag hesitation and its purpose is to prevent unintentional drags caused by object selection.

Programming
Drags can be customized with CADSetDragPrefs, snaps with CADSetSnapPrefs.

Methods
CADSetMode, CADGetSnapPrefs, CADSetSnapPrefs, CADGetDragPrefs, CADSetDragPrefs.


Next: , Previous: Translate mode, Up: Mode palette

2.2.6 Zoom in mode

zoominmode.png

Zoom in mode is a specialized zoom mode. In this mode you can

Important
This mode implements stepped zooming, which makes sure that a pixel on the screen always corresponds to an integral number of units. Thus, drawing objects is more precise. This feature can be customized with CADSetZoomPrefs. Also see Zoom info bar.

Methods
CADZoom, CADGetZoom, CADAutoZoom, CADGetZoomPrefs, CADSetZoomPrefs.


Next: , Previous: Zoom in mode, Up: Mode palette

2.2.7 Zoom out mode

zoomoutmode.png

Zoom out mode is a specialized zoom mode. In this mode you can

Important
This mode implements stepped zooming, which makes sure that a pixel on the screen always corresponds to an integral number of units. Thus, drawing objects is more precise. This feature can be customized with CADSetZoomPrefs. Also see Zoom info bar.

Methods
CADZoom, CADGetZoom, CADAutoZoom, CADGetZoomPrefs, CADSetZoomPrefs.


Next: , Previous: Zoom out mode, Up: Mode palette

2.2.8 Zoom continuous mode

zoomcontinuousmode.png

Zoom continuous mode is a specialized zoom mode. In this mode you can

Important
This mode does not implement stepped zooming,

Methods
CADZoom, CADGetZoom, CADAutoZoom, CADGetZoomPrefs, CADSetZoomPrefs.


Next: , Previous: Zoom continuous mode, Up: Mode palette

2.2.9 Drag-scroll mode

dragscrollmode.png

Drag-scroll mode is a general-purpose drag-scroll and zoom mode. In this mode you can

Important
Drag-scroll only works if the corresponding scroll bar is present. The presence of scroll bars can be customized with CADSetDisplay.

Methods
CADScroll, CADScrollTo, CADGetScroll, CADZoom, CADGetZoom, CADAutoZoom, CADGetDisplay, CADSetDisplay. CADGetZoomPrefs, CADSetZoomPrefs.


Next: , Previous: Drag-scroll mode, Up: Mode palette

2.2.10 Draw line mode

drawlinemode.png

Draw line mode is a specialized mode to draw lines. In this mode you can

Line objects are created on the Current layer and with the Current drawing attributes.

Programming
Line drawing can be customized with CADSetDragPrefs, snaps with CADSetSnapPrefs.

Methods
CADAddLine, CADGetCurrentLayer, CADSetCurrentLayer, CADGetDefaults, CADSetDefaults, CADGetSnapPrefs, CADSetSnapPrefs, CADGetDragPrefs, CADSetDragPrefs.


Next: , Previous: Draw line mode, Up: Mode palette

2.2.11 Draw polyline mode

drawpolylinemode.png

Draw polyline mode is a specialized mode to draw polylines. In this mode you can

Polyline objects are created on the Current layer and with the Current drawing attributes. A closed polyline object must have at least three vertices, an open polyline at least two.

Programming
Polyline drawing can be customized with CADSetDragPrefs, snaps with CADSetSnapPrefs.

Methods
CADAddPolyLine, CADGetCurrentLayer, CADSetCurrentLayer, CADGetDefaults, CADSetDefaults, CADGetSnapPrefs, CADSetSnapPrefs, CADGetDragPrefs, CADSetDragPrefs.


Next: , Previous: Draw polyline mode, Up: Mode palette

2.2.12 Draw square mode

drawsquaremode.png

Draw square mode is a specialized mode to draw squares. In this mode you can

Square objects are created on the Current layer and with the Current drawing attributes.

Programming
Square drawing can be customized with CADSetDragPrefs.

Methods
CADAddSquare, CADGetCurrentLayer, CADSetCurrentLayer, CADGetDefaults, CADSetDefaults, CADGetDragPrefs, CADSetDragPrefs.


Next: , Previous: Draw square mode, Up: Mode palette

2.2.13 Draw rectangle mode

drawrectanglemode.png

Draw rectangle mode is a specialized mode to draw rectangles. In this mode you can

Rectangle objects are created on the Current layer and with the Current drawing attributes.

Programming
Rectangle drawing can be customized with CADSetDragPrefs, snaps with CADSetSnapPrefs. To set a fixed-width or fixed-length drawing default, call CADSetDefaults.

Methods
CADAddRectangle, CADGetCurrentLayer, CADSetCurrentLayer, CADGetDefaults, CADSetDefaults, CADGetSnapPrefs, CADSetSnapPrefs, CADGetDragPrefs, CADSetDragPrefs.


Next: , Previous: Draw rectangle mode, Up: Mode palette

2.2.14 Draw circle mode

drawcirclemode.png

Draw circle mode is a specialized mode to draw circles. In this mode you can

Circle objects are created on the Current layer and with the Current drawing attributes.

Programming
Circle drawing can be customized with CADSetDragPrefs.

Methods
CADAddCircle, CADGetCurrentLayer, CADSetCurrentLayer, CADGetDefaults, CADSetDefaults, CADGetDragPrefs, CADSetDragPrefs.


Next: , Previous: Draw circle mode, Up: Mode palette

2.2.15 Draw ellipse mode

drawellipsemode.png

Draw ellipse mode is a specialized mode to draw ellipses. In this mode you can

Ellipse objects are created on the Current layer and with the Current drawing attributes.

Programming
Ellipse drawing can be customized with CADSetDragPrefs, snaps with CADSetSnapPrefs.

Methods
CADAddEllipse, CADGetCurrentLayer, CADSetCurrentLayer, CADGetDefaults, CADSetDefaults, CADGetSnapPrefs, CADSetSnapPrefs, CADGetDragPrefs, CADSetDragPrefs.


Next: , Previous: Draw ellipse mode, Up: Mode palette

2.2.16 Draw circle arc mode

drawcirclearcmode.png

Draw circle arc mode is a specialized mode to draw circle arcs. In this mode you can

Circle arc objects are created on the Current layer and with the Current drawing attributes.

Programming
Circle arc drawing can be customized with CADSetDragPrefs.

Methods
CADAddCircleArc, CADGetCurrentLayer, CADSetCurrentLayer, CADGetDefaults, CADSetDefaults, CADGetDragPrefs, CADSetDragPrefs.


Next: , Previous: Draw circle arc mode, Up: Mode palette

2.2.17 Draw ellipse arc mode

drawellipsearcmode.png

Draw ellipse arc mode is a specialized mode to draw ellipse arcs. In this mode you can

Ellipse arc objects are created on the Current layer and with the Current drawing attributes.

Programming
Ellipse arc drawing can be customized with CADSetDragPrefs, snaps with CADSetSnapPrefs.

Methods
CADAddEllipseArc, CADGetCurrentLayer, CADSetCurrentLayer, CADGetDefaults, CADSetDefaults, CADGetSnapPrefs, CADSetSnapPrefs, CADGetDragPrefs, CADSetDragPrefs.


Next: , Previous: Draw ellipse arc mode, Up: Mode palette

2.2.18 Special click mode

specialclickmode.png

The purpose of special click mode is application specific. Typical examples are

Dependent on the setting of theSpecialClickModeModifiers parameter of CADSetAreaPrefs, you can

Important
Implementation is left to the application developer (see kCADEventIDSpecialClick and Events and for example code the EDtCEvent method in DemoCAD).

Methods
CADAddInsert, CADAddInsertXY, CADGetAreaPrefs, CADSetAreaPrefs, CADGetOnEvent, CADSetOnEvent, CADOnEvent.


Next: , Previous: Special click mode, Up: Mode palette

2.2.19 Write string mode

writestringmode.png

The purpose of write string mode is to add and edit strings. The string

String editing in the form of a string edit box is built into 4D CAD.

Dependent on the setting of theWriteStringModeModifiers parameter of CADSetAreaPrefs, you can also

Important
The application can overrule the built-in string editor with CADSetAreaPrefs (also see kCADEventIDWriteString and Events and the EDtCEvent method in DemoCAD).

Methods
CADAddString, CADGetAreaPrefs, CADSetAreaPrefs, CADGetOnEvent, CADSetOnEvent, CADOnEvent.


Next: , Previous: Write string mode, Up: Mode palette

2.2.20 Clip box mode

clipboxmode.png

Clip box mode sets a clipping rectangle. In this mode you can

The Clip box is used

Programming
The clip box can be read with CADGetClipBox and set with CADSetClipBox.

Methods
CADGetClipBox, CADSetClipBox, CADAutoZoom, CADPrint.


Previous: Clip box mode, Up: Mode palette

2.2.21 Printing preview mode

printpreviewmode.png

Printing preview mode shows a preview of how a drawing would print on paper, with numbered pages. In this mode you can

To calculate the number of pages, their size and alignment, 4D CAD uses the area’s current settings for

Methods
CADPrint, CADPageSetup, CADGetPaperSizes, CADGetScale, CADSetScale, CADGetClipBox, CADSetClipBox, CADGetPrintSpecs, CADSetPrintSpecs.


Next: , Previous: Mode palette, Up: User reference

2.3 Tool palette

toolpalette.png

With the buttons on the tool palette you can

Methods
CADCommand.


Next: , Previous: Tool palette, Up: User reference

2.4 Measure pane

The measure pane is used to display and edit metrical values of selected objects.

measurepane.png

In the measure pane you can

Special considerations

Programming
The measure pane can be customized with CADSetMeasurePrefs.

Methods
CADGetMeasurePrefs, CADSetMeasurePrefs.


Next: , Previous: Measure pane, Up: User reference

2.5 Anchor pane

anchorpane.png

The Anchor pane determines which part of an object is anchored (stays in place) when in the Measure pane a width, length or line length value is changed.

Important
The anchor pane specifies each object’s anchor in its unrotated and unmirrored state. When objects are mirrored or rotated, their anchors will be mirrored and rotated also.


Next: , Previous: Anchor pane, Up: User reference

2.6 Zoom info bar

zoominfobar.png

The zoom info bar displays the size of a screen pixel, measured in the area’s unit (see Unit and scale).

4D CAD implements stepped zooming, which makes sure that a pixel on the screen corresponds to an integral number of units. Thus, drawing objects is more precise (this feature can be customized with CADSetZoomPrefs).

In rare cases, the zoom info bar will display an error code instead. This happens when a screen refresh causes an error. If so, click on the zoom info bar to reset it.

Methods
CADZoom, CADGetZoom, CADAutoZoom, CADGetZoomPrefs, CADSetZoomPrefs.


Next: , Previous: Zoom info bar, Up: User reference

2.7 Title split

A title split splits off left and top title views. The title views scroll in a special manner, most suitable to keep column and row titles into view, as in a spreadsheet. The figure shows (dimmed in the background) a planboard application, written in 4D CAD.

titlesplit.png

Programming

Methods
CADGetTitleSplit, CADSetTitleSplit, CADZoom, CADAutoZoom, CADGetZoom, CADScroll, CADScrollTo, CADGetScroll.


Next: , Previous: Title split, Up: User reference

2.8 Grips and blips

gripsandblips.png

In the figure you see centerblip.png center blips, solidgrip.png solid grip handles and opengrip.png open grip handles for selected objects of diverse type. Note that the Cursor will change to an arrow cursor when you move it on top of a blip or grip handle.

The functions of grips and blips are discussed in the Reshape mode, Translate mode and various draw mode subsections. Not all grip handles will be present for objects with locks (see Locking).

Methods
CADGetLock, CADSetLock, CADGetObjLock, CADSetObjLock.


Next: , Previous: Grips and blips, Up: User reference

2.9 Current layer

All user operations work on the current layer. Typically, the application implements a dialog that lets you set the current layer. Please note that an empty drawing has no Layer, nor a current layer.

Important

Programming
To create a current layer in an empty drawing, call CADAddLayer and CADSetCurrentLayer.

Methods
CADAddLayer, CADGetCurrentLayer, CADSetCurrentLayer.


Next: , Previous: Current layer, Up: User reference

2.10 Current drawing attributes

In the various draw modes, new user objects are drawn with current drawing attributes. Typically, the application implements a dialog that lets you enter these attributes as defaults

Important

Methods
CADGetDefaults, CADSetDefaults.


Next: , Previous: Current drawing attributes, Up: User reference

2.11 Double-click

Typically, the application implements object information dialogs that let you view and edit metrical data and object attributes. These dialogs show up when you double-click an object. There are several flavours of object information dialogs

The multiple objects variant must have an extra checkbox for each object attribute in the dialog. When the dialog is confirmed and the checkbox is set, the value entered for the attribute is applied to all objects in the selection.

Important
Implementation of object information dialogs is left to the application developer (for example code see the EDtCEvent method in DemoCAD).


Next: , Previous: Double-click, Up: User reference

2.12 Copy and paste

With copy and paste you can generally

In 4D CAD this applies to selected objects in drawings and to selected characters in a measure pane edit box. In particular, you can

Special considerations

Programming
Installing an event procedure gives the programmer full control over copy and paste, see Copy and paste control.

Methods
CADGetOnEvent, CADSetOnEvent, CADCommand, CADGotoPage, CADGetKeyMask, CADSetKeyMask, CADMoveTo, CADCopyTo, CADCopyObjTo, CADCopyBlocks, CADCompareBlock, CADCompareObj.


Next: , Previous: Copy and paste, Up: User reference

2.13 Undo and redo

4D CAD implements single undo and redo. You can

Special considerations

Programming
See Undo handling.

Methods
CADGetOnEvent, CADSetOnEvent, CADGetUndoPrefs, CADSetUndoPrefs, CADTriggerUndo, CADResetUndo.


Next: , Previous: Undo and redo, Up: User reference

2.14 Snaps

Snaps are like magnetic points, they attract the cursor when you drag or draw. Is the cursor too near, then it snaps to the magnetic point. Snaps are visible in the drawing as small circles. They are defined for

Special considerations

Important
The application can add custom snaps to a block with CADSetBlockAddedSnaps. It can determine which snaps are active, by calling CADSetLayerAttributes, CADSetBlockSnapMask and CADSetSnapPrefs.

Methods
CADGetSnapPrefs, CADSetSnapPrefs, CADFindSnap, CADGetLayerAttributes, CADSetLayerAttributes, CADGetBlockAddedSnaps, CADSetBlockAddedSnaps, CADGetBlockSnapMask, CADSetBlockSnapMask.


Next: , Previous: Snaps, Up: User reference

2.15 Fast dragging

Normally, full animation is used when you draw or drag objects. 4D CAD was designed to be very fast, but in special circumstances full animation may be too slow (e.g. when working with large raster images). If so, press the option key to draw or drag an outline instead of the full object.

Important
This feature can be customized with CADSetDragPrefs.

Methods
CADGetDragPrefs, CADSetDragPrefs.


Next: , Previous: Fast dragging, Up: User reference

2.16 Using the keyboard

With the keyboard you can

Programming
See Event handling.

Methods
CADGetOnEvent, CADSetOnEvent.


Next: , Previous: Using the keyboard, Up: User reference

2.17 Using the mouse wheel

With the mouse wheel you can, by default

Important
The use of the mouse wheel can be customized with CADSetMouseWheelPrefs.

Methods
CADGetMouseWheelPrefs, CADSetMouseWheelPrefs.


Previous: Using the mouse wheel, Up: User reference

2.18 String editing

In a 4D CAD string edit box, you can apply the following edit operations:

editboxwithcaret.png

If a caret is shown

editboxwithselection.png

If a selection is highlighted

The edit box automatically grows and shrinks with the size of the text. If it can not grow, as it has reached the visible edges of the drawing, the text inside the edit box automatically scrolls.

editboxrotated.png

The string edit box has the same position and rotation angle as the text in the drawing.


Next: , Previous: User reference, Up: Top

3 Concepts

Elementary mathematics

Base elements of a drawing

Area attributes

Object attributes

Application data

Transforms


Next: , Up: Concepts

3.1 Coordinates

Unlike 4D Draw, 4D CAD follows mathematical conventions for coordinates

4D CAD is two-dimensional (there are no 3D features).

Coordinates are 64-bit floating-point values, see Unit and scale.

This manual uses the . for decimal fractions The notation for a point with X-coordinate 1.23 and Y-coordinate −4.56 is (1.23,−4.56).

Methods
CADDistanceXY.


Next: , Previous: Coordinates, Up: Concepts

3.2 Angle

Unlike 4D Draw, 4D CAD follows mathematical conventions for angles

In 4D CAD, angles are always given in degrees, never in radians. The range is 0 to 360 or −180 to 180.

Methods
CADRotateXY.


Next: , Previous: Angle, Up: Concepts

3.3 Goniometry

(under construction)

Methods
CADSin, CADCos, CADArcSin, CADArcCos, CADArcTan2.


Next: , Previous: Goniometry, Up: Concepts

3.4 Linear transformation matrix

A linear transformation matrix is a mathematical tool for describing linear transformations

Any sequence of these operations in a 2-dimensional plane can be described by one linear transformation matrix of 6 parameters. It can do the following

Because parallel lines stay parallel, a linear transformation matrix can describe a 3D isometric projection, but not a 3D perspective projection.

The transformation of a triangle into another triangle uniquely identifies a linear transformation matrix (CADCalcMatrix).

Applying a linear transformation matrix with CADTransform is generally more efficient than a succession of singular operations (CADTranslate, CADScale, CADMirror, CADRotate and CADShear).

Objects of type Block insert and Raster image have a linear transformation matrix attached

The matrix that doesn’t change anything is called the identity matrix (CADIdentityMatrix). A matrix that describes one sequence of the operations scale, rotate and translate (in that order) is called a standard matrix (CADStandardMatrix). A matrix that undoes the effect of another matrix is called an inverse matrix (CADInvertMatrix).

Applying one matrix transformation on another is called a matrix multiplication (CADTransformMatrix). The term multiplication is somewhat misleading. When multiplying two numbers, the order of the two numbers is not important. But when multiplying two matrices the order is important.

Methods
CADIdentityMatrix, CADStandardMatrix, CADTranslateMatrix, CADRotateMatrix, CADScaleMatrix, CADMirrorMatrix, CADShearMatrix, CADTransformMatrix, CADFlipMatrix, CADStretchMatrix, CADInvertMatrix, CADCalcMatrix, CADGetMatrixPlane.


Next: , Previous: Linear transformation matrix, Up: Concepts

3.5 ID

An ID is a number (of type longint) that uniquely identifies an element of a drawing.


Next: , Previous: ID, Up: Concepts

3.6 Layer

Layers are like transparent sheets laying op top of each other, with objects glued to them.

layers.png

The layer order determines the drawing order of the objects, although there is a second drawing order, that of the objects of each layer. Within a layer, objects can be moved to the front or to the back of the layer. The layer itself can be moved in front of or behind other layers.

The next figure shows a drawing where some of the layers are dimmed. Each layer can be in one of the following modes

layersdim.png

So, for example, to create the situation in 4D Draw, you would have

Of course, 4D CAD gives you more power to work with layers than 4D Draw does. Other attributes of a layer are

A layer ID passed as a Scope ID, describes all objects on the layer.

Methods
CADAddLayer, CADRemoveLayer, CADGetLayers, CADGetLayerAttributes, CADSetLayerAttributes, CADGetLayerKey, CADSetLayerKey, CADGetLayerOrder, CADSetLayerOrder, CADGetCurrentLayer, CADSetCurrentLayer, CADGetSnapPrefs, CADSetSnapPrefs.


Next: , Previous: Layer, Up: Concepts

3.7 Sublayer

Sublayers are a further subdivision of layers (see Layer), but there are some differences

Sublayers are automatically created when importing DXF files. A sublayer can be the Current layer.

When a sublayer and its parent layer have different attribute values, the weakest value wins. For example, when the layer is dimmed and the sublayer is visible, any object on the sublayer will still be dimmed.

A sublayer ID passed as a Scope ID, describes all objects on the sublayer.

Methods
CADAddSubLayer, CADRemoveLayer, CADGetSubLayers, CADGetLayerAttributes, CADSetLayerAttributes, CADGetLayerKey, CADSetLayerKey, CADGetCurrentLayer, CADSetCurrentLayer, CADGetSnapPrefs, CADSetSnapPrefs.


Next: , Previous: Sublayer, Up: Concepts

3.8 Block

Blocks are like mini drawings. The figure shows a block, inserted at two different places in the drawing.

blocks.png

Inserting a block does not copy the objects of the block. A reference to the block is created in the form of a block insertion object. The block insertion object (or Block insert for short) has a number of attributes

A block can be inserted not only in a drawing but also in another block. DemoCAD lets you edit blocks recursively with option double-click, the code is worth studying.

In fact, there is little difference between a block and the true drawing, except that the true drawing has a drawing plane attached and is immediately visible. The true drawing can be considered the root block in the drawing’s block hierarchy and for programming purposes the true drawing is considered a block with a special block ID assigned, kCADRootBlockID.

A block has the following attributes

Methods
CADAddBlock, CADRemoveBlock, CADGetBlocks, CADGetBlockInfo, CADSetBlockName, CADGetBlockKey, CADSetBlockKey, CADAddInsertXY, CADAddInsert, CADObjInsert, CADGetInsertID, CADGetInsert, CADGetInsertXY, CADSetInsertID, CADSetInsert, CADSetInsertXY, CADGetInsertColor, CADSetInsertColor, CADClear.


Next: , Previous: Block, Up: Concepts

3.9 Object


Next: , Up: Object

3.9.1 Line

(under construction)


Next: , Previous: Line, Up: Object

3.9.2 Polyline

(under construction)


Next: , Previous: Polyline, Up: Object

3.9.3 Square

(under construction)


Next: , Previous: Square, Up: Object

3.9.4 Rectangle

(under construction)


Next: , Previous: Rectangle, Up: Object

3.9.5 Circle

(under construction)


Next: , Previous: Circle, Up: Object

3.9.6 Circle arc

(under construction)


Next: , Previous: Circle arc, Up: Object

3.9.7 Ellipse

(under construction)


Next: , Previous: Ellipse, Up: Object

3.9.8 Ellipse arc

(under construction)


Next: , Previous: Ellipse arc, Up: Object

3.9.9 String

(under construction)


Next: , Previous: String, Up: Object

3.9.10 Raster image

(under construction)


Previous: Raster image, Up: Object

3.9.11 Block insert

(under construction)

Also see Block.


Next: , Previous: Object, Up: Concepts

3.10 Scope

An object scope describes a set of objects. It can have different forms:

4D CAD differentiates between the various IDs, so you can pass any of the above values as a scope ID. The method CADTypeOfScope returns which kind of scope an ID is.

4D CAD methods that expect an object ID operate on a single object, those that expect a scope ID operate on a number of objects (0 or more). Letting 4D CAD operate on a scope is faster and more convenient than working with single objects in a loop (Iterating object scopes).

A target object scope is a scope that a method will change. It can be kCADScopeSelectedObjects or a programmer scope. By passing a programmer scope, you can manipulate objects while leaving the current user selection of objects intact. This is a fundamental programming concept, not found in 4D Draw.

Call CADRemoveScope when you are finished using a programmer scope. CADRemoveBlock removes all programmer scopes attached to the block. CADClear removes all programmer scopes in an area. All other scopes are maintained automatically by 4D CAD.

Scopes change when you remove objects from it (CADFromScope), add objects to it (CADToScope) or apply logical operations on it like addition, negation and intersection (CADScopeLogic).

Be aware that object scopes can change automatically as a result of user operations or as a side effect of methods being called:

By intercepting certain Events, you can manipulate the object scope the user operates on.

Important
An object scope describes objects in a block or in the root drawing. It can not enclose objects in several blocks.

Methods
CADAddScope, CADRemoveScope, CADGetScopeIDs, CADTypeOfScope, CADCount, CADGetObjIDsArray, CADOneObjID, CADGetObjID, CADEmptyScope, CADCopyScope, CADToScope, CADFromScope, CADInScope, CADScopeLogic.


Next: , Previous: Scope, Up: Concepts

3.11 Unit and scale

The current unit of a drawing is shown in the Zoom info bar. Default it is in mm, but you can change it by calling CADSetUnit. Setting the unit doesn’t scale current objects. Measure pane edit boxes can have their own unit, see Measure pane.

In 4D CAD, there is no arcane scaling system as in 4D Draw. There is one unit, that represents real world values in the drawing. The drawing is scaled in order to print it on a specific scale or at a given paper size. Setting the print scale doesn’t affect object metrics, as all metric values are specified and stored in real world values.

Linked to the print scale are three other scales

These scales allow you to make fine adjustments to the appearence of linetypes, markings and hatches, both on paper and on the screen. Their initial value is equal to the print scale (default 1:50).

To set the print scale, call CADSetScale. To calculate the scale for a given paper size, call CADGetPaperSizes. Fine adjustment can be made with CADSetPrintSpecs.

Methods
CADGetUnit, CADSetUnit, CADPageSetup, CADGetPaperSizes, CADGetScale, CADSetScale, CADGetPrintSpecs, CADSetPrintSpecs.


Next: , Previous: Unit and scale, Up: Concepts

3.12 Drawing plane

The drawing plane is the size of the drawing, specified in real world coordinates, and given in the area’s unit (see Unit and scale).

Default, the drawing plane is 56 meters wide and 40 meters high. At the default print scale of 1:50, it will print on A0 paper. However, you can set the drawing plane’s boundary coordinates to any 64-bit floating point value (which is large enough for a drawing of the universe in mm).

4D CAD has an auto-resize feature. If objects move outside the drawing plane, the bounds of the drawing plane are automatically extended. This is true for user actions as well as for 4D CAD methods being called.

Methods
CADGetDrawSize, CADSetDrawSize.


Next: , Previous: Drawing plane, Up: Concepts

3.13 Mode

Area modes have been discussed in the Mode palette section of the User reference chapter.

Methods
CADGetMode, CADSetMode.


Next: , Previous: Mode, Up: Concepts

3.14 Cursor

(under construction)


Next: , Previous: Cursor, Up: Concepts

3.15 Area prefs

For an overview of area preferences, see the Thematical method index.


Next: , Previous: Area prefs, Up: Concepts

3.16 Color

(under construction)


Next: , Previous: Color, Up: Concepts

3.17 Fill

(under construction)


Next: , Previous: Fill, Up: Concepts

3.18 Linewidth

(under construction)


Next: , Previous: Linewidth, Up: Concepts

3.19 Linetype

(under construction)

linetypes.png


Next: , Previous: Linetype, Up: Concepts

3.20 Marking

(under construction)


Next: , Previous: Marking, Up: Concepts

3.21 Font

(under construction)


Next: , Previous: Font, Up: Concepts

3.22 Hatch

(under construction)

hatches.png

Also see CAD hatch ID constants


Next: , Previous: Hatch, Up: Concepts

3.23 Metrics

(under construction)


Next: , Previous: Metrics, Up: Concepts

3.24 Bounds

(under construction)


Next: , Previous: Bounds, Up: Concepts

3.25 Locking

(under construction)


Next: , Previous: Locking, Up: Concepts

3.26 Keys

(under construction)


Next: , Previous: Keys, Up: Concepts

3.27 Key masks

(under construction)


Next: , Previous: Key masks, Up: Concepts

3.28 Arrays

(under construction)


Next: , Previous: Arrays, Up: Concepts

3.29 Translate

(under construction)


Next: , Previous: Translate, Up: Concepts

3.30 Scale

(under construction)


Next: , Previous: Scale, Up: Concepts

3.31 Mirror

(under construction)


Next: , Previous: Mirror, Up: Concepts

3.32 Rotate

(under construction)


Next: , Previous: Rotate, Up: Concepts

3.33 Shear

(under construction)


Next: , Previous: Shear, Up: Concepts

3.34 Transform

(under construction)


Next: , Previous: Transform, Up: Concepts

3.35 Lengthen

(under construction)


Next: , Previous: Lengthen, Up: Concepts

3.36 Stretch

(under construction)


Next: , Previous: Stretch, Up: Concepts

3.37 Flip

(under construction)


Previous: Flip, Up: Concepts

3.38 Align

(under construction)


Next: , Previous: Concepts, Up: Top

4 Programming tasks

Thematical method index

Programming style

Event control

Special programming tasks


Next: , Up: Programming tasks

4.1 Thematical method index

Drawings

Imports

Exporting

4D CAD areas

Redraws and 4D forms

Commands, events, errors and undos

Printing

Layers

Blocks

Scopes

Colors & color palette areas

Objects

Object attributes

Object metrics

Move, copy & compare

Mathematics

Linear transformation matrices

Transform & align

Demos

Version info


Next: , Previous: Thematical method index, Up: Programming tasks

4.2 Parameter passing

(under construction)


Next: , Previous: Parameter passing, Up: Programming tasks

4.3 Error handling

(under construction)

Also see the list of Error result codes.


Next: , Previous: Error handling, Up: Programming tasks

4.4 Event handling

(under construction)

Also see the chapter on Events.


Next: , Previous: Event handling, Up: Programming tasks

4.5 Undo handling

Methods that call CADResetUndo internally. They always clear undo data.

CADAcceptDXF
CADCancelDXF
CADClear
CADCommand (except for command kCADCommandEditSelectAll)
CADImportDXF
CADLoadFromBlob
CADLoadFromFile
CADLoadFromPict
CADResetUndo


Methods that call CADAutoResetUndo internally. They clear undo data if theAutoResetUndoFlag of the area is kCADTrue (see CADGetUndoPrefs and CADSetUndoPrefs).

CADAddBlock
CADAddCircle
CADAddCircleArc
CADAddEllipse
CADAddEllipseArc
CADAddImage
CADAddInsert
CADAddInsertXY
CADAddLayer
CADAddLine
CADAddPolyLine
CADAddRectangle
CADAddSquare
CADAddString
CADAddSubLayer
CADAlign
CADBlend
CADCopyArrays (target)
CADCopyAttributes (target)
CADCopyBlocks (target)
CADCopyByMatrix (target)
CADCopyLayers (target)
CADCopyObjByMatrix (target)
CADCopyObjTo (target)
CADCopyTo (target)
CADFlipObj
CADImportImage
CADLengthenObj
CADMirror
CADMoveByMatrix (source and target)
CADMoveTo (source and target)
CADMoveToBack
CADMoveToFront
CADPageSetup
CADPolyUndouble
CADPrint
CADPrintToPDF
CADRemoveArray
CADRemoveBlock
CADRemoveLayer
CADRemoveObj
CADRotateObj
CADRotate
CADScale
CADSetBlockName
CADSetCircleArc
CADSetCircle
CADSetClipBox
CADSetColor
CADSetDrawSize
CADSetEllipseArc
CADSetEllipse
CADSetFill
CADSetFont
CADSetHatch
CADSetImage
CADSetImageXY
CADSetInsertColor
CADSetInsert
CADSetInsertID
CADSetInsertXY
CADSetKeyMask
CADSetLayer
CADSetLayerAttributes
CADSetLine
CADSetLineType
CADSetLineWidth
CADSetLock
CADSetMarking
CADSetObjLock
CADSetPolyAngle
CADSetPolyLine
CADSetPrintSpecs
CADSetRectangle
CADSetScale
CADSetSquare
CADSetString
CADSetStringXY
CADSetUnit
CADShear
CADSplitPoly
CADStretchObj
CADTransform
CADTranslate


Please note that the following methods do not clear undo data:

CADSetBlockKey
CADSetCurrentLayer
CADSetKey
CADSetKeyArray
CADSetLayerOrder
CADSetLayerKey
CADSetObjKey

Also see the chapter on Events.


Next: , Previous: Undo handling, Up: Programming tasks

4.6 Copy and paste control

(under construction)

Also see the chapter on Events.


Next: , Previous: Copy and paste control, Up: Programming tasks

4.7 Storing and loading drawings

(under construction)


Next: , Previous: Storing and loading drawings, Up: Programming tasks

4.8 Importing DXF files

(under construction)


Next: , Previous: Importing DXF files, Up: Programming tasks

4.9 Importing raster images

(under construction)


Next: , Previous: Importing raster images, Up: Programming tasks

4.10 Handling raster image resolutions

(under construction)


Next: , Previous: Handling raster image resolutions, Up: Programming tasks

4.11 Handling redraws

(under construction)


Next: , Previous: Handling redraws, Up: Programming tasks

4.12 Handling 4D form pages and scrollbars

(under construction)


Next: , Previous: Handling 4D form pages and scrollbars, Up: Programming tasks

4.13 Specifying drawing orders

(under construction)


Next: , Previous: Specifying drawing orders, Up: Programming tasks

4.14 Iterating object scopes

(under construction)


Next: , Previous: Iterating object scopes, Up: Programming tasks

4.15 Converting from 4D Draw

(under construction)


Previous: Converting from 4D Draw, Up: Programming tasks

4.16 Displaying 4D CAD drawings in other plug-ins

(under construction)


Next: , Previous: Programming tasks, Up: Top

5 Errors and constants

Important
Please use symbolic constants (kCAD...) rather than numeric values. This makes source code better readable. And the numeric values may be subject to change without notice !

Error result codes

Parameter constants


Next: , Up: Errors and constants

5.1 Macintosh error codes

Macintosh error codes are returned unmodified. A list of (some) Macintosh error codes is given here. Note that most Macintosh error codes are negative values. They are not predefined as 4D constant.

Important
Macintosh error codes are retuned on the Mac and also on Windows by ASINTPPC.DLL.


Next: , Previous: Macintosh error codes, Up: Errors and constants

5.2 Windows error codes

Windows specific plugin error codes are not predefined as 4D constant. They are calculated by the formula PlugInError = - 25000 - WindowsErrorCode, where a list of WindowsErrorCode values is given here.


Next: , Previous: Windows error codes, Up: Errors and constants

5.3 Generic plugin error codes

The following constants are generic plugin and 4D error codes. Nothe that they are documented, but not predefined as 4D constant.

Value Constant Description
-19109 kLicenseNameTooLong
-19108 kLicenseBadPassword
-19107 kLicenseBadParam
-19106 kLicenseExpired
-19105 kLicenseBadSoftwareID
-19104 kLicenseNotFound
-19103 kLicenseBadCode
-19102 kLicenseBadSize
-19101 kLicenseBadVersion
-10503 k4DRecordIsOutOfRange
-9998 k4DDuplicatedKey
-9997 k4DMaximumNumberOfRecordsReached
-9992 k4DWrongPassword
-9991 k4DPrivilegesError
-9990 k4DTimeoutError
-9987 k4DAlreadyRelatedToThisRecord
-9986 k4DRecordLockedDuringAutomaticDeletion
-9985 k4DRecursiveIntegrity
-9984 k4DDuplicatedIndexCancelsTransaction
-9982 k4DRecordIsNotInTheSelection
-9981 k4DInvalidFieldSent
-9980 k4DStructureIsLocked
-9977 k4DNamedSelectionDoesNotExist
-9974 k4DRecordHasAlreadyBeenDeleted
-9972 k4DTableNumberRequestedIsOutOfRange
-9971 k4DFieldNumberRequestedIsOutOfRange
-9970 k4DFieldIsNotIndexed
-9969 k4DInvalidFieldTypeRequested
-9968 k4DInvalidSelectedRecordNumberRequested
-9967 k4DRecordCouldNotBeModifiedAndLoaded
-9966 k4DInvalidTypeRequested
-9965 k4DBadSearchSefinitionTableSent
-9964 k4DBadSortDefinitionTableSent
-9963 k4DInvalidRecordNumberRequested
-9946 k4DNamedSelectionToClearDoesntExist
-9939 k4DPluginMethodCanNotBeExecuted
-1 k4DPluginCallNotImplemented
10 k4DBadFieldType
16 k4DFieldHasNoRelation
30 k4DVariableExpected
42 k4DRecordCannotBePushed
45 k4DFieldOrVarExpected
47 k4DFieldMustBeAlpha
48 k4DSyntaxError
53 kIndexOutOfRange
54 kIncompatibleArgumentTypes
64 k4DPtrToLocalVar
65 k4DBadPtrObjType
66 k4DBadPtrMemType
67 k4DBadPtrType
68 k4DBadPtr
69 k4DBadArrayType
70 k4DBadArray
71 k4DBadIntType
72 k4DKeyNotFound
73 k4DDuplicateKeyFound
74 k4DBadFunctionResultType
75 k4DVarNotOfTypeText
76 k4DVarNotOfTypeLongint
77 k4DVarNotOfTypePicture
78 k4DTextTooLong
79 kStrTooLong
80 kBadDialog
81 kParamOutOfRange
82 k4DPrinterBusy
83 k4DSubFieldExpected
84 k4DVarNotOfTypePointer
85 k4DPtrNotOfTypeFieldOrSubField
86 k4DPtrNotOfTypeField
87 k4DPtrNotOfTypeFileOrField
88 k4DCantSearchOnThisFieldType
91 k4DTooManySortLines
92 k4DTooManySearchLines
93 k4DBadVarPtrOnServer
94 k4DBadVarRecPtrOnServer
95 k4DBadVarPtrTypeOnServer
96 k4DBadArrayTypeOnServer
97 kNilCharsHandleErr
98 kNilDataHandleErr
99 k4DMacOSGlobalsNotFound
100 kWin32PathnameTooLong
101 kWin32UnknownError
102 k4DProcedureNotFound
103 k4DBadText
105 k4DBadFunctionParamResultType
106 k4DProcessWindowNotFound
107 kWin32FontNameTooLong
108 kPrinterDoesntSupportResolution
109 kPrintTooLargeForThisResolution
110 kQuickTimeNotInstalled
111 kQuickTimeVersionTooOld
112 kMemMoveErr
113 kWin32PrintingError
114 kOffscreenError
115 kGraphBadMatrix
116 kInternalError
117 kSystemSoftwareTooOld
118 kQuickTimeUnknownErr
119 kUnresolvedLibraryFunction
120 kNumericalInstability
121 kImplementationRestriction
122 k4DBadArraySize
123 kBadParameter
124 kBadFloatStr
125 kBadLongintStr
126 kMacUnknownError
127 kBadFloatValue
128 kFloatValueOutOfRange
129 kPDFWriterError
130 kPDFDocAlreadyOpen
131 kPDFPageAlreadyOpen
132 kPDFPageNotOpen
133 kPDFBusy
134 kGraphBadPicture
135 kBadUTF8
136 kNotMacRomanStr
137 k4DPluginPackageNotFound
138 k4DPluginPackageInstalledTwice
139 k4DBadStructureDefinition
140 k4DVarNotOfTypeBlob
141 k4DSizeMismatch
142 kIntValueOutOfRange
143 kQtmlClientDLLNotFound
144 kZlibError
145 kOutlineFontNotFound
146 kUnknownFontFormat
147 kEditBoxValueNotAccepted
148 kBadResourceData
149 kBadResourceFormat
4001 k4DBadFileNumber
4002 k4DBadRecordNumber
4003 k4DBadFieldNumber
4004 k4DNoCurrentRecord
4004 k4DNoCurrentRecord
19501 kRowValueFatalErr
19502 kRowNilFatalErr
19503 kRowIndexOutOfRange
19504 kRowBadParameter
19505 kRowBadMemMgr
19506 kRowBadMerge
19507 kRowBadElementSize
19508 kRowBadBlockCount
19509 kRowBadSwap
19510 kChainNilFatalErr
19511 kChainIncompatible
19512 kChainInternalError
19513 kChainBadSwap
19514 kChainBadMerge
19515 kChainBadParameter
19516 kFileIOBadAsyncState
19517 kFileIOBadBufferState
19518 kFileIODontDoThatAgain
19520 kBadMemMgr
19522 kReelNilParticlePtrErr
19523 kReelNilBlockPtrErr
19524 kReelNotEmptyErr
19525 kReelBadParameter
19526 kReelBadParticleSize
19527 kReelBadLogicalCount
19528 kReelBadMerge
19529 kReelBadSwap
19530 kRollBadParameter
19531 kRollNilValuePtrErr
19532 kRollBadMerge
19533 kRollIncompatible
19534 kRollBadSwap
19540 kLumpFatalSizeErr
19541 kLumpBadOffsErr
19542 kLumpNilDataPtrErr
19543 kLumpBadMemMgr
19544 kLumpValueOutOfRange
19545 kStreamBadParam
19546 kStreamBadValue
19547 kStreamBadOperation
19548 kStreamInternalError
19549 kStreamBadStoredValue
19550 kStreamBadMarkerValue
19551 kStreamEndOfInput
19561 kSortBadParam
19562 kSortBadPtr
19563 kSortBadDataArraySize
19564 kSortBadPtrArraySize
19565 kSortDataNotAnArray
19570 kBufferTypesDontMatch
19574 kBufferBadType4D
19575 kSosoOnServerBusy
19576 kSosoBadCall
19577 kSosoBadDataID
19578 kSosoServerOutOfMemory
19579 kSosoServerNoResponse
19580 kProfilerStackOverflow
19581 kProfilerTriggerWasNotStarted
19582 kProfilerTriggerIsNotRunning
19583 kProfilerBadCallingChain
19584 kProfilerBadStackPtr
19585 kProfilerMissingTriggerName
19586 kProfilerBadHardware
19590 kAvlTreeBadNodeCount
19591 kAvlTreeBadParameter
19592 kAvlTreeNilPointer
19593 kAvlTreeIncompatible
19594 kAvlTreeOverflow
19595 kAvlTreeLinesNotEmpty
19596 kAvlTreeInternalError


Next: , Previous: Generic plugin error codes, Up: Errors and constants

5.4 CAD error codes

Value Constant Description
-128 kCADUserCanceledOperation User canceled the operation
0 kCADNoError No error
19545 kCADStreamBadParam
19546 kCADStreamBadValue
19547 kCADStreamBadOperation
19548 kCADStreamInternalError
19549 kCADStreamBadStoredValue
19550 kCADStreamBadMarkerValue
19538 kCADAvlTreeBadNodeCount
19537 kCADAvlTreeBadParameter
19536 kCADAvlTreeNilPointer
19535 kCADAvlTreeIncompatible
19700 kCADUserStop
19701 kCADBadPackPtr
19702 kCADBadAreaParam
19703 kCADBadParam
19704 kCADBadPtr
19705 kCADUndefined
19706 kCADBadSystemSoftwareVersion
19707 kCADBadResourceSize
19708 kCADBadUnitScaleZoomParams
19709 kCADBadSubsectorPtr
19710 kCADBadObjType
19711 kCADBadTree
19712 kCADBadLayerID
19713 kCADBadObjID
19714 kCADBadObjScope
19715 kCADBadBlockID
19716 kCADBadArraySizeForThisScope
19717 kCADExpectsOneObjectSelected
19718 kCADBadLineTypeID
19719 kCADBadBoxObj
19720 kCADDuplicateBoxObjOrderID
19721 kCADBadInsertPtr
19722 kCADDXFImportSessionPendingErr
19723 kCADDXFImportSessionNotPendingErr
19724 kCADDXFBadLayerPtr
19725 kCADBlockRefError
19726 kCADNameTooLong
19727 kCADNoSuchObject
19728 kCADTooManyLayers
19729 kCADBadObjSectorLink
19730 kCADBadObjBlockPtr
19731 kCADBadSector
19732 kCADBadObjSelectionRef
19733 kCADBadObjPtr
19734 kCADCannotFillOpenPoly
19735 kCADBadDrawingSize
19736 kCADBadMatrix
19737 kCADCannotStretchObj
19738 kCADCannotCalcMatrix
19739 kCADCannotFlipObj
19740 kCADNotSquare
19741 kCADBadArraySize
19744 kCADBadPoly
19745 kCADPolyCannotBeOpen
19746 kCADInternalError
19747 kCADPolyCannotBeClosed
19748 kCADBadMarkingID
19749 kCADDuplicateOrderID
19750 kCADWalkTreeInternalError
19751 kCADSortTreeInternalError
19752 kCADCannotRemoveUsedLayer
19753 kCADImplementationRestriction
19754 kCADBadScopeID
19755 kCADCannotBeTargetScope
19756 kCADCannotPrint
19757 kCADNothingToPrintInClipBox
19758 kCADFoundCRorLFInString
19759 kCADPrintToLargeAtThisScaleOrResolution
19760 kCADTargetAreaCanNotBeSourceArea
19761 kCADArrayIDNotFound
19762 kCADArrayTypesDiffer
19763 kCADBadLayerModeToSelect
19764 kCADCannotInsertThisBlock
19765 kCADBadTypeOfKey
19766 kCADCannotLengthenObj
19767 kCADNoCurrentLayer
19768 kCADCurrentLayerNotEditable
19769 kCADRecentObjIDNotInScope
19770 kCADBadEventResult
19771 kCADBadEventPhase
19772 kCADBadClipboardAreaPtr
19773 kCADCannotPaste
19774 kCADBadLock
19775 kCADBadStoredValue
19776 kCADBadStoredMarker
19777 kCADFileIsNotCADFile
19778 kCADFileVersionTooOld
19779 kCADFileVersionTooNew
19780 kCADUnexpectedEndOfInput
19781 kCADBadStructure
19782 kCADNoCADDataInPictOrBlob
19783 kCADNoRasterDataInPicture
19784 kCADNotA4DCADDrawing
19785 kCADCannotUndo
19786 kCADDuplicateObjID
19787 kCADBadHatch
19788 kCADBadHatchID
19789 kCADCannotHatchOpenPoly
19790 kCADPolyAndPolyRestriction
19791 kCADPolyAndPolyBadPolygon
19792 kCADPolyAndPolyBadVertexPtr
19793 kCADPolyAndPolyBadKnotPtr
19794 kCADPolyAndPolyBadNetwork
19795 kCADPolyAndPolyUnimplemented
19796 kCADMeasureTaskError
19797 kCADMeasurePaneInvalidFloatFormat
19798 kCADBadTypeOfMeasure
19799 kCADMeasurePaneFloatOutOfRange


Next: , Previous: CAD error codes, Up: Errors and constants

5.5 CAD alignment constants

Value Constant Type Description
0 kCADAlignNot longint
1 kCADAlignLeft longint
1 kCADAlignBottom longint
2 kCADAlignMid longint
3 kCADAlignRight longint
3 kCADAlignTop longint

Used by
CADAlign.

Also see
CAD hatch alignment constants, CAD print alignment constants, CAD raster image alignment constants, CAD scroll alignment constants, CAD string justification constants and CAD zoom alignment constants.


Next: , Previous: CAD alignment constants, Up: Errors and constants

5.6 CAD block ID constants

Value Constant Type Description
0 kCADRootBlockID longint

Used by
Used by many 4D CAD methods.


Next: , Previous: CAD block ID constants, Up: Errors and constants

5.7 CAD block to get constants

Value Constant Type Description
1 kCADGetAllBlocks longint
2 kCADGetDXFBlocks longint
3 kCADGetNonDXFBlocks longint

Used by
CADGetBlocks.


Next: , Previous: CAD block to get constants, Up: Errors and constants

5.8 CAD boolean constants

The kCADFalse and kCADTrue constants work around a strange limitation of 4D plugins, namely that they can’t have parameters of type boolean.

Value Constant Type Description
0 kCADFalse integer Boolean False equivalent
1 kCADTrue integer Boolean True equivalent

Used by
Used by 4D CAD methods that have a parameter whose name ends in Flag.


Next: , Previous: CAD boolean constants, Up: Errors and constants

5.9 CAD bounds type constants

Value Constant Type Description
1 kCADTypeOfBoundsLogicalBounds longint
2 kCADTypeOfBoundsPhysicalBounds longint
3 kCADTypeOfBoundsDrawBounds longint
4 kCADTypeOfBoundsAlignBounds longint

Used by
CADBounds, CADPolyBounds and CADStringBounds.


Next: , Previous: CAD bounds type constants, Up: Errors and constants

5.10 CAD color constants

Value Constant Type Description
15 kCADColorUncolored longint
16 kCADColorBlack longint
16777231 kCADColorWhite longint

Used by
CADGetSysBackColor, CADGetBackColor, CADSetBackColor, CADGetDefaults, CADSetDefaults. CADAddLine, CADAddSquare, CADAddRectangle, CADAddPolyLine, CADAddCircle, CADAddCircleArc, CADAddEllipse, CADAddEllipseArc, CADAddString, CADAddInsertXY, CADAddInsert, CADAddImage, CADObjLine, CADObjSquare, CADObjRectangle, CADObjPolyLine, CADObjCircle, CADObjCircleArc, CADObjEllipse, CADObjEllipseArc, CADObjString, CADObjInsert, CADObjImage, CADGetImage, CADSetImage, CADGetImageXY, CADSetImageXY, CADGetFill, CADSetFill, CADGetColor, CADSetColor, CADGetInsertColor, CADSetInsertColor, CADHatchToLine, CADGetHatch, CADSetHatch, CADImportDXF, CADToPixels, CADGetItemColor, CADSetItemColor, CADIndexToColor, CADColorToIndex, CADDXFToColor, CADColorToDXF, CADRGBToColor, CADColorToRGB, CADBlendColor and CADSpirograph.


Next: , Previous: CAD color constants, Up: Errors and constants

5.11 CAD command constants

Value Constant Type Description
1 kCADCommandMirrorHorizontal longint
2 kCADCommandMirrorVertical longint
3 kCADCommandFlipLeftRight longint
4 kCADCommandFlipTopBottom longint
5 kCADCommandRotatePlus90 longint
6 kCADCommandRotateMinus90 longint
7 kCADCommandRotateObjPlus90 longint
8 kCADCommandRotateObjMinus90 longint
15 kCADCommandEditClear longint
16 kCADCommandEditSelectAll longint

Used by
CADCommand.


Next: , Previous: CAD command constants, Up: Errors and constants

5.12 CAD cursor constants

Value Constant Type Description
0 kCADCursorDefault longint
1 kCADCursorArrow longint
2 kCADCursorDragScroll longint
3 kCADCursorZoomIn longint
4 kCADCursorZoomOut longint
5 kCADCursorZoomContinuous longint
6 kCADCursorZoomNot longint
7 kCADCursorClick longint
8 kCADCursorWrite longint
9 kCADCursorSelect1 longint
10 kCADCursorSelect2 longint
11 kCADCursorSelect3 longint
12 kCADCursorSelect4 longint
13 kCADCursorSelect5 longint
14 kCADCursorInUse longint
15 kCADCursorDraft longint
16 kCADCursorSnap longint
17 kCADCursorIBeam longint

Used by
CADGetAreaPrefs and CADSetAreaPrefs.


Next: , Previous: CAD cursor constants, Up: Errors and constants

5.13 CAD cursor size constants

Value Constant Type Description
1 kCADSelectCursorSmall longint
2 kCADSelectCursorStandard longint
3 kCADSelectCursorLarge longint
4 kCADSelectCursorVeryLarge longint
5 kCADSelectCursorLargest longint

Used by
CADGetDragPrefs and CADSetDragPrefs.


Next: , Previous: CAD cursor size constants, Up: Errors and constants

5.14 CAD display constants

Value Constant Type Description
1 kCADDisplayModalTools longint
2 kCADDisplayButtonTools longint
4 kCADDisplayZoomInfo longint
8 kCADDisplayMeasurePane longint
16 kCADDisplayHorizontalScrollBar longint
32 kCADDisplayVerticalScrollBar longint
64 kCADDisplayFrame longint
128 kCADDisplayBorder longint
256 kCADDisplayBoard longint
512 kCADDisplayHasAutoResize longint
1024 kCADDisplayMeasurePaneAnchors longint
2048 kCADDisplayMeasurePaneUp longint
4096 kCADDisplayMeasurePaneMargin longint
1535 kCADDisplayDefault longint

Used by
CADGetDisplay and CADSetDisplay.


Next: , Previous: CAD display constants, Up: Errors and constants

5.15 CAD DXF import constants

Value Constant Type Description
'' kCADDefaultDXFFontStr string
0 kCADDefaultDXFSolidFillStyle longint
0 kCADDefaultDXFSolidFillColor longint
0 kCADDefaultDXF3DFaceFillStyle longint
0 kCADDefaultDXF3DFaceFillColor longint
kCADTrue kCADDefaultDXFInvisibleObjFlag integer
kCADTrue kCADDefaultDXFConvertPolyToLine integer
kCADTrue kCADDefaultDXFConvertPolyToBox integer
kCADFalse kCADDefaultDXFReadColorsFlag integer

Used by
CADImportDXF.


Next: , Previous: CAD DXF import constants, Up: Errors and constants

5.16 CAD error handling constants

Value Constant Type Description
0 kCADErrorResultDontFilter longint
1 kCADErrorResultDoFilter longint

Used by
CADOnError.


Next: , Previous: CAD error handling constants, Up: Errors and constants

5.17 CAD event data constants

Value Constant Type Description
1 kCADEventDataSolidGrip longint
2 kCADEventDataOpenGrip longint

1 kCADEventDataZoomIn longint
2 kCADEventDataZoomOut longint
3 kCADEventDataZoomContinuous longint

1 kCADEventDataScrollH longint
2 kCADEventDataScrollV longint

1 kCADEventDataTransByMouse longint
2 kCADEventDataTransByArrowKey longint
3 kCADEventDataTransByMeasurePane longint

1 kCADEventDataRotateObjByMouse longint under development
3 kCADEventDataRotateObjByMeasure longint

Used by
CADOnEvent.

Also see
The chapter on Events.


Next: , Previous: CAD event data constants, Up: Errors and constants

5.18 CAD event filter constants

Value Constant Type Description
−1 kCADEventFilterAll longint

1 kCADEventFilter1ModeChange longint
2 kCADEventFilter1Command longint
4 kCADEventFilter1Zoom longint
8 kCADEventFilter1Scroll longint
16 kCADEventFilter1DragScroll longint
32 kCADEventFilter1ClipBox longint
64 kCADEventFilter1EditCut longint
128 kCADEventFilter1EditCopy longint
256 kCADEventFilter1EditPaste longint
512 kCADEventFilter1EditClear longint
1024 kCADEventFilter1EditSelectAll longint
2048 kCADEventFilter1UndoRedo longint

1 kCADEventFilter2KeyDown longint
2 kCADEventFilter2AutoKeyDown longint
4 kCADEventFilter2SelectDeselect longint
8 kCADEventFilter2ObjDoubleClick longint
16 kCADEventFilter2ObjTranslate longint
32 kCADEventFilter2ObjReshape longint
64 kCADEventFilter2ObjCreate longint
128 kCADEventFilter2SpecialClick longint
256 kCADEventFilter2WriteString longint
512 kCADEventFilter2ObjRotate longint
1024 kCADEventFilter2ChangeOfMeasure longint
2048 kCADEventFilter2ContextMenu longint
4096 kCADEventFilter2Idle longint

Used by
CADGetOnEvent and CADSetOnEvent.


Next: , Previous: CAD event filter constants, Up: Errors and constants

5.19 CAD event ID constants

Value Constant Type Description
1 kCADEventIDModeChange longint
2 kCADEventIDCommand longint
3 kCADEventIDZoom longint
4 kCADEventIDScroll longint
5 kCADEventIDDragScroll longint
6 kCADEventIDClipBox longint
7 kCADEventIDEditCut longint
8 kCADEventIDEditCopy longint
9 kCADEventIDEditPaste longint
10 kCADEventIDEditClear longint
11 kCADEventIDEditSelectAll longint
12 kCADEventIDUndoRedo longint
33 kCADEventIDKeyDown longint
34 kCADEventIDAutoKeyDown longint
35 kCADEventIDSelectDeselect longint
36 kCADEventIDObjDoubleClick longint
37 kCADEventIDObjTranslate longint
38 kCADEventIDObjReshape longint
39 kCADEventIDObjCreate longint
40 kCADEventIDSpecialClick longint
41 kCADEventIDWriteString longint
42 kCADEventIDObjRotate longint
43 kCADEventIDChangeOfMeasure longint
44 kCADEventIDContextMenu longint
45 kCADEventIDIdle longint

Used by
CADOnEvent.

Also see
The chapter on Events.


Next: , Previous: CAD event ID constants, Up: Errors and constants

5.20 CAD event phase constants

Value Constant Type Description
1 kCADEventPhaseBefore longint
2 kCADEventPhaseDuring longint
3 kCADEventPhaseAfter longint
4 kCADEventPhaseTrack longint

Used by
CADGetOnEvent, CADSetOnEvent and CADOnEvent.


Next: , Previous: CAD event phase constants, Up: Errors and constants

5.21 CAD event result filter constants

Value Constant Type Description
0 kCADEventResultDontFilter longint
1 kCADEventResultDoFilter longint

Used by
CADOnEvent.


Next: , Previous: CAD event result filter constants, Up: Errors and constants

5.22 CAD event result trigger constants

Value Constant Type Description
0 kCADEventResultTriggerUndoRedo longint trigger an undo and redo
1 kCADEventResultTriggerUndoOnly longint trigger an undo only
2 kCADEventResultTriggerNone longint trigger nothing
3 kCADEventResultTriggerTrackObj longint trigger a kCADEventPhaseTrack each time the mouse is over another (or no) object
4 kCADEventResultTriggerTrackX longint trigger a kCADEventPhaseTrack each time the mouse X-coordinate changes
5 kCADEventResultTriggerTrackY longint trigger a kCADEventPhaseTrack each time the mouse Y-coordinate changes
6 kCADEventResultTriggerTrackXY longint trigger a kCADEventPhaseTrack each time the mouse X- or Y-coordinate changes
8 kCADEventResultTriggerIdle longint also trigger kCADEventIDIdle events during the track

Used by
CADOnEvent for kCADEventIDSpecialClick.


Next: , Previous: CAD event result trigger constants, Up: Errors and constants

5.23 CAD fill style constants

Value Constant Type Description
1 kCADFillStyleEmpty longint
2 kCADFillStyleSolid longint
3 kCADFillStyleTransparent longint
4 kCADFillStyleBackgroundColor longint

Used by
CADGetDefaults, CADSetDefaults, CADAddSquare, CADAddRectangle, CADAddPolyLine, CADAddCircle, CADAddCircleArc, CADAddEllipse, CADAddEllipseArc, CADObjSquare, CADObjRectangle, CADObjPolyLine, CADObjCircle, CADObjCircleArc, CADObjEllipse, CADObjEllipseArc, CADGetFill, CADSetFill and CADImportDXF.


Next: , Previous: CAD fill style constants, Up: Errors and constants

5.24 CAD flip constants

Value Constant Type Description
1 kCADMaskFlipLeftRight longint
2 kCADMaskFlipTopBottom longint

Used by
CADFlipObj and CADFlipMatrix.


Next: , Previous: CAD flip constants, Up: Errors and constants

5.25 CAD font style constants

Value Constant Type Description
1 kCADMaskFontStylePlain longint
2 kCADMaskFontStyleBold longint
4 kCADMaskFontStyleItalic longint
8 kCADMaskFontStyleUnderlined longint
16 kCADMaskFontStyleCondensed longint
32 kCADMaskFontStyleExtended longint

Used by
CADGetDefaults, CADSetDefaults, CADAddString, CADObjString, CADStringBounds, CADGetFont and CADSetFont


Next: , Previous: CAD font style constants, Up: Errors and constants

5.26 CAD goto page constants

Value Constant Type Description
0 kCADGotoPageAutomatic longint

Used by
CADGotoPage.


Next: , Previous: CAD goto page constants, Up: Errors and constants

5.27 CAD hatch alignment constants

Value Constant Type Description
1 kCADHatchAlignLeft longint
1 kCADHatchAlignBottom longint
2 kCADHatchAlignMid longint
3 kCADHatchAlignRight longint
3 kCADHatchAlignTop longint

Used by
CADGetHatch and CADSetHatch.


Next: , Previous: CAD hatch alignment constants, Up: Errors and constants

5.28 CAD hatch ID constants

Value Constant Type Description
1 kCADHatchIDNoHatch longint
2 kCADHatchIDAnsi31 longint
3 kCADHatchIDAnsi32 longint
4 kCADHatchIDAnsi33 longint
5 kCADHatchIDAnsi34 longint
6 kCADHatchIDAnsi35 longint
7 kCADHatchIDAnsi36 longint
8 kCADHatchIDAnsi37 longint
9 kCADHatchIDAnsi38 longint
10 kCADHatchIDStripes longint
11 kCADHatchIDBrass longint
12 kCADHatchIDDash longint
13 kCADHatchIDDots longint
14 kCADHatchIDGrate longint
15 kCADHatchIDNet longint
16 kCADHatchIDNet3 longint
17 kCADHatchIDSteel longint
18 kCADHatchIDPlastic1 longint
19 kCADHatchIDPlastic2 longint
20 kCADHatchIDRubber longint
21 kCADHatchIDPiazza longint
22 kCADHatchIDStars longint
23 kCADHatchIDHex longint
24 kCADHatchIDHoney longint
25 kCADHatchIDDanube longint
26 kCADHatchIDZigZag longint
27 kCADHatchIDStreet longint
28 kCADHatchIDCross longint
29 kCADHatchIDGrass longint
30 kCADHatchIDHound longint
31 kCADHatchIDEarth longint
32 kCADHatchIDParket longint
33 kCADHatchIDChess longint
34 kCADHatchIDDolmit longint
35 kCADHatchIDBambino longint
36 kCADHatchIDBrick1 longint
37 kCADHatchIDBrick2 longint
38 kCADHatchIDBrick3 longint
39 kCADHatchIDSand longint
40 kCADHatchIDFelt longint

Used by
CADGetDefaults, CADSetDefaults, CADAddSquare, CADAddRectangle, CADAddPolyLine, CADAddCircle, CADAddCircleArc, CADAddEllipse, CADAddEllipseArc, CADObjSquare, CADObjRectangle, CADObjPolyLine, CADObjCircle, CADObjCircleArc, CADObjEllipse, CADObjEllipseArc, CADGetHatch and CADSetHatch.


Next: , Previous: CAD hatch ID constants, Up: Errors and constants

5.29 CAD hatch param constants

Value Constant Type Description
1 kCADHatchParamsIDMask longint
2 kCADHatchParamsColorMask longint
4 kCADHatchParamsScaleMask longint
8 kCADHatchParamsRotationMask longint
16 kCADHatchParamsTranslationXMask longint
32 kCADHatchParamsTranslationYMask longint
64 kCADHatchParamsAlignHMask longint
128 kCADHatchParamsAlignVMask longint
255 kCADHatchParamsAllMask longint

Used by
CADGetHatch and CADSetHatch.


Next: , Previous: CAD hatch param constants, Up: Errors and constants

5.30 CAD key mask constants

Value Constant Type Description
−1 kCADKeyMaskAllKeys longint
1 kCADKeyMaskForKey01 longint
2 kCADKeyMaskForKey02 longint
4 kCADKeyMaskForKey03 longint
8 kCADKeyMaskForKey04 longint
16 kCADKeyMaskForKey05 longint
32 kCADKeyMaskForKey06 longint
64 kCADKeyMaskForKey07 longint
128 kCADKeyMaskForKey08 longint
256 kCADKeyMaskForKey09 longint
512 kCADKeyMaskForKey10 longint

Used by
CADGetKeyMask and CADSetKeyMask.


Next: , Previous: CAD key mask constants, Up: Errors and constants

5.31 CAD key constants

Value Constant Type Description
10 kCADMaxKeyIndex longint Number of keys available for Objects, Blocks, Layers, and Sublayers

Used by
CADGetLayerKey, CADSetLayerKey, CADGetBlockKey, CADSetBlockKey, CADGetKey, CADSetKey, CADGetObjKey, CADSetObjKey, CADGetKeyArray, CADSetKeyArray and CADFindByKey.


Next: , Previous: CAD key constants, Up: Errors and constants

5.32 CAD layer ID constants

Value Constant Type Description
0 kCADNoCurrentLayerID longint
4095 kCADNotOnSubLayerID longint

Used by
CADGetCurrentLayer, CADGetLayer, CADSetLayer and CADGetObjInfo.


Next: , Previous: CAD layer ID constants, Up: Errors and constants

5.33 CAD layer mode constants

Value Constant Type Description
1 kCADLayerModeInvisible longint
2 kCADLayerModeDimmed longint
3 kCADLayerModeVisible longint
4 kCADLayerModeEditable longint

Used by
CADGetSnapPrefs, CADSetSnapPrefs, CADGetLayerAttributes, CADSetLayerAttributes, CADSelect, CADFindCrossings and CADHatchToLine.


Next: , Previous: CAD layer mode constants, Up: Errors and constants

5.34 CAD layer removal constants

Value Constant Type Description
1 kCADLayerToRemoveMustBeEmpty longint
2 kCADLayerToRemoveMakeEmpty longint

Used by
CADRemoveLayer.


Next: , Previous: CAD layer removal constants, Up: Errors and constants

5.35 CAD linetype ID constants

Value Constant Type Description
1 kCADLineTypeContinuousID longint
2 kCADLineTypeBorderID longint
3 kCADLineTypeCenterID longint
4 kCADLineTypeDashDotID longint
5 kCADLineTypeDashedID longint
6 kCADLineTypeDivideID longint
7 kCADLineTypeDottedID longint
8 kCADLineTypePhantomID longint

Used by
CADGetLineTypeIDs, CADGetLineTypeDefinition, CADGetDefaults, CADSetDefaults, CADAddLine, CADAddSquare, CADAddRectangle, CADAddPolyLine, CADAddCircle, CADAddCircleArc, CADAddEllipse, CADAddEllipseArc, CADObjLine, CADObjSquare, CADObjRectangle, CADObjPolyLine, CADObjCircle, CADObjCircleArc, CADObjEllipse, CADObjEllipseArc, CADGetLineType and CADSetLineType.


Next: , Previous: CAD linetype ID constants, Up: Errors and constants

5.36 CAD linetype type constants

Value Constant Type Description
1 kCADLineTypeStandardType longint
2 kCADLineTypeDXFType longint
3 kCADLineTypeApplicationType longint

Used by
CADGetLineTypeDefinition.


Next: , Previous: CAD linetype type constants, Up: Errors and constants

5.37 CAD locking parameter constants

Value Constant Type Description
1 kCADLockingIgnoreLock longint

Other values than kCADLockingIgnoreLock are reserved for future use.

Used by
CADRemoveLayer, CADRemoveBlock, CADSetBlockKey, CADSetBlockName, CADSetLayer, CADMoveToFront, CADMoveToBack, CADRemoveObj, CADSetFill, CADSetColor, CADSetInsertColor, CADSetLineWidth, CADSetFont, CADSetLineType, CADSetMarking, CADSetHatch, CADSetKey, CADSetObjKey, CADSetKeyArray, CADTranslate, CADRotate, CADScale, CADMirror, CADShear, CADTransform, CADRotateObj, CADStretchObj, CADLengthenObj, CADFlipObj, CADAlign and CADBlend.


Next: , Previous: CAD locking parameter constants, Up: Errors and constants

5.38 CAD marking ID constants

Value Constant Type Description
1 kCADMarkingNoneID longint
2 kCADMarkingByOpenArrowID longint
3 kCADMarkingByClosedArrowID longint
4 kCADMarkingByReverseOpenArrowID longint
5 kCADMarkingByReverseClosedArrID longint
6 kCADMarkingByOpenDartID longint
7 kCADMarkingByClosedDartID longint
8 kCADMarkingByReverseOpenDartID longint
9 kCADMarkingByReverseClosedDrtID longint
10 kCADMarkingByOpenBarID longint
11 kCADMarkingByClosedBarID longint
12 kCADMarkingByOpenSlashID longint
13 kCADMarkingByClosedSlashID longint
14 kCADMarkingByOpenSlashBarID longint
15 kCADMarkingByClosedSlashBarID longint
16 kCADMarkingByOpenCrossID longint
17 kCADMarkingByClosedCrossID longint
18 kCADMarkingByOpenDotID longint
19 kCADMarkingByClosedDotID longint

Used by
CADGetDefaults, CADSetDefaults, CADObjLine, CADObjCircleArc, CADObjEllipseArc, CADGetMarking and CADSetMarking.


Next: , Previous: CAD marking ID constants, Up: Errors and constants

5.39 CAD measure type constants

Value Constant Type Description
1 kCADMeasureLength longint
2 kCADMeasureWidth longint
3 kCADMeasureLengthDiff longint
4 kCADMeasureWidthDiff longint
5 kCADMeasureLineLength longint
6 kCADMeasureLineLengthDiff longint
7 kCADMeasureRotation longint
8 kCADMeasureRotationDiff longint
9 kCADMeasureX longint
10 kCADMeasureY longint
11 kCADMeasureXDiff longint
12 kCADMeasureYDiff longint
13 kCADMeasureStartAngle longint
14 kCADMeasureEndAngle longint
15 kCADMeasurePerimeter longint
16 kCADMeasureSurfaceArea longint

Used by
CADGetMeasurePrefs, CADSetMeasurePrefs and CADOnEvent.


Next: , Previous: CAD measure type constants, Up: Errors and constants

5.40 CAD method name constants

Value Constant Type Description
CADAcceptDXF mCADAcceptDXF string
CADAddArray mCADAddArray string
CADAddBlock mCADAddBlock string
CADAddCircle mCADAddCircle string
CADAddCircleArc mCADAddCircleArc string
CADAddEllipse mCADAddEllipse string
CADAddEllipseArc mCADAddEllipseArc string
CADAddImage mCADAddImage string
CADAddInsert mCADAddInsert string
CADAddInsertXY mCADAddInsertXY string
CADAddLayer mCADAddLayer string
CADAddLine mCADAddLine string
CADAddPolyLine mCADAddPolyLine string
CADAddRectangle mCADAddRectangle string
CADAddScope mCADAddScope string
CADAddSquare mCADAddSquare string
CADAddString mCADAddString string
CADAddSubLayer mCADAddSubLayer string
CADAlign mCADAlign string
CADArcAndArc mCADArcAndArc string
CADArcCos mCADArcCos string
CADArcSin mCADArcSin string
CADArcTan2 mCADArcTan2 string
CADAutoZoom mCADAutoZoom string
CADBlend mCADBlend string
CADBlendColor mCADBlendColor string
CADBlobToFile mCADBlobToFile string
CADBounds mCADBounds string
CADCalcImageMatrix mCADCalcImageMatrix string
CADCalcImageResolution mCADCalcImageResolution string
CADCalcMatrix mCADCalcMatrix string
CADCancelDXF mCADCancelDXF string
CADCheckPoly mCADCheckPoly string
CADClear mCADClear string
CADColorToDXF mCADColorToDXF string
CADColorToIndex mCADColorToIndex string
CADColorToRGB mCADColorToRGB string
CADCommand mCADCommand string
CADCompareBlock mCADCompareBlock string
CADCompareObj mCADCompareObj string
CADCopyArea mCADCopyArea string
CADCopyArrays mCADCopyArrays string
CADCopyAttributes mCADCopyAttributes string
CADCopyBlocks mCADCopyBlocks string
CADCopyByMatrix mCADCopyByMatrix string
CADCopyLayers mCADCopyLayers string
CADCopyObjByMatrix mCADCopyObjByMatrix string
CADCopyObjTo mCADCopyObjTo string
CADCopyPageSetup mCADCopyPageSetup string
CADCopyPrefs mCADCopyPrefs string
CADCopyScope mCADCopyScope string
CADCopyTo mCADCopyTo string
CADCos mCADCos string
CADCount mCADCount string
CADDXFToColor mCADDXFToColor string
CADDecimalDifference mCADDecimalDifference string
CADDecimalSum mCADDecimalSum string
CADDistanceXY mCADDistanceXY string
CADEmptyScope mCADEmptyScope string
CADEndOffscreen mCADEndOffscreen string
CADFileToBlob mCADFileToBlob string
CADFileToPict mCADFileToPict string
CADFindByKey mCADFindByKey string
CADFindByLock mCADFindByLock string
CADFindByType mCADFindByType string
CADFindCrossings mCADFindCrossings string
CADFindSnap mCADFindSnap string
CADFlipMatrix mCADFlipMatrix string
CADFlipObj mCADFlipObj string
CADFromScope mCADFromScope string
CADGetAreaPrefs mCADGetAreaPrefs string
CADGetArray mCADGetArray string
CADGetArrayIDs mCADGetArrayIDs string
CADGetBackColor mCADGetBackColor string
CADGetBlockAddedSnaps mCADGetBlockAddedSnaps string
CADGetBlockInfo mCADGetBlockInfo string
CADGetBlockKey mCADGetBlockKey string
CADGetBlockSnapMask mCADGetBlockSnapMask string
CADGetBlocks mCADGetBlocks string
CADGetCADFile mCADGetCADFile string
CADGetCircle mCADGetCircle string
CADGetCircleArc mCADGetCircleArc string
CADGetClipBox mCADGetClipBox string
CADGetColor mCADGetColor string
CADGetColorItem mCADGetColorItem string
CADGetColorsDim mCADGetColorsDim string
CADGetCurrentLayer mCADGetCurrentLayer string
CADGetDXFFile mCADGetDXFFile string
CADGetDefaults mCADGetDefaults string
CADGetDimPrefs mCADGetDimPrefs string
CADGetDisplay mCADGetDisplay string
CADGetDragPrefs mCADGetDragPrefs string
CADGetDrawPrefs mCADGetDrawPrefs string
CADGetDrawSize mCADGetDrawSize string
CADGetEllipse mCADGetEllipse string
CADGetEllipseArc mCADGetEllipseArc string
CADGetFill mCADGetFill string
CADGetFont mCADGetFont string
CADGetHatch mCADGetHatch string
CADGetImage mCADGetImage string
CADGetImageFile mCADGetImageFile string
CADGetImageFileInfo mCADGetImageFileInfo string
CADGetImageInfo mCADGetImageInfo string
CADGetImageXY mCADGetImageXY string
CADGetInsert mCADGetInsert string
CADGetInsertColor mCADGetInsertColor string
CADGetInsertID mCADGetInsertID string
CADGetInsertXY mCADGetInsertXY string
CADGetItemColor mCADGetItemColor string
CADGetKey mCADGetKey string
CADGetKeyArray mCADGetKeyArray string
CADGetKeyMask mCADGetKeyMask string
CADGetLayer mCADGetLayer string
CADGetLayerAttributes mCADGetLayerAttributes string
CADGetLayerKey mCADGetLayerKey string
CADGetLayerOrder mCADGetLayerOrder string
CADGetLayers mCADGetLayers string
CADGetLine mCADGetLine string
CADGetLineType mCADGetLineType string
CADGetLineTypeDefinition mCADGetLineTypeDefinition string
CADGetLineTypeIDs mCADGetLineTypeIDs string
CADGetLineWidth mCADGetLineWidth string
CADGetLock mCADGetLock string
CADGetMarking mCADGetMarking string
CADGetMatrixPlane mCADGetMatrixPlane string
CADGetMeasurePrefs mCADGetMeasurePrefs string
CADGetMode mCADGetMode string
CADGetMouseWheelPrefs mCADGetMouseWheelPrefs string
CADGetObjID mCADGetObjID string
CADGetObjIDsArray mCADGetObjIDsArray string
CADGetObjInfo mCADGetObjInfo string
CADGetObjKey mCADGetObjKey string
CADGetObjLock mCADGetObjLock string
CADGetObjType mCADGetObjType string
CADGetOnError mCADGetOnError string
CADGetOnEvent mCADGetOnEvent string
CADGetPaperSizes mCADGetPaperSizes string
CADGetPolyAngle mCADGetPolyAngle string
CADGetPolyLine mCADGetPolyLine string
CADGetPrintSpecs mCADGetPrintSpecs string
CADGetRectangle mCADGetRectangle string
CADGetRedraw mCADGetRedraw string
CADGetRef mCADGetRef string
CADGetScale mCADGetScale string
CADGetScopeIDs mCADGetScopeIDs string
CADGetScroll mCADGetScroll string
CADGetSnapPrefs mCADGetSnapPrefs string
CADGetSquare mCADGetSquare string
CADGetString mCADGetString string
CADGetStringXY mCADGetStringXY string
CADGetSubLayers mCADGetSubLayers string
CADGetSysBackColor mCADGetSysBackColor string
CADGetTitleSplit mCADGetTitleSplit string
CADGetUndoPrefs mCADGetUndoPrefs string
CADGetUnit mCADGetUnit string
CADGetVersion mCADGetVersion string
CADGetZoom mCADGetZoom string
CADGetZoomPrefs mCADGetZoomPrefs string
CADGotoPage mCADGotoPage string
CADHatchToLine mCADHatchToLine string
CADIdentityMatrix mCADIdentityMatrix string
CADImportDXF mCADImportDXF string
CADImportImage mCADImportImage string
CADInScope mCADInScope string
CADIndexToColor mCADIndexToColor string
CADInvertMatrix mCADInvertMatrix string
CADLastArea mCADLastArea string
CADLengthenObj mCADLengthenObj string
CADLineAndArc mCADLineAndArc string
CADLineAndLine mCADLineAndLine string
CADLineAndRect mCADLineAndRect string
CADLoadFromBlob mCADLoadFromBlob string
CADLoadFromFile mCADLoadFromFile string
CADLoadFromPict mCADLoadFromPict string
CADLoadFromRes mCADLoadFromRes string
CADMetrics mCADMetrics string
CADMetricsByMatrix mCADMetricsByMatrix string
CADMirror mCADMirror string
CADMirrorMatrix mCADMirrorMatrix string
CADMoveByMatrix mCADMoveByMatrix string
CADMoveTo mCADMoveTo string
CADMoveToBack mCADMoveToBack string
CADMoveToFront mCADMoveToFront string
CADNewOffscreen mCADNewOffscreen string
CADObjBox mCADObjBox string
CADObjCenter mCADObjCenter string
CADObjCircle mCADObjCircle string
CADObjCircleArc mCADObjCircleArc string
CADObjEllipse mCADObjEllipse string
CADObjEllipseArc mCADObjEllipseArc string
CADObjImage mCADObjImage string
CADObjInsert mCADObjInsert string
CADObjLine mCADObjLine string
CADObjPerimeter mCADObjPerimeter string
CADObjPolyLine mCADObjPolyLine string
CADObjRectangle mCADObjRectangle string
CADObjSquare mCADObjSquare string
CADObjString mCADObjString string
CADObjSurface mCADObjSurface string
CADOneObjID mCADOneObjID string
CADPageSetup mCADPageSetup string
CADPictToBlob mCADPictToBlob string
CADPictToFile mCADPictToFile string
CADPointInPoly mCADPointInPoly string
CADPointInRect mCADPointInRect string
CADPointOnLine mCADPointOnLine string
CADPolyAndPoly mCADPolyAndPoly string
CADPolyBounds mCADPolyBounds string
CADPolyCalc mCADPolyCalc string
CADPolyUndouble mCADPolyUndouble string
CADPrint mCADPrint string
CADPrintToPDF mCADPrintToPDF string
CADPutCADFile mCADPutCADFile string
CADRGBToColor mCADRGBToColor string
CADRectAndRect mCADRectAndRect string
CADRedrawArea mCADRedrawArea string
CADRefFromBlob mCADRefFromBlob string
CADRefFromFile mCADRefFromFile string
CADRefFromPict mCADRefFromPict string
CADRemoveArray mCADRemoveArray string
CADRemoveBlock mCADRemoveBlock string
CADRemoveLayer mCADRemoveLayer string
CADRemoveObj mCADRemoveObj string
CADRemoveScope mCADRemoveScope string
CADResetUndo mCADResetUndo string
CADRotate mCADRotate string
CADRotateMatrix mCADRotateMatrix string
CADRotateObj mCADRotateObj string
CADRotateXY mCADRotateXY string
CADScale mCADScale string
CADScaleMatrix mCADScaleMatrix string
CADScaleXY mCADScaleXY string
CADScopeLogic mCADScopeLogic string
CADScroll mCADScroll string
CADScrollTo mCADScrollTo string
CADSelect mCADSelect string
CADSetAreaPrefs mCADSetAreaPrefs string
CADSetArray mCADSetArray string
CADSetBackColor mCADSetBackColor string
CADSetBlockAddedSnaps mCADSetBlockAddedSnaps string
CADSetBlockKey mCADSetBlockKey string
CADSetBlockName mCADSetBlockName string
CADSetBlockSnapMask mCADSetBlockSnapMask string
CADSetCircle mCADSetCircle string
CADSetCircleArc mCADSetCircleArc string
CADSetClipBox mCADSetClipBox string
CADSetColor mCADSetColor string
CADSetColorItem mCADSetColorItem string
CADSetColorsDim mCADSetColorsDim string
CADSetCurrentLayer mCADSetCurrentLayer string
CADSetDefaults mCADSetDefaults string
CADSetDimPrefs mCADSetDimPrefs string
CADSetDisplay mCADSetDisplay string
CADSetDragPrefs mCADSetDragPrefs string
CADSetDrawPrefs mCADSetDrawPrefs string
CADSetDrawSize mCADSetDrawSize string
CADSetEllipse mCADSetEllipse string
CADSetEllipseArc mCADSetEllipseArc string
CADSetFill mCADSetFill string
CADSetFont mCADSetFont string
CADSetHatch mCADSetHatch string
CADSetImage mCADSetImage string
CADSetImageXY mCADSetImageXY string
CADSetInsert mCADSetInsert string
CADSetInsertColor mCADSetInsertColor string
CADSetInsertID mCADSetInsertID string
CADSetInsertXY mCADSetInsertXY string
CADSetItemColor mCADSetItemColor string
CADSetKey mCADSetKey string
CADSetKeyArray mCADSetKeyArray string
CADSetKeyMask mCADSetKeyMask string
CADSetLayer mCADSetLayer string
CADSetLayerAttributes mCADSetLayerAttributes string
CADSetLayerKey mCADSetLayerKey string
CADSetLayerOrder mCADSetLayerOrder string
CADSetLine mCADSetLine string
CADSetLineType mCADSetLineType string
CADSetLineWidth mCADSetLineWidth string
CADSetLock mCADSetLock string
CADSetMarking mCADSetMarking string
CADSetMeasurePrefs mCADSetMeasurePrefs string
CADSetMode mCADSetMode string
CADSetMouseWheelPrefs mCADSetMouseWheelPrefs string
CADSetObjKey mCADSetObjKey string
CADSetObjLock mCADSetObjLock string
CADSetOnError mCADSetOnError string
CADSetOnEvent mCADSetOnEvent string
CADSetPolyAngle mCADSetPolyAngle string
CADSetPolyLine mCADSetPolyLine string
CADSetPrintSpecs mCADSetPrintSpecs string
CADSetRectangle mCADSetRectangle string
CADSetRedraw mCADSetRedraw string
CADSetRef mCADSetRef string
CADSetScale mCADSetScale string
CADSetSnapPrefs mCADSetSnapPrefs string
CADSetSquare mCADSetSquare string
CADSetString mCADSetString string
CADSetStringXY mCADSetStringXY string
CADSetTitleSplit mCADSetTitleSplit string
CADSetUndoPrefs mCADSetUndoPrefs string
CADSetUnit mCADSetUnit string
CADSetZoomPrefs mCADSetZoomPrefs string
CADShear mCADShear string
CADShearMatrix mCADShearMatrix string
CADSin mCADSin string
CADSpirograph mCADSpirograph string
CADSplitPoly mCADSplitPoly string
CADSplitPolyXY mCADSplitPolyXY string
CADStandardMatrix mCADStandardMatrix string
CADStoreToBlob mCADStoreToBlob string
CADStoreToFile mCADStoreToFile string
CADStoreToPict mCADStoreToPict string
CADStretchMatrix mCADStretchMatrix string
CADStretchObj mCADStretchObj string
CADStringBounds mCADStringBounds string
CADToPixels mCADToPixels string
CADToScope mCADToScope string
CADTransform mCADTransform string
CADTransformMatrix mCADTransformMatrix string
CADTransformXY mCADTransformXY string
CADTranslate mCADTranslate string
CADTranslateMatrix mCADTranslateMatrix string
CADTriggerUndo mCADTriggerUndo string
CADTypeOfScope mCADTypeOfScope string
CADZoom mCADZoom string

Used by
To be used by the application, e.g. in Error handling.


Next: , Previous: CAD method name constants, Up: Errors and constants

5.41 CAD mirror constants

Value Constant Type Description
1 kCADMaskMirrorInVerticalAxis longint
2 kCADMaskMirrorInHorizontalAxis longint
4 kCADMaskMirrorInAscendDiagonal longint
8 kCADMaskMirrorInDescendDiagonal longint

Used by
CADMirror and CADMirrorMatrix.


Next: , Previous: CAD mirror constants, Up: Errors and constants

5.42 CAD mode constants

Value Constant Type Description
1 kCADModeIntersect longint
2 kCADModeEnclose longint
3 kCADModeTouch longint
4 kCADModeReshape longint
5 kCADModeRotate longint
6 kCADModeTranslate longint
7 kCADModeZoomIn longint
8 kCADModeZoomOut longint
9 kCADModeZoomContinuous longint
10 kCADModeDragScroll longint
11 kCADModeDrawLine longint
12 kCADModeDrawPolyLine longint
13 kCADModeDrawSquare longint
14 kCADModeDrawRectangle longint
15 kCADModeDrawCircle longint
16 kCADModeDrawEllipse longint
17 kCADModeDrawCircleArc longint
18 kCADModeDrawEllipseArc longint
19 kCADModeSpecialClick longint
20 kCADModeWriteString longint
21 kCADModeClipBox longint
22 kCADModePrintingPreview longint

Used by
CADLoadFromFile, CADLoadFromPict, CADLoadFromBlob, CADLoadFromRes, CADGetMode, CADSetMode and CADOnEvent.


Next: , Previous: CAD mode constants, Up: Errors and constants

5.43 CAD mode mask constants

Value Constant Type Description
-1 kCADModeMaskAll longint
1 kCADModeMaskIntersect longint
2 kCADModeMaskEnclose longint
4 kCADModeMaskTouch longint
8 kCADModeMaskReshape longint
16 kCADModeMaskRotate longint
32 kCADModeMaskTranslate longint
64 kCADModeMaskZoomIn longint
128 kCADModeMaskZoomOut longint
256 kCADModeMaskZoomContinuous longint
512 kCADModeMaskDragScroll longint
1024 kCADModeMaskDrawLine longint
2048 kCADModeMaskDrawPolyLine longint
4096 kCADModeMaskDrawSquare longint
8192 kCADModeMaskDrawRectangle longint
16384 kCADModeMaskDrawCircle longint
32768 kCADModeMaskDrawEllipse longint
65536 kCADModeMaskDrawCircleArc longint
131072 kCADModeMaskDrawEllipseArc longint
262144 kCADModeMaskSpecialClick longint
524288 kCADModeMaskWriteString longint
1048576 kCADModeMaskClipBox longint
2097152 kCADModeMaskPrintingPreview longint

Used by
CADGetDisplay and CADSetDisplay.


Next: , Previous: CAD mode mask constants, Up: Errors and constants

5.44 CAD modifier key constants

Value Constant Type Description
0 kCADModifierNoKey longint
256 kCADModifierCommandKey longint
512 kCADModifierShiftKey longint
2048 kCADModifierOptionKey longint

Used by
CADGetAreaPrefs, CADSetAreaPrefs, CADGetMouseWheelPrefs, CADSetMouseWheelPrefs, and CADOnEvent.


Next: , Previous: CAD modifier key constants, Up: Errors and constants

5.45 CAD mouse wheel use constants

Value Constant Type Description
1 kCADUseMouseWheelForScroll longint
2 kCADUseMouseWheelForZoom longint

Used by
CADGetMouseWheelPrefs and CADSetMouseWheelPrefs.


Next: , Previous: CAD mouse wheel use constants, Up: Errors and constants

5.46 CAD mouse wheel zoom constants

Value Constant Type Description
1 kCADMouseWheelDownZoomsIn longint
2 kCADMouseWheelDownZoomsOut longint

Used by
CADGetMouseWheelPrefs and CADSetMouseWheelPrefs.


Next: , Previous: CAD mouse wheel zoom constants, Up: Errors and constants

5.47 CAD object locking mask constants

Value Constant Type Description
1 kCADObjLockMaskCutAndRemove longint
2 kCADObjLockMaskTranslate longint
4 kCADObjLockMaskReshape longint
8 kCADObjLockMaskReshapeH longint
16 kCADObjLockMaskReshapeV longint
32 kCADObjLockMaskRotateArcStart longint
64 kCADObjLockMaskRotateArcEnd longint
128 kCADObjLockMaskRotateObj longint
256 kCADObjLockMaskMirror longint

Used by
CADGetDefaults and CADSetDefaults.


Next: , Previous: CAD object locking mask constants, Up: Errors and constants

5.48 CAD object locking type constants

Value Constant Type Description
1 kCADObjLockCutAndRemove longint
2 kCADObjLockTranslate longint
3 kCADObjLockReshape longint
4 kCADObjLockReshapeH longint
5 kCADObjLockReshapeV longint
6 kCADObjLockRotateArcStart longint
7 kCADObjLockRotateArcEnd longint
8 kCADObjLockRotateObj longint
9 kCADObjLockMirror longint

Used by
CADGetLock, CADSetLock, CADGetObjLock, CADSetObjLock and CADFindByLock.


Next: , Previous: CAD object locking type constants, Up: Errors and constants

5.49 CAD object to get constants

Value Constant Type Description
1 kCADGetFirstObj longint
2 kCADGetNextObj longint
3 kCADGetPrevObj longint
4 kCADGetLastObj longint

Used by
CADGetObjID.


Next: , Previous: CAD object to get constants, Up: Errors and constants

5.50 CAD object type constants

Value Constant Type Description
2 kCADObjTypeLine longint
3 kCADObjTypeSquare longint
4 kCADObjTypeRectangle longint
5 kCADObjTypePolyLine longint
6 kCADObjTypeCircle longint
7 kCADObjTypeCircleArc longint
8 kCADObjTypeEllipse longint
9 kCADObjTypeEllipseArc longint
10 kCADObjTypeString longint
11 kCADObjTypeRasterImage longint
12 kCADObjTypeInsert longint

Used by
CADGetObjType, CADGetObjInfo and CADFindByType.


Next: , Previous: CAD object type constants, Up: Errors and constants

5.51 CAD paper orientation constants

Value Constant Type Description
1 kCADPaperOrientationPortrait longint
2 kCADPaperOrientationLandscape longint
3 kCADPaperOrientReversePortrait longint
4 kCADPaperOrientReverseLandscape longint

Used by
CADGetPaperSizes.


Next: , Previous: CAD paper orientation constants, Up: Errors and constants

5.52 CAD papersize unit constants

Value Constant Type Description
1 kCADPaperSizeUnitmm longint
2 kCADPaperSizeUnitInch longint
3 kCADPaperSizeUnitPixel longint

Used by
CADGetPaperSizes.


Next: , Previous: CAD papersize unit constants, Up: Errors and constants

5.53 CAD PDF flag constants

Value Constant Type Description
0 kCADPDFFlagNone longint
1 kCADPDFFlagPrintProgressOSX longint

Used by
CADPrintToPDF.


Next: , Previous: CAD PDF flag constants, Up: Errors and constants

5.54 CAD PDF engine constants

Value Constant Type Description
2 kCADPDFEngineAppleOSX longint Mac OS X built-in PDF engine (Mac only)

Used by
CADPrintToPDF.


Next: , Previous: CAD PDF engine constants, Up: Errors and constants

5.55 CAD point in polyline constants

Value Constant Type Description
0 kCADPointOutsidePoly longint
1 kCADPointOnPolyEdge longint
2 kCADPointInsidePoly longint

Used by
CADPointInPoly.


Next: , Previous: CAD point in polyline constants, Up: Errors and constants

5.56 CAD polyline check constants

Value Constant Type Description
0 kCADPolyCheckNoResult longint
1 kCADPolyCheckOK longint
2 kCADPolyCheckSelfCrossing longint
3 kCADPolyCheckDoublePoint longint
4 kCADPolyCheckDoubleLine longint

Used by
CADCheckPoly.


Next: , Previous: CAD polyline check constants, Up: Errors and constants

5.57 CAD polyline split constants

Value Constant Type Description
2 kCADSplitPolyToClosedPolys longint Splits to closed polylines, not returning any open connecting lines that may be part of the source polyline
3 kCADSplitPolyToTriangles1 longint Splits to triangles from the first polyline vertex
4 kCADSplitPolyToTriangles2 longint Splits to triangles from the polyline center of mass

Used by
CADSplitPoly and CADSplitPolyXY.


Next: , Previous: CAD polyline split constants, Up: Errors and constants

5.58 CAD print alignment constants

Value Constant Type Description
1 kCADAlignPrintOnPaperLeft longint
1 kCADAlignPrintOnPaperBottom longint
2 kCADAlignPrintOnPaperMid longint
3 kCADAlignPrintOnPaperRight longint
3 kCADAlignPrintOnPaperTop longint

Used by
CADGetPrintSpecs and CADSetPrintSpecs.


Next: , Previous: CAD print alignment constants, Up: Errors and constants

5.59 CAD print orientation constants

Value Constant Type Description
1 kCADPrintOrientationRotate0 longint
2 kCADPrintOrientationRotate90 longint
3 kCADPrintOrientationRotate180 longint
4 kCADPrintOrientationRotate270 longint

Used by
CADGetPrintSpecs and CADSetPrintSpecs.


Next: , Previous: CAD print orientation constants, Up: Errors and constants

5.60 CAD print resolution constants

Value Constant Type Description
0 kCADDefaultPrinterResolution longint

Used by
CADGetPrintSpecs and CADSetPrintSpecs.


Next: , Previous: CAD print resolution constants, Up: Errors and constants

5.61 CAD print size to use constants

Value Constant Type Description
1 kCADPrintSizeUseScopeBounds longint Calculates the physical bounds of the object scope to print and then fits it on paper (the default and useful for CAD drawings)
2 kCADPrintSizeUseDrawSize longint Fits the drawing plane on paper (useful for graphical designs related to a paper size)

Used by
CADGetPrintSpecs and CADSetPrintSpecs.


Next: , Previous: CAD print size to use constants, Up: Errors and constants

5.62 CAD progress constants

Value Constant Type Description
0 kCADProgressOpenAutomatic longint Open a progress dialog without Stop button for long operations
1 kCADProgressOpenAutoWithStop longint Open a progress dialog with Stop button for long operations
2 kCADProgressOpenNow longint Open a progress dialog without Stop button immediately
3 kCADProgressOpenNowWithStop longint Open a progress dialog with Stop button immediately
4 kCADProgressOpenNot longint Don’t open a progress dialog

Used by
CADLoadFromFile, CADLoadFromPict, CADLoadFromBlob, CADLoadFromRes, CADStoreToFile, CADStoreToPict, CADStoreToBlob and CADFindCrossings.


Next: , Previous: CAD progress constants, Up: Errors and constants

5.63 CAD raster image alignment constants

Value Constant Type Description
1 kCADImageAlignLeft longint
1 kCADImageAlignBottom longint
2 kCADImageAlignMid longint
3 kCADImageAlignRight longint
3 kCADImageAlignTop longint

Used by
CADAddImage, CADObjImage, CADGetImage, CADSetImage, CADGetImageXY, CADSetImageXY and CADImportImage.


Next: , Previous: CAD raster image alignment constants, Up: Errors and constants

5.64 CAD redraw mode constants

Value Constant Type Description
1 kCADRedrawModeRedrawNot longint
2 kCADRedrawModeRedrawAutomatic longint
3 kCADRedrawModeRedrawNow longint
4 kCADRedrawModeRedrawWithWatch longint

Used by
CADGetRedraw, CADSetRedraw and CADRedrawArea.


Next: , Previous: CAD redraw mode constants, Up: Errors and constants

5.65 CAD scope logic constants

Value Constant Type Description
1 kCADScopeLogicOr longint
2 kCADScopeLogicAnd longint
3 kCADScopeLogicXor longint
4 kCADScopeLogicAndNotB longint
5 kCADScopeLogicAndNotA longint

Used by
CADScopeLogic.


Next: , Previous: CAD scope logic constants, Up: Errors and constants

5.66 CAD scope type constants

Value Constant Type Description
1 kCADTypeOfScopeBySpecialID longint The Scope is either kCADScopeSelectedObjects, kCADScopeAllObjects or kCADScopeObjOnEditableLayers
2 kCADTypeOfScopeByScopeID longint The Scope is a programmer scope ID
3 kCADTypeOfScopeByLayerID longint The Scope is a Layer ID
4 kCADTypeOfScopeBySubLayerID longint The Scope is a Sublayer ID
5 kCADTypeOfScopeByObjID longint The Scope is an Object ID

Used by
CADTypeOfScope.


Next: , Previous: CAD scope type constants, Up: Errors and constants

5.67 CAD scope constants

Value Constant Type Description
1 kCADScopeSelectedObjects longint Selected objects, can be a target scope
3 kCADScopeAllObjects longint All objects, can’t be a target scope
4 kCADScopeObjOnEditableLayers longint All objects on layers with mode kCADLayerModeEditable, can’t be a target scope

Important
An object scope refers to objects in one Block or to objects in the root block of a drawing. It never consists of objects in different blocks. So, for example kCADScopeAllObjects for kCADRootBlockID refers to block insertion objects, but not to the contents of inserted blocks.

Used by
CADTriggerUndo, CADGetPaperSizes, CADTypeOfScope, CADEmptyScope, CADCopyScope, CADToScope, CADFromScope, CADInScope, CADScopeLogic, CADSelect, CADCount, CADGetObjIDsArray, CADOneObjID, CADGetObjID, CADGetLayer, CADSetLayer, CADGetObjType, CADFindByType, CADMoveToFront, CADMoveToBack, CADRemoveObj, CADBounds, CADMetrics, CADMetricsByMatrix, CADFindSnap, CADFindCrossings, CADHatchToLine, CADSplitPoly, CADGetFill, CADSetFill, CADGetColor, CADSetColor, CADGetInsertColor, CADSetInsertColor, CADGetLineWidth, CADSetLineWidth, CADGetFont, CADSetFont, CADGetLineType, CADSetLineType, CADGetMarking, CADSetMarking, CADGetHatch, CADSetHatch, CADGetLock, CADSetLock, CADFindByLock, CADGetKey, CADSetKey, CADGetKeyArray, CADSetKeyArray, CADFindByKey, CADMoveTo, CADCopyTo, CADMoveByMatrix, CADCopyByMatrix, CADCompareObj, CADTranslate, CADRotate, CADScale, CADMirror, CADShear, CADTransform, CADRotateObj, CADStretchObj, CADLengthenObj, CADFlipObj, CADAlign, CADBlend, CADSpirograph and CADOnEvent.


Next: , Previous: CAD scope constants, Up: Errors and constants

5.68 CAD scroll alignment constants

Value Constant Type Description
1 kCADScrollAlignLeft longint
1 kCADScrollAlignBottom longint
2 kCADScrollAlignMid longint
3 kCADScrollAlignRight longint
3 kCADScrollAlignTop longint

Used by
CADScrollTo and CADGetScroll.


Next: , Previous: CAD scroll alignment constants, Up: Errors and constants

5.69 CAD selection action constants

Value Constant Type Description
1 kCADSelectActionSelect longint
2 kCADSelectActionSelectAdd longint
3 kCADSelectActionDeselect longint

Used by
CADSelect and CADOnEvent.


Next: , Previous: CAD selection action constants, Up: Errors and constants

5.70 CAD selection method constants

Value Constant Type Description
1 kCADSelectMethodByClick longint
2 kCADSelectMethodByIntersect longint
3 kCADSelectMethodByEnclose longint
4 kCADSelectMethodByLine longint

Used by
CADSelect.


Next: , Previous: CAD selection method constants, Up: Errors and constants

5.71 CAD shear constants

Value Constant Type Description
1 kCADShearX longint
2 kCADShearY longint

Used by
CADShear and CADShearMatrix.


Next: , Previous: CAD shear constants, Up: Errors and constants

5.72 CAD snap size constants

Value Constant Type Description
0 kCADSnapMinimumPixelRadius longint
5 kCADSnapDefaultPixelRadius longint
100 kCADSnapMaximumPixelRadius longint

Used by
CADGetSnapPrefs and CADSetSnapPrefs.


Next: , Previous: CAD snap size constants, Up: Errors and constants

5.73 CAD snap type constants

Value Constant Type Description
0 kCADSnapNoSnap longint
1 kCADSnapByFilledGrip longint
2 kCADSnapByOpenGrip longint
3 kCADSnapByBlip longint
4 kCADSnapByCrossing longint
5 kCADSnapAddedToBlock longint

Used by
CADFindSnap.


Next: , Previous: CAD snap type constants, Up: Errors and constants

5.74 CAD snap mask constants

Value Constant Type Description
-1 kCADActivateAllSnaps longint
0 kCADActivateNoSnap longint
1 kCADActivateSnapByFilledGrip longint
2 kCADActivateSnapByOpenGrip longint
4 kCADActivateSnapByBlip longint
7 kCADActivateSnapByGripOrBlip longint
8 kCADActivateSnapByCrossing longint
15 kCADActivateSnapByObj longint
16 kCADActivateSnapAddedToBlock longint

Used by
CADGetBlockSnapMask and CADSetBlockSnapMask.


Next: , Previous: CAD snap mask constants, Up: Errors and constants

5.75 CAD spirograph constants

Value Constant Type Description
1279 kCADSpirographDefaultColorMax longint
1535 kCADSpirographLastColorMax longint

Used by
CADSpirograph.


Next: , Previous: CAD spirograph constants, Up: Errors and constants

5.76 CAD stretch anchor constants

Value Constant Type Description
1 kCADStretchObjAnchoredLeft longint
1 kCADStretchObjAnchoredBottom longint
2 kCADStretchObjAnchoredMid longint
3 kCADStretchObjAnchoredRight longint
3 kCADStretchObjAnchoredTop longint

Used by
CADStretchObj and CADOnEvent.


Next: , Previous: CAD stretch anchor constants, Up: Errors and constants

5.77 CAD string justification constants

Value Constant Type Description
1 kCADJustifyLeft longint
2 kCADJustifyRight longint
3 kCADJustifyCentered longint

Used by
CADGetDefaults, CADSetDefaults, CADAddString, CADObjString, CADGetStringXY, CADSetStringXY, CADStringBounds, CADGetFont and CADSetFont.


Next: , Previous: CAD string justification constants, Up: Errors and constants

5.78 CAD title split constants

Value Constant Type Description
0 kCADTitleSplitMaskNone longint
1 kCADTitleSplitMaskLeft longint
2 kCADTitleSplitMaskTop longint
4 kCADTitleSplitMaskHorzScrollBar longint
8 kCADTitleSplitMaskVertScrollBar longint

Used by
CADGetTitleSplit and CADSetTitleSplit.


Next: , Previous: CAD title split constants, Up: Errors and constants

5.79 CAD undo trigger constants

Value Constant Type Description
0 kCADTriggerUndoRedo longint
1 kCADTriggerUndoOnly longint
2 kCADTriggerNoUndo longint

Used by
CADTriggerUndo and CADCommand.


Next: , Previous: CAD undo trigger constants, Up: Errors and constants

5.80 CAD undo constants

Value Constant Type Description
1 kCADUndoByApplication longint
2 kCADUndoTranslate longint
3 kCADUndoTranslateByKey longint
4 kCADUndoReshape longint
5 kCADUndoMirrorHorizontal longint
6 kCADUndoMirrorVertical longint
7 kCADUndoFlipLeftRight longint
8 kCADUndoFlipTopBottom longint
9 kCADUndoRotatePlus90 longint
10 kCADUndoRotateMinus90 longint
11 kCADUndoRotateObjPlus90 longint
12 kCADUndoRotateObjMinus90 longint
13 kCADUndoRemoveObj longint
14 kCADUndoDrawObj longint
15 kCADUndoWriteString longint
16 kCADUndoSpecialClick longint
17 kCADUndoTranslateByMeasurePane longint
18 kCADUndoRotateObjByMeasurePane longint

Used by
CADOnEvent.


Next: , Previous: CAD undo constants, Up: Errors and constants

5.81 CAD unit conversion constants

Value Constant Type Description
1 kCADConversionUnitmm longint
2 kCADConversionUnitInch longint
3 kCADConversionUnitPixel longint

Used by
CADGetUnit and CADSetUnit.


Next: , Previous: CAD unit conversion constants, Up: Errors and constants

5.82 CAD version constants

Value Constant Type Description
kCADVersion string

The version string consists of:

Important
kCADVersion is a compile-time value, not a run-time value. The CADGetVersion function returns a run-time value. By comparing kCADVersion with the result of CADGetVersion you can check whether run-time and compile-time values match (in other words if the same version of CAD is installed as you compiled with).

Used by
To be used by the application


Next: , Previous: CAD version constants, Up: Errors and constants

5.83 CAD view constants

Value Constant Type Description
1 kCADMainView longint
2 kCADLeftTitleView longint
3 kCADTopTitleView longint
4 kCADTopLeftTitleView longint

Used by
CADScroll, CADScrollTo, CADGetScroll, CADZoom, CADAutoZoom and CADGetZoom.


Next: , Previous: CAD view constants, Up: Errors and constants

5.84 CAD zoom alignment constants

Value Constant Type Description
0 kCADZoomAlignNot longint
1 kCADZoomAlignLeft longint
1 kCADZoomAlignBottom longint
2 kCADZoomAlignMid longint
3 kCADZoomAlignRight longint
3 kCADZoomAlignTop longint

Used by
CADZoom, CADAutoZoom, CADGetTitleSplit and CADSetTitleSplit.


Previous: CAD zoom alignment constants, Up: Errors and constants

5.85 CAD zoom method constants

Value Constant Type Description
0 kCADZoomByCurrentMethod longint
1 kCADZoomByFreeFactor longint
2 kCADZoomBySmallDecimalSteps longint
3 kCADZoomByLargeDecimalSteps longint

Used by
CADZoom, CADAutoZoom, CADGetZoomPrefs and CADSetZoomPrefs.


Next: , Previous: Errors and constants, Up: Top

6 Areas and methods

A Thematical method index was given in the chapter on Programming tasks. The lists that follow are alphabetical.

Areas

Callback prototypes

Methods


Next: , Up: Areas and methods

6.1 %CAD

eacad.png

The plug-in method %CAD defines an editable 4D CAD area. To use it, add it as a variable of type Plug-in Area to a 4D form. The variable must be typed as a longint, in this case as C_LONGINT(eaCAD), the Area ID.

The %CAD area can be used as an auto-resizable area. This is a useful feature, as the area will accomodate itself automatically when the user resizes the 4D form’s window. To accomplish this

The area can be customized with CADSetDisplay, CADSetTitleSplit and CADSetBackColor, see Area.

A %CAD area can be put on a 4D output form also, but it is recommended that you use a %CADView area for that purpose instead. A %CAD area can not be used on a 4D output form for printing, 4D CAD has its own printing methods.

Loading and storing of drawings is handled by calling 4D CAD methods, see Storing and loading drawings.

Related methods
%CADView, %CADBackground, CADGetSysBackColor, CADGetBackColor, CADSetBackColor, CADGetDisplay, CADSetDisplay, CADGetTitleSplit, CADSetTitleSplit, CADLoadFromBlob, CADStoreToBlob, CADLoadFromFile, CADStoreToFile.


Next: , Previous: %CAD, Up: Areas and methods

6.2 %CADBackground

eacadbackground.png

The plug-in method %CADBackground defines a 4D CAD area that is not editable and not focusable (tabable) as on object on a 4D form. A %CADBackground area is an ideal way to show background graphics on a 4D form You can put it on page 0 of the form, or on separate pages. It will try to use the background color of the 4D form as background color, but you can still call CADSetBackColor.

To use it, add %CADBackground as a variable of type Plug-in Area to a 4D form. The variable must be typed as a longint, in the example as C_LONGINT(eaBackground), the Area ID.

A %CADBackground area can also be put on a 4D output form, but it can not be used on a 4D output form for printing, 4D CAD has its own printing methods.

Loading of drawings is handled by calling 4D CAD methods, see Storing and loading drawings.

Related methods
%CAD, %CADView, CADGetSysBackColor, CADGetBackColor, CADSetBackColor, CADGetDisplay, CADSetDisplay, CADLoadFromBlob, CADLoadFromFile, CADLoadFromRes.


Next: , Previous: %CADBackground, Up: Areas and methods

6.3 %CADColors

eacadcolors.png

The plug-in method %CADColors defines a 4D CAD area with a color palette. It can be used in application dialogs. for example to set line colors and fill colors.

To use it, add %CADColors as a variable of type Plug-in Area to a 4D form. The variable must be typed as a longint, in the example as C_LONGINT(eaEdtCol), the Area ID.

The default palette shown is the 4D color palette, but the palette can be changed by calling CADSetItemColor. 4D CAD accepts 16-million colors, which is more than there are on the color palette. When an actual color value is not found on the palette, for example for an object that was imported from a DXF file, you can best change the last color on the palette to hold the actual color value (the last color is by default black and the last color on the first row is black also).

The whole color palette can be dimmed with CADSetColorsDim, to indicate that it is not enterable.

Related methods
CADGetColorItem, CADSetColorItem, CADGetItemColor, CADSetItemColor, CADGetColorsDim, CADSetColorsDim, CADIndexToColor, CADColorToIndex, CADRGBToColor, CADColorToRGB, CADDXFToColor, CADColorToDXF, CADBlendColor.


Next: , Previous: %CADColors, Up: Areas and methods

6.4 %CADView

eacadview.png

The plug-in method %CADView defines a 4D CAD area that is not focusable (tabable) as on object on a 4D form. The area can be edited with the mouse, but not with the keyboard. Of course, you can make its layers non-editable (see CADSetLayerAttributes). A %CADView area is an ideal way to show preview areas (hence the name) or for use as an area that shows graphics of some form.

To use it, add %CADView as a variable of type Plug-in Area to a 4D form. The variable must be typed as a longint, in the example as C_LONGINT(eaCADPrev), the Area ID.

A %CADView area can also be put on a 4D output form. In this case, it will try to use auto zoom in this order

A %CADView area can not be used on a 4D output form for printing, 4D CAD has its own printing methods.

The area can be customized with CADSetDisplay and CADSetBackColor, see Area. Loading of drawings is handled by calling 4D CAD methods, see Storing and loading drawings.

Related methods
%CAD, %CADBackground, CADGetSysBackColor, CADGetBackColor, CADSetBackColor, CADGetDisplay, CADSetDisplay, CADLoadFromBlob, CADLoadFromFile, CADLoadFromRes.


Next: , Previous: %CADView, Up: Areas and methods

6.5 CADOnError

CADOnError is not a callable method, but a prototype of a 4D method that you install as an error callback method. 4D CAD will call the method when an error occurs as a result of user operations in the 4D CAD area.

IO Parameter Type Description
in theCADArea longint Area ID
in theError OSErr The Error result code found. Note that CADOnError is not called for kCADUserCanceledOperation or kCADNoError
in theAlertFlag integer kCADFalse if the error occurred during a screen update, so that an alert dialog could possibly cause an endless loop, kCADTrue otherwise
out theErrorResult longint Set to kCADErrorResultDoFilter to handle the error yourself, set to kCADErrorResultDontFilter to let 4D CAD handle the error.

The method is not called when a 4D CAD method finds an error. Methods return an Error result code, see Error handling.

Important
You must type the parameters of callback methods, otherwise 4D will crash in a compiled application.

Related methods
CADGetOnError, CADSetOnError, CADGetOnEvent, CADSetOnEvent, CADOnEvent.


Next: , Previous: CADOnError, Up: Areas and methods

6.6 CADOnEvent

CADOnEvent is not a callable method, but a prototype of a 4D method that you install as an event callback method. 4D CAD will call the method when specific events occur.

IO Parameter Type
in theCADArea longint Area ID
in theEventID longint An event ID constant
in theEventPhase longint An event phase constant
in theEventData1 longint See Events
in theEventData2 longint See Events
in theEventData3 longint See Events
in theEventData4 longint See Events
in theMouseX real
in theMouseY real
in theEventValue1 real See Events
in theEventValue2 real See Events
in theKeyAsciiValue integer
in theModifiers longint A mask of modifier key constants
in theTickCount longint
in/out theEventResult longint

For a description of the parameters, see the chapter on Events. For an example, see EDtCEvent and EBlockEdEvent in DemoCAD. Also see the sections on Event handling, Undo handling and Copy and paste control.

Important
You must type the parameters of callback methods, otherwise 4D will crash in a compiled application.

Related methods
CADGetOnEvent, CADSetOnEvent, CADGetOnError, CADSetOnError, CADOnError.


Next: , Previous: CADOnEvent, Up: Areas and methods

6.7 CADAcceptDXF

CADAcceptDXF accepts the pending results of a previous call to CADImportDXF.

IO Parameter Type Description
in theCADArea longint Area ID
in theDXFtoCADUnitFactor real See Unit and scale and Importing DXF files. The factor converts the unit of the DXF file to the current unit of the drawing.
out function result OSErr Error result code, also see Error handling

Remarks
Before accepting with CADAcceptDXF, you can call CADSetUnit to change the current unit of the drawing.

Important
You must call CADAcceptDXF or CADCancelDXF after a successful call to CADImportDXF.

Related methods
CADGetDXFFile, CADImportDXF, CADCancelDXF, CADGetUnit and CADSetUnit.


Next: , Previous: CADAcceptDXF, Up: Areas and methods

6.8 CADAddArray

CADAddArray stores a copy of a 4D array inside a drawing.

IO Parameter Type Description
in theCADArea longint Area ID
in theArrayMinID longint See Arrays and Keys. Pass the minimum desired array ID or 0 to get the first free array ID
out theArrayResultID longint See Arrays
in theArray array Any 4D one- or two-dimensional array, except arrays of pointer
out function result OSErr Error result code, also see Error handling

Remarks
The purpose is to store custom data in 4D CAD drawings, see Arrays and Keys.

Related methods
CADGetArray, CADSetArray, CADRemoveArray and CADGetArrayIDs.


Next: , Previous: CADAddArray, Up: Areas and methods

6.9 CADAddBlock

CADAddBlocks adds an empty Block to a drawing.

IO Parameter Type Description
in theCADArea longint Area ID
in theBlockName Str255 Name of the new block, up to 255 characters long (need not be unique)
out theNewBlockID longint See Block
out function result OSErr Error result code, also see Error handling

Remarks
Until you call CADAddInsert or CADAddInsertXY, blocks are not visible in the drawing.

Related methods
CADRemoveBlock, CADGetBlocks, CADGetBlockKey, CADSetBlockKey, CADGetBlockInfo, CADSetBlockName, CADAddInsert and CADAddInsertXY.


Next: , Previous: CADAddBlock, Up: Areas and methods

6.10 CADAddCircle

CADAddCircle adds a Circle to a drawing or a block.

IO Parameter Type Description
in theCADArea longint Area ID
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theLayerOrSubLayerID longint Layer ID or Sublayer ID
in theCenterX real See Circle and Coordinates
in theCenterY real See Circle and Coordinates
in theRadius real See Circle
in theRotation real See Circle and Angle. The rotation is visible in the Linetype, the Hatch and in the Transform to an Ellipse
in theLineWidth real Linewidth (also see Linewidth and linetype restrictions)
in theLineTypeID longint Linetype ID or a linetype ID constant
in theLineColor longint Color or a color constant
in theFillStyle integer A fill style constant, see Fill
in theFillColor longint Color or a color constant
in theHatchID longint A Hatch ID or hatch ID constant
out theNewObjID longint Object ID of the new object
out function result OSErr Error result code, also see Error handling

Related methods
CADAddEllipse, CADGetCircle, CADSetCircle, CADObjCircle, CADLineAndArc, CADArcAndArc.


Next: , Previous: CADAddCircle, Up: Areas and methods

6.11 CADAddCircleArc

CADAddCircleArc adds a Circle arc to a drawing or a block.

IO Parameter Type Description
in theCADArea longint Area ID
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theLayerOrSubLayerID longint Layer ID or Sublayer ID
in theCenterX real See Circle arc and Coordinates
in theCenterY real See Circle arc and Coordinates
in theRadius real See Circle arc
in theRotation real See Circle arc and Angle
in theStartAngle real See Circle arc and Angle
in theEndAngle real See Circle arc and Angle
in theLineWidth real Linewidth (also see Linewidth and linetype restrictions)
in theLineTypeID longint Linetype ID or a linetype ID constant
in theLineColor longint Color or a color constant
in theFillStyle integer A fill style constant, see Fill
in theFillColor longint Color or a color constant
in theHatchID longint A Hatch ID or hatch ID constant
out theNewObjID longint Object ID of the new object
out function result OSErr Error result code, also see Error handling

Related methods
CADAddEllipseArc, CADGetCircleArc, CADSetCircleArc, CADObjCircleArc, CADLineAndArc, CADArcAndArc.


Next: , Previous: CADAddCircleArc, Up: Areas and methods

6.12 CADAddEllipse

CADAddEllipse adds an Ellipse to a drawing or a block.

IO Parameter Type Description
in theCADArea longint Area ID
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theLayerOrSubLayerID longint Layer ID or Sublayer ID
in theCenterX real See Ellipse and Coordinates
in theCenterY real See Ellipse and Coordinates
in theRadiusX real See Ellipse
in theRadiusY real See Ellipse
in theRotation real See Ellipse and Angle
in theLineWidth real Linewidth (also see Linewidth and linetype restrictions)
in theLineTypeID longint Linetype ID or a linetype ID constant
in theLineColor longint Color or a color constant
in theFillStyle integer A fill style constant, see Fill
in theFillColor longint Color or a color constant
in theHatchID longint A Hatch ID or hatch ID constant
out theNewObjID longint Object ID of the new object
out function result OSErr Error result code, also see Error handling

Related methods
CADAddCircle, CADGetEllipse, CADSetEllipse, CADObjEllipse, CADLineAndArc, CADArcAndArc.


Next: , Previous: CADAddEllipse, Up: Areas and methods

6.13 CADAddEllipseArc

CADAddEllipseArc adds an Ellipse arc to a drawing or a block.

IO Parameter Type Description
in theCADArea longint Area ID
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theLayerOrSubLayerID longint Layer ID or Sublayer ID
in theCenterX real See Ellipse arc and Coordinates
in theCenterY real See Ellipse arc and Coordinates
in theRadiusX real See Ellipse arc
in theRadiusY real See Ellipse arc
in theRotation real See Ellipse arc and Angle
in theStartAngle real See Ellipse arc and Angle
in theEndAngle real See Ellipse arc and Angle
in theLineWidth real Linewidth (also see Linewidth and linetype restrictions)
in theLineTypeID longint Linetype ID or a linetype ID constant
in theLineColor longint Color or a color constant
in theFillStyle integer A fill style constant, see Fill
in theFillColor longint Color or a color constant
in theHatchID longint A Hatch ID or hatch ID constant
out theNewObjID longint Object ID of the new object
out function result OSErr Error result code, also see Error handling

Related methods
CADAddCircleArc, CADGetEllipseArc, CADSetEllipseArc, CADObjEllipseArc, CADLineAndArc, CADArcAndArc.


Next: , Previous: CADAddEllipseArc, Up: Areas and methods

6.14 CADAddImage

CADAddImage creates a Raster image from a picture and adds it to a drawing or a block.

IO Parameter Type Description
in theCADArea longint Area ID
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theLayerOrSubLayerID longint Layer ID or Sublayer ID
in theAnchorX real See Raster image. The insertion point X-coordinate
in theAnchorY real See Raster image. The insertion point Y-coordinate
in theImageAlignH integer A raster image alignment constant
in theImageAlignV integer A raster image alignment constant
in theTransparentFlag integer A boolean constant (see Raster image)
in theScanResolutionH real See Handling raster image resolutions
in theScanResolutionV real See Handling raster image resolutions
in thePrintResolutionH real See Handling raster image resolutions
in thePrintResolutionV real See Handling raster image resolutions
in theRotation real See Raster image and Angle and Raster image restrictions
in theColorBitDepth integer See Raster image restrictions. Pass 32 for a color image. Pass 1 for a black & white image (or to convert to a black & white image)
in theRasterPicture Picture Picture field or variable. Vector information is converted to raster information
out theNewObjID longint Object ID of the new object
out function result OSErr Error result code, also see Error handling

Related methods
CADGetImage, CADSetImage, CADGetImageXY, CADSetImageXY, CADObjImage, CADCalcImageResolution, CADCalcImageMatrix, CADGetImageInfo CADGetImageFile, CADGetImageFileInfo and CADImportImage.


Next: , Previous: CADAddImage, Up: Areas and methods

6.15 CADAddInsert

CADAddInsert places a Block by adding a Block insert object with a Transform to a drawing or another block.

IO Parameter Type Description
in theCADArea longint Area ID
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theLayerOrSubLayerID longint Layer ID or Sublayer ID
in theInsertBlockID longint Block ID of the Block to place
in theMatrixParam1 real Parameter 1 of a Linear transformation matrix
in theMatrixParam2 real Parameter 2 of a Linear transformation matrix
in theMatrixParam3 real Parameter 3 of a Linear transformation matrix
in theMatrixParam4 real Parameter 4 of a Linear transformation matrix
in theMatrixParam5 real Parameter 5 of a Linear transformation matrix
in theMatrixParam6 real Parameter 6 of a Linear transformation matrix
out theNewObjID longint Object ID of the new object
out function result OSErr Error result code, also see Error handling

Important
Non-terminating circular block inserts will lead to plug-in crashes (e.g. when block A places block B and at the same time block B places block A).

Related methods
CADAddInsertXY, CADObjInsert, CADGetInsertID, CADSetInsertID, CADGetInsert, CADSetInsert, CADGetInsertXY, CADSetInsertXY, CADGetBlockInfo, CADGetBlocks, CADStandardMatrix.


Next: , Previous: CADAddInsert, Up: Areas and methods

6.16 CADAddInsertXY

CADAddInsertXY places a Block by adding a Block insert object to a drawing or another block.

IO Parameter Type Description
in theCADArea longint Area ID
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theLayerOrSubLayerID longint Layer ID or Sublayer ID
in theInsertBlockID longint Block ID of the Block to place
in theInsertX real Insertion point X-coordinate
in theInsertY real Insertion point Y-coordinate
out theNewObjID longint Object ID of the new object
out function result OSErr Error result code, also see Error handling

Important
Non-terminating circular block inserts will lead to plug-in crashes (e.g. when block A places block B and at the same time block B places block A).

Related methods
CADAddInsert, CADObjInsert, CADGetInsertID, CADSetInsertID, CADGetInsert, CADSetInsert, CADGetInsertXY, CADSetInsertXY, CADGetBlockInfo, CADGetBlocks.


Next: , Previous: CADAddInsertXY, Up: Areas and methods

6.17 CADAddLayer

CADAddLayer adds an empty Layer to a drawing.

IO Parameter Type Description
in theCADArea longint Area ID
in theLayerName Str255 Name of the new layer, up to 255 characters long (need not be unique)
out theNewLayerID longint Layer ID of the new layer
out function result OSErr Error result code, also see Error handling

Remarks
The mode of the new layer is kCADLayerModeEditable.

Important
CADAddLayer doesn’t set the current layer. You may have to call CADSetCurrentLayer separately.

Related methods
CADAddSubLayer, CADRemoveLayer, CADGetLayers, CADGetSubLayers, CADGetLayerAttributes, CADSetLayerAttributes, CADGetLayerKey, CADSetLayerKey, CADGetLayerOrder, CADSetLayerOrder, CADGetCurrentLayer, CADSetCurrentLayer.


Next: , Previous: CADAddLayer, Up: Areas and methods

6.18 CADAddLine

CADAddLine adds a Line to a drawing or a block.

IO Parameter Type Description
in theCADArea longint Area ID
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theLayerOrSubLayerID longint Layer ID or Sublayer ID
in theStartX real X-coordinate of the start point of the Line
in theStartY real Y-coordinate of the start point of the Line
in theEndX real X-coordinate of the end point of the Line
in theEndY real Y-coordinate of the end point of the Line
in theLineWidth real Linewidth (also see Linewidth and linetype restrictions)
in theLineTypeID longint Linetype ID or a linetype ID constant
in theLineColor longint Color or a color constant
out theNewObjID longint Object ID of the new object
out function result OSErr Error result code, also see Error handling

Related methods
CADAddPolyLine, CADGetLine, CADSetLine, CADObjLine, CADPointOnLine, CADLineAndLine, CADLineAndRect, CADLineAndArc.


Next: , Previous: CADAddLine, Up: Areas and methods

6.19 CADAddPolyLine

CADAddPolyLine adds a Polyline to a drawing or a block.

IO Parameter Type Description
in theCADArea longint Area ID
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theLayerOrSubLayerID longint Layer ID or Sublayer ID
in thePolyIsClosedFlag integer A boolean constant (see Polyline)
in theVerticesX array of real Each array element is an X-coordinate of a Polyline vertex
in theVerticesY array of real Each array element is an Y-coordinate of a Polyline vertex
in theLineWidth real Linewidth (also see Linewidth and linetype restrictions)
in theLineTypeID longint Linetype ID or a linetype ID constant
in theLineColor longint Color or a color constant
in theFillStyle integer A fill style constant, see Fill
in theFillColor longint Color or a color constant
in theHatchID longint A Hatch ID or hatch ID constant
out theNewObjID longint Object ID of the new object
out function result OSErr Error result code, also see Error handling

Remarks
An open polyline must have at least two vertices. A closed polyline must have at least three vertices. An open polyline can not have a hatch or a fill. The surface area of an open polyline is 0. A polyline doesn’t have a rotation. If you need a rotation field for programming purposes, call CADSetPolyAngle to maintain that field yourself.

Important
Don’t close the polyline by duplicating the first vertex as the last vertex (as in 4D Draw). Instead, set the thePolyIsClosedFlag to kCADTrue.

Related methods
CADObjLine, CADObjPolyLine, CADGetPolyLine, CADSetPolyLine, CADGetPolyAngle, CADSetPolyAngle, CADPolyBounds, CADPolyUndouble, CADPolyCalc, CADSplitPoly, CADSplitPolyXY, CADPointInPoly, CADCheckPoly, CADPolyAndPoly.


Next: , Previous: CADAddPolyLine, Up: Areas and methods

6.20 CADAddRectangle

CADAddRectangle adds a Rectangle to a drawing or a block.

IO Parameter Type Description
in theCADArea longint Area ID
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theLayerOrSubLayerID longint Layer ID or Sublayer ID
in theX1 real Left side X-coordinate of the unrotated rectangle
in theY1 real Bottom Y-coordinate of the unrotated rectangle
in theX2 real Right side X-coordinate of the unrotated rectangle
in theY2 real Top Y-coordinate of the unrotated rectangle
in theRotation real Angle of rotation around the rectangle’s center
in theLineWidth real Linewidth (also see Linewidth and linetype restrictions)
in theLineTypeID longint Linetype ID or a linetype ID constant
in theLineColor longint Color or a color constant
in theFillStyle integer A fill style constant, see Fill
in theFillColor longint Color or a color constant
in theHatchID longint A Hatch ID or hatch ID constant
out theNewObjID longint Object ID of the new object
out function result OSErr Error result code, also see Error handling

Related methods
CADAddSquare, CADObjRectangle, CADGetRectangle, CADSetRectangle, CADPointInRect, CADRectAndRect, CADLineAndRect.


Next: , Previous: CADAddRectangle, Up: Areas and methods

6.21 CADAddScope

CADAddScope adds an empty programmer Scope of objects to a drawing or a block.

IO Parameter Type Description
in theCADArea longint Area ID
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
out theScopeID longint The new Scope ID
out function result OSErr Error result code, also see Error handling

Remarks
If you are done with the scope, call CADRemoveScope to remove the scope (this doesn’t remove any objects, just the set that describes a specific selection of objects).

Important
Scopes are not stored permanently in a drawing (except for kCADScopeSelectedObjects). If you need to store programmer scopes with a drawing, call CADGetObjIDsArray and store theObjIDs array with CADAddArray.

Related methods
CADCount, CADGetObjIDsArray, CADOneObjID, CADGetObjID, CADTypeOfScope, CADRemoveScope, CADEmptyScope, CADGetScopeIDs, CADCopyScope, CADToScope, CADFromScope, CADInScope, CADScopeLogic.


Next: , Previous: CADAddScope, Up: Areas and methods

6.22 CADAddSquare

CADAddSquare adds a Square to a drawing or a block.

IO Parameter Type Description
in theCADArea longint Area ID
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theLayerOrSubLayerID longint Layer ID or Sublayer ID
in theX1 real Left side X-coordinate of the unrotated square
in theY1 real Bottom Y-coordinate of the unrotated square
in theX2 real Right side X-coordinate of the unrotated square
in theY2 real Top Y-coordinate of the unrotated square
in theRotation real Angle of rotation around the square’s center
in theLineWidth real Linewidth (also see Linewidth and linetype restrictions)
in theLineTypeID longint Linetype ID or a linetype ID constant
in theLineColor longint Color or a color constant
in theFillStyle integer A fill style constant, see Fill
in theFillColor longint Color or a color constant
in theHatchID longint A Hatch ID or hatch ID constant
out theNewObjID longint Object ID of the new object
out function result OSErr Error result code, also see Error handling

Remarks
If the coordinates don’t describe a square, error kCADNotSquare is returned.

Related methods
CADAddRectangle, CADObjSquare, CADGetSquare, CADSetSquare, CADPointInRect, CADRectAndRect, CADLineAndRect.


Next: , Previous: CADAddSquare, Up: Areas and methods

6.23 CADAddString

CADAddString adds a single line String to a drawing or a block.

IO Parameter Type Description
in theCADArea longint Area ID
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theLayerOrSubLayerID longint Layer ID or Sublayer ID
in theString Str255 The string, up to a maximum of 255 characters
in theBaseX real The X-coordinate of the insertion point
in theBaseY real The Y-coordinate of the unrotated base line
in theRotation real The rotation Angle of the string
in theMacFontStr Str255 A Font string, to be used on Macintosh
in theDosFontStr Str255 A Font string, to be used on Windows
in theFontSize real A fontsize, expressed in 4D CAD Units (not in points)
in theFontStyle integer A mask of font style constants
in theJustification integer A string justification constant
in theStringColor longint Color or a color constant
out theNewObjID longint Object ID of the new object
out function result OSErr Error result code, also see Error handling

Remarks
If the string contains a LineFeed or Carriage Return character, error kCADFoundCRorLFInString is returned.

Related methods
CADObjString, CADGetString, CADSetString, CADGetStringXY, CADSetStringXY, CADGetFont, CADSetFont, CADStringBounds.


Next: , Previous: CADAddString, Up: Areas and methods

6.24 CADAddSubLayer

CADAddSubLayer adds an empty Sublayer to a Layer in a drawing.

IO Parameter Type Description
in theCADArea longint Area ID
in theLayerID longint Layer ID
in theSubLayerName Str255 Name of the new sublayer, up to 255 characters long (need not be unique)
out theNewSubLayerID longint Sublayer ID of the new sublayer
out function result OSErr Error result code, also see Error handling

Remarks
The mode of the new sublayer is kCADLayerModeEditable (but sublayers are restricted by both the layer mode and the sublayer mode).
Unlike layers, sublayers aren’t ruled by a drawing order.

Related methods
CADAddLayer, CADRemoveLayer, CADGetLayers, CADGetSubLayers, CADGetLayerAttributes, CADSetLayerAttributes, CADGetLayerKey, CADSetLayerKey, CADGetLayerOrder, CADSetLayerOrder, CADGetCurrentLayer, CADSetCurrentLayer.


Next: , Previous: CADAddSubLayer, Up: Areas and methods

6.25 CADAlign

CADAlign aligns a number of objects horizontal and/or vertical.

IO Parameter Type Description
in theCADArea longint Area ID
in theLocking integer kCADLockingIgnoreLock
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theObjScope longint kCADScopeSelectedObjects, kCADScopeAllObjects, kCADScopeObjOnEditableLayers, a Layer ID, a Sublayer ID, a programmer scope ID or an Object ID
in theTypeOfBoundsToAlignOn integer The type of bounds determines what object-edges to align on. See Bounds and bounds type constants
in theLeftRightAlign integer A alignment constant
in theTopBottomAlign integer A alignment constant
in theFlipStringJustificationFlag integer A boolean constant that determines whether to change the justification of String objects (see string justification constants) with the value o theLeftRightAlign parameter (see alignment constants)
out function result OSErr Error result code, also see Error handling

Remarks
CADAlign first calculates the common bounds of the speficied objects. The exact metrics will depend on the value of theTypeOfBoundsToAlignOn parameter. Next, the horizontal and vertical alignment point to use for the alignment, will be either an edge or the center of the bounds.

Important
It is not an error if the object scope contains 0 or 1 objects.

Related methods
CADBounds, CADStringBounds, CADGetFont, CADSetFont, CADTranslate.


Next: , Previous: CADAlign, Up: Areas and methods

6.26 CADArcAndArc

CADArcAndArc calculates the crossing points of two arcs, where both arcs can be either a Circle, a Circle arc, an Ellipse or an Ellipse arc.

IO Parameter Type Description
in theArc1CenterX real X-coordinate of the center of the first arc
in theArc1CenterY real Y-coordinate of the center of the first arc
in theArc1RadiusX real Radius of the first Circle or Circle arc, x-radius of the first Ellipse or Ellipse arc
in theArc1RadiusY real Radius of the first Circle or Circle arc, y-radius of the first Ellipse or Ellipse arc
in theArc1Rotation real Rotation Angle of the first arc
in theOptionalArc1StartAngle real Start angle of the first Circle arc or Ellipse arc, 0 for the first Circle or Ellipse
in theOptionalArc1EndAngle real End angle of the first Circle arc or Ellipse arc, 0 for the first Circle or Ellipse
in theArc2CenterX real X-coordinate of the center of the second arc
in theArc2CenterY real Y-coordinate of the center of the second arc
in theArc2RadiusX real Radius of the second Circle or Circle arc, x-radius of the second Ellipse or Ellipse arc
in theArc2RadiusY real Radius of the second Circle or Circle arc, y-radius of the second Ellipse or Ellipse arc
in theArc2Rotation real Rotation Angle of the second arc
in theOptionalArc2StartAngle real Start angle of the second Circle arc or Ellipse arc, 0 for the second Circle or Ellipse
in theOptionalArc2EndAngle real End angle of the second Circle arc or Ellipse arc, 0 for the second Circle or Ellipse
out theIntersectCount integer The number of crossing points found (or 0)
out theIntersectX1 real X-coordinate of the first crossing point (or 0)
out theIntersectY1 real Y-coordinate of the first crossing point (or 0)
out theIntersectX2 real X-coordinate of the second crossing point (or 0)
out theIntersectY2 real Y-coordinate of the second crossing point (or 0)
out theIntersectX3 real X-coordinate of the third crossing point (or 0)
out theIntersectY3 real Y-coordinate of the third crossing point (or 0)
out theIntersectX4 real X-coordinate of the fourth crossing point (or 0)
out theIntersectY4 real Y-coordinate of the fourth crossing point (or 0)
out function result OSErr Error result code, also see Error handling

Important
It is an error if any radius is less than or equal to 0.
It is not an error if no crossing points are found.

Related methods
CADLineAndLine, CADLineAndRect, CADRectAndRect, CADLineAndArc, CADPolyAndPoly, CADCheckPoly, CADFindCrossings.


Next: , Previous: CADArcAndArc, Up: Areas and methods

6.27 CADArcCos

IO Parameter Type Description
in theCos real
out function result real


Next: , Previous: CADArcCos, Up: Areas and methods

6.28 CADArcSin

IO Parameter Type Description
in theSin real
out function result real


Next: , Previous: CADArcSin, Up: Areas and methods

6.29 CADArcTan2

IO Parameter Type Description
in theY real
in theX real
out function result real


Next: , Previous: CADArcTan2, Up: Areas and methods

6.30 CADAutoZoom

IO Parameter Type Description
in theCADArea longint Area ID
in theOptionalView integer A view constant or 0
in theZoomAlignH integer A zoom alignment constant
in theZoomAlignV integer A zoom alignment constant
in theZoomMethod integer A zoom method constant
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADAutoZoom, Up: Areas and methods

6.31 CADBlend

IO Parameter Type Description
in theCADArea longint Area ID
in theLocking integer kCADLockingIgnoreLock
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theObjScope longint kCADScopeSelectedObjects, kCADScopeAllObjects, kCADScopeObjOnEditableLayers, a Layer ID, a Sublayer ID, a programmer scope ID or an Object ID
in theSaturateFactor real
in theMixToBackgroundFactor real
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADBlend, Up: Areas and methods

6.32 CADBlendColor

IO Parameter Type Description
in theColor longint Color or a color constant
in theBackgroundColor longint
in theSaturateFactor real
in theMixToBackgroundFactor real
out theResultColor longint Color or a color constant
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADBlobToFile, Up: Areas and methods

6.33 CADBounds

IO Parameter Type Description
in theCADArea longint Area ID
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theObjScope longint kCADScopeSelectedObjects, kCADScopeAllObjects, kCADScopeObjOnEditableLayers, a Layer ID, a Sublayer ID, a programmer scope ID or an Object ID
in theBoundsToGet integer A bounds type constant
out theBoundsX1 real
out theBoundsY1 real
out theBoundsX2 real
out theBoundsY2 real
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADBounds, Up: Areas and methods

6.34 CADCalcImageMatrix

IO Parameter Type Description
in theCADArea longint Area ID
in theOldMatrixParam1 real
in theOldMatrixParam2 real
in theOldMatrixParam3 real
in theOldMatrixParam4 real
in thePrintResolutionH real
in thePrintResolutionV real
out theMatrixParam1 real Parameter 1 of a Linear transformation matrix
out theMatrixParam2 real Parameter 2 of a Linear transformation matrix
out theMatrixParam3 real Parameter 3 of a Linear transformation matrix
out theMatrixParam4 real Parameter 4 of a Linear transformation matrix
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADCalcImageMatrix, Up: Areas and methods

6.35 CADCalcImageResolution

IO Parameter Type Description
in theCADArea longint Area ID
in theMatrixParam1 real Parameter 1 of a Linear transformation matrix
in theMatrixParam2 real Parameter 2 of a Linear transformation matrix
in theMatrixParam3 real Parameter 3 of a Linear transformation matrix
in theMatrixParam4 real Parameter 4 of a Linear transformation matrix
out thePrintResolutionH real
out thePrintResolutionV real
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADCalcImageResolution, Up: Areas and methods

6.36 CADCalcMatrix

IO Parameter Type Description
in theAx1 real
in theAy1 real
in theBx1 real
in theBy1 real
in theDx1 real
in theDy1 real
in theAx2 real
in theAy2 real
in theBx2 real
in theBy2 real
in theDx2 real
in theDy2 real
out theMatrixParam1 real Parameter 1 of a Linear transformation matrix
out theMatrixParam2 real Parameter 2 of a Linear transformation matrix
out theMatrixParam3 real Parameter 3 of a Linear transformation matrix
out theMatrixParam4 real Parameter 4 of a Linear transformation matrix
out theMatrixParam5 real Parameter 5 of a Linear transformation matrix
out theMatrixParam6 real Parameter 6 of a Linear transformation matrix
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADCalcMatrix, Up: Areas and methods

6.37 CADCancelDXF

CADCancelDXF cancels the pending results of a previous call to CADImportDXF.

IO Parameter Type Description
in theCADArea longint Area ID
out function result OSErr Error result code, also see Error handling

Important
You must call CADAcceptDXF or CADCancelDXF after a successful call to CADImportDXF.

Related methods
CADGetDXFFile, CADImportDXF, CADAcceptDXF.


Next: , Previous: CADCancelDXF, Up: Areas and methods

6.38 CADCheckPoly

IO Parameter Type Description
in theDoCheckFlag integer A boolean constant
out theVarPolyPx array of real
out theVarPolyPy array of real
out thePolyChangedFlag integer A boolean constant
out thePolyCheckResult integer A polyline check constant
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADCheckPoly, Up: Areas and methods

6.39 CADClear

IO Parameter Type Description
in theCADArea longint Area ID
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADClear, Up: Areas and methods

6.40 CADColorToDXF

IO Parameter Type Description
in theColor longint Color or a color constant
out theDXFBestColorIndex integer
out theDXFColorIdenticalFlag integer A boolean constant
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADColorToDXF, Up: Areas and methods

6.41 CADColorToIndex

IO Parameter Type Description
in theColor longint Color or a color constant
out theColorBestPaletteIndex integer
out theColorIdenticalFlag integer A boolean constant
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADColorToIndex, Up: Areas and methods

6.42 CADColorToRGB

IO Parameter Type Description
in theColor longint Color or a color constant
out theRed integer
out theGreen integer
out theBlue integer
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADColorToRGB, Up: Areas and methods

6.43 CADCommand

IO Parameter Type Description
in theCADArea longint Area ID
in theCommand integer A command constant
in theUndoTrigger integer An undo trigger constant
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADCommand, Up: Areas and methods

6.44 CADCompareBlock

IO Parameter Type Description
in theSourceArea longint
in theSourceBlockID longint
in theTargetArea longint
in theTargetBlockID longint
in theCompareLayersFlag integer A boolean constant
out theIdenticalFlag integer A boolean constant
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADCompareBlock, Up: Areas and methods

6.45 CADCompareObj

IO Parameter Type Description
in theSourceArea longint
in theSourceBlockID longint
in theSourceScope longint kCADScopeSelectedObjects, kCADScopeAllObjects, kCADScopeObjOnEditableLayers, a Layer ID, a Sublayer ID, a programmer scope ID or an Object ID
in theTargetArea longint
in theTargetBlockID longint
in theTargetScope longint kCADScopeSelectedObjects, kCADScopeAllObjects, kCADScopeObjOnEditableLayers, a Layer ID, a Sublayer ID, a programmer scope ID or an Object ID
in theCompareLayersFlag integer A boolean constant
out theIdenticalFlag integer A boolean constant
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADCompareObj, Up: Areas and methods

6.46 CADCopyArrays

IO Parameter Type Description
in theSourceArea longint
in theTargetArea longint
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADCopyArrays, Up: Areas and methods

6.47 CADCopyAttributes

IO Parameter Type Description
in theSourceArea longint
in theTargetArea longint
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADCopyAttributes, Up: Areas and methods

6.48 CADCopyBlocks

IO Parameter Type Description
in theSourceArea longint
in theTargetArea longint
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADCopyBlocks, Up: Areas and methods

6.49 CADCopyByMatrix

IO Parameter Type Description
in theSourceArea longint
in theSourceBlockID longint
in theSourceObjScope longint kCADScopeSelectedObjects, kCADScopeAllObjects, kCADScopeObjOnEditableLayers, a Layer ID, a Sublayer ID, a programmer scope ID or an Object ID
in theTargetArea longint
in theTargetBlockID longint
in theMatrixParam1 real Parameter 1 of a Linear transformation matrix
in theMatrixParam2 real Parameter 2 of a Linear transformation matrix
in theMatrixParam3 real Parameter 3 of a Linear transformation matrix
in theMatrixParam4 real Parameter 4 of a Linear transformation matrix
in theMatrixParam5 real Parameter 5 of a Linear transformation matrix
in theMatrixParam6 real Parameter 6 of a Linear transformation matrix
in theOptionalTargetObjScope longint 0 or kCADScopeSelectedObjects or a programmer scope ID
in theOptionalTargetLayerID longint
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADCopyByMatrix, Up: Areas and methods

6.50 CADCopyLayers

IO Parameter Type Description
in theSourceArea longint
in theTargetArea longint
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADCopyLayers, Up: Areas and methods

6.51 CADCopyObjByMatrix

IO Parameter Type Description
in theSourceArea longint
in theSourceBlockID longint
in theSourceObjID longint
in theTargetArea longint
in theTargetBlockID longint
in theMatrixParam1 real Parameter 1 of a Linear transformation matrix
in theMatrixParam2 real Parameter 2 of a Linear transformation matrix
in theMatrixParam3 real Parameter 3 of a Linear transformation matrix
in theMatrixParam4 real Parameter 4 of a Linear transformation matrix
in theMatrixParam5 real Parameter 5 of a Linear transformation matrix
in theMatrixParam6 real Parameter 6 of a Linear transformation matrix
out theResultObjID longint
in theOptionalTargetLayerID longint
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADCopyObjByMatrix, Up: Areas and methods

6.52 CADCopyObjTo

IO Parameter Type Description
in theSourceArea longint
in theSourceBlockID longint
in theSourceObjID longint
in theTargetArea longint
in theTargetBlockID longint
out theResultObjID longint
in theOptionalTargetLayerID longint
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADCopyObjTo, Up: Areas and methods

6.53 CADCopyPageSetup

IO Parameter Type Description
in theSourceArea longint
in theTargetArea longint
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADCopyPageSetup, Up: Areas and methods

6.54 CADCopyScope

IO Parameter Type Description
in theCADArea longint Area ID
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theSourceObjScope longint kCADScopeSelectedObjects, kCADScopeAllObjects, kCADScopeObjOnEditableLayers, a Layer ID, a Sublayer ID, a programmer scope ID or an Object ID
in theTargetObjScope longint kCADScopeSelectedObjects or a programmer scope ID
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADCopyScope, Up: Areas and methods

6.55 CADCopyTo

IO Parameter Type Description
in theSourceArea longint
in theSourceBlockID longint
in theSourceObjScope longint kCADScopeSelectedObjects, kCADScopeAllObjects, kCADScopeObjOnEditableLayers, a Layer ID, a Sublayer ID, a programmer scope ID or an Object ID
in theTargetArea longint
in theTargetBlockID longint
in theOptionalTargetObjScope longint 0 or kCADScopeSelectedObjects or a programmer scope ID
in theOptionalTargetLayerID longint
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADCopyTo, Up: Areas and methods

6.56 CADCos

IO Parameter Type Description
in theDegrees real
out function result real


Next: , Previous: CADCos, Up: Areas and methods

6.57 CADCount

IO Parameter Type Description
in theCADArea longint Area ID
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theObjScope longint kCADScopeSelectedObjects, kCADScopeAllObjects, kCADScopeObjOnEditableLayers, a Layer ID, a Sublayer ID, a programmer scope ID or an Object ID
out theObjCount longint
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADCount, Up: Areas and methods

6.58 CADDXFToColor

IO Parameter Type Description
in theDXFColorIndex integer
out theColor longint Color or a color constant
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADDXFToColor, Up: Areas and methods

6.59 CADDecimalDifference

IO Parameter Type Description
in theR1 real
in theR2 real
out function result real


Next: , Previous: CADDecimalDifference, Up: Areas and methods

6.60 CADDecimalSum

IO Parameter Type Description
in theR1 real
in theR2 real
out function result real


Next: , Previous: CADDecimalSum, Up: Areas and methods

6.61 CADDistanceXY

IO Parameter Type Description
in theX1 real
in theY1 real
in theX2 real
in theY2 real
out function result real


Next: , Previous: CADDistanceXY, Up: Areas and methods

6.62 CADEmptyScope

IO Parameter Type Description
in theCADArea longint Area ID
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theObjTargetScope longint kCADScopeSelectedObjects or a programmer scope ID
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADEmptyScope, Up: Areas and methods

6.63 CADEndOffscreen

IO Parameter Type Description
out theOffscreenAreaToDispose longint
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADEndOffscreen, Up: Areas and methods

6.64 CADFileToBlob

IO Parameter Type Description
in theMacVolumeRef integer
in theMacDirID longint
in theDosDirPath Str255
in theFileName Str255
out theCADStorage Blob
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADFileToBlob, Up: Areas and methods

6.65 CADFileToPict

IO Parameter Type Description
in theMacVolumeRef integer
in theMacDirID longint
in theDosDirPath Str255
in theFileName Str255
out theCADStorage Picture
out function result OSErr Error result code, also see Error handling

Important
Don’t call ! Storing CAD drawings in pictures is obsolete. Please use blobs instead.


Next: , Previous: CADFileToPict, Up: Areas and methods

6.66 CADFindByKey

IO Parameter Type Description
in theCADArea longint Area ID
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theSourceScope longint kCADScopeSelectedObjects, kCADScopeAllObjects, kCADScopeObjOnEditableLayers, a Layer ID, a Sublayer ID, a programmer scope ID or an Object ID
in theTargetScope longint kCADScopeSelectedObjects or a programmer scope ID
in theTypeOfKey integer A number between 1 and kCADMaxKeyIndex
in theObjKey longint
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADFindByKey, Up: Areas and methods

6.67 CADFindByLock

IO Parameter Type Description
in theCADArea longint Area ID
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theSourceScope longint kCADScopeSelectedObjects, kCADScopeAllObjects, kCADScopeObjOnEditableLayers, a Layer ID, a Sublayer ID, a programmer scope ID or an Object ID
in theTargetScope longint kCADScopeSelectedObjects or a programmer scope ID
in theTypeOfLock integer An object locking type constant
in theLockedFlag integer A boolean constant
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADFindByLock, Up: Areas and methods

6.68 CADFindByType

IO Parameter Type Description
in theCADArea longint Area ID
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theSourceScope longint kCADScopeSelectedObjects, kCADScopeAllObjects, kCADScopeObjOnEditableLayers, a Layer ID, a Sublayer ID, a programmer scope ID or an Object ID
in theTargetScope longint kCADScopeSelectedObjects or a programmer scope ID
in theObjType integer An object type constant
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADFindByType, Up: Areas and methods

6.69 CADFindCrossings

IO Parameter Type Description
in theCADArea longint Area ID
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theObjScope longint kCADScopeSelectedObjects, kCADScopeAllObjects, kCADScopeObjOnEditableLayers, a Layer ID, a Sublayer ID, a programmer scope ID or an Object ID
in theMinimumLayerModeToCross integer A layer mode constant
in theLayerMustHaveSnapsFlag integer A boolean constant
in theUseSnapMasksFlag integer A boolean constant
in theProgress integer A progress constant
in theSpotBoxX1 real
in theSpotBoxY1 real
in theSpotBoxX2 real
in theSpotBoxY2 real
out theCrossingsX array of real
out theCrossingsY array of real
out theObjIDs1 array of longint
out theObjIDs2 array of longint
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADFindCrossings, Up: Areas and methods

6.70 CADFindSnap

IO Parameter Type Description
in theCADArea longint Area ID
in theOptionalObjScopeToSkip longint kCADScopeSelectedObjects, kCADScopeAllObjects, kCADScopeObjOnEditableLayers, a Layer ID, a Sublayer ID, a programmer scope ID or an Object ID
in theMouseX real
in theMouseY real
out theSnapX real
out theSnapY real
out theSnapType integer A snap type constant
out theSnapGripIndex longint
out theSnapObjID longint
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADFindSnap, Up: Areas and methods

6.71 CADFlipMatrix

IO Parameter Type Description
in theFlipBits integer A mask of flip constants
in theFlipCenterX real
in theFlipCenterY real
in/out theMatrixParam1 real Parameter 1 of a Linear transformation matrix
in/out theMatrixParam2 real Parameter 2 of a Linear transformation matrix
in/out theMatrixParam3 real Parameter 3 of a Linear transformation matrix
in/out theMatrixParam4 real Parameter 4 of a Linear transformation matrix
in/out theMatrixParam5 real Parameter 5 of a Linear transformation matrix
in/out theMatrixParam6 real Parameter 6 of a Linear transformation matrix
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADFlipMatrix, Up: Areas and methods

6.72 CADFlipObj

IO Parameter Type Description
in theCADArea longint Area ID
in theLocking integer kCADLockingIgnoreLock
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theObjScope longint kCADScopeSelectedObjects, kCADScopeAllObjects, kCADScopeObjOnEditableLayers, a Layer ID, a Sublayer ID, a programmer scope ID or an Object ID
in theFlipBits integer A mask of flip constants
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADFlipObj, Up: Areas and methods

6.73 CADFromScope

IO Parameter Type Description
in theCADArea longint Area ID
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theTargetObjScope longint kCADScopeSelectedObjects or a programmer scope ID
in theObjID longint An Object ID, see Scope
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADFromScope, Up: Areas and methods

6.74 CADGetAreaPrefs

IO Parameter Type Description
in theCADArea longint Area ID
out theWriteStringModeModifiers longint A mask of modifier key constants
out theSpecialClickModeModifiers longint A mask of modifier key constants
out theUseEditBoxForObjFlag integer A boolean constant
out theUseEditBoxForNewObjFlag integer A boolean constant
out theNoEditBoxModifiers longint A mask of modifier key constants
out theSpecialClickModeCursor integer A cursor constant
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADGetAreaPrefs, Up: Areas and methods

6.75 CADGetArray

IO Parameter Type Description
in theCADArea longint Area ID
in theArrayID longint
out theArray array
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADGetArray, Up: Areas and methods

6.76 CADGetArrayIDs

IO Parameter Type Description
in theCADArea longint Area ID
out theArrayIDs array of longint
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADGetArrayIDs, Up: Areas and methods

6.77 CADGetBackColor

IO Parameter Type Description
in theCADArea longint Area ID
out theBackColor longint Color or a color constant
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADGetBackColor, Up: Areas and methods

6.78 CADGetBlockAddedSnaps

IO Parameter Type Description
in theCADArea longint Area ID
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
out theSnapsX array of real
out theSnapsY array of real
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADGetBlockAddedSnaps, Up: Areas and methods

6.79 CADGetBlockInfo

IO Parameter Type Description
in theCADArea longint Area ID
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
out theBlockName Str255
out theBlockDXFFlag integer A boolean constant
out theBlockDXFDimensionFlag integer A boolean constant
out theBlockInsertObjIDs array of longint
out theBlockInsertBlockIDs array of longint
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADGetBlockInfo, Up: Areas and methods

6.80 CADGetBlockKey

IO Parameter Type Description
in theCADArea longint Area ID
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theTypeOfKey integer A number between 1 and kCADMaxKeyIndex
out theKey longint
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADGetBlockKey, Up: Areas and methods

6.81 CADGetBlocks

IO Parameter Type Description
in theCADArea longint Area ID
in theBlocksToGet integer A block to get constant
in theBlockIDs array of longint
in theBlockNames array of string or text
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADGetBlocks, Up: Areas and methods

6.82 CADGetBlockSnapMask

IO Parameter Type Description
in theCADArea longint Area ID
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
out theBlockSnapMask longint A snap mask constant
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADGetBlockSnapMask, Up: Areas and methods

6.83 CADGetCADFile

IO Parameter Type Description
in theOptionalDosFileType Str255
out theMacVolumeRef integer
out theMacDirID longint
out theDosDirPath Str255
out theFileName Str255
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADGetCADFile, Up: Areas and methods

6.84 CADGetCircle

IO Parameter Type Description
in theCADArea longint Area ID
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theObjID longint An Object ID, see Scope
out theCenterX real
out theCenterY real
out theRadius real
out theRotation real
out theUpsideDownFlag integer A boolean constant
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADGetCircle, Up: Areas and methods

6.85 CADGetCircleArc

IO Parameter Type Description
in theCADArea longint Area ID
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theObjID longint An Object ID, see Scope
out theCenterX real
out theCenterY real
out theRadius real
out theStartAngle real
out theEndAngle real
out theRotation real
out theUpsideDownFlag integer A boolean constant
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADGetCircleArc, Up: Areas and methods

6.86 CADGetClipBox

IO Parameter Type Description
in theCADArea longint Area ID
out theClipBoxFlag integer A boolean constant
out theClipBoxX1 real
out theClipBoxY1 real
out theClipBoxX2 real
out theClipBoxY2 real
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADGetClipBox, Up: Areas and methods

6.87 CADGetColor

IO Parameter Type Description
in theCADArea longint Area ID
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theObjScope longint kCADScopeSelectedObjects, kCADScopeAllObjects, kCADScopeObjOnEditableLayers, a Layer ID, a Sublayer ID, a programmer scope ID or an Object ID
out theObjColor longint Color or a color constant
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADGetColor, Up: Areas and methods

6.88 CADGetColorItem

IO Parameter Type Description
in theColorPaletteArea longint
out theItemSelected integer
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADGetColorItem, Up: Areas and methods

6.89 CADGetColorsDim

IO Parameter Type Description
in theColorPaletteArea longint
out theDimmedFlag integer A boolean constant
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADGetColorsDim, Up: Areas and methods

6.90 CADGetCurrentLayer

IO Parameter Type Description
in theCADArea longint Area ID
out theLayerOrSubLayerID longint Layer ID or Sublayer ID or kCADNoCurrentLayerID
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADGetCurrentLayer, Up: Areas and methods

6.91 CADGetDXFFile

IO Parameter Type Description
out theMacVolumeRef integer
out theMacDirID longint
out theDosDirPath Str255
out theFileName Str255
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADGetDXFFile, Up: Areas and methods

6.92 CADGetDefaults

IO Parameter Type Description
in theCADArea longint Area ID
out theLineWidth real Linewidth (also see Linewidth and linetype restrictions)
out theLineTypeID longint Linetype ID or a linetype ID constant
out theLineColor longint Color or a color constant
out theFillStyle integer A fill style constant, see Fill
out theFillColor longint Color or a color constant
out theMarkingStartID longint A marking ID constant
out theMarkingEndID longint A marking ID constant
out theMacFontStr Str255
out theDosFontStr Str255
out theFontSize real
out theFontStyle integer A mask of font style constants
out theJustification integer A string justification constant
out theHatchID longint A Hatch ID or hatch ID constant
out theRotation real
out theCircleArcStartAngle real
out theCircleArcEndAngle real
out theRectangleLengthOrWidth real
out theIsLengthFlag integer A boolean constant
out theObjLockingMask longint A mask of object locking mask constants
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADGetDefaults, Up: Areas and methods

6.93 CADGetDimPrefs

IO Parameter Type Description
in theCADArea longint Area ID
out theLayerDimSaturateFactor real
out theLayerDimMixToBackgrFactor real
out theSelectDimSaturateFactor real
out theSelectDimMixToBackgrFactor real
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADGetDimPrefs, Up: Areas and methods

6.94 CADGetDisplay

IO Parameter Type Description
in theCADArea longint Area ID
out theDisplayMask longint A mask of display constants
out theModalToolsMask longint A mask of mode mask constants
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADGetDisplay, Up: Areas and methods

6.95 CADGetDragPrefs

IO Parameter Type Description
in theCADArea longint Area ID
out theSelectCursor integer A cursor size constant
out theLargeGripsFlag integer A boolean constant
out theLargeBlipsFlag integer A boolean constant
out theTranslateHesitationFlag integer A boolean constant
out theReshapeHesitationFlag integer A boolean constant
out theReshapeInTranslateModeFlag integer A boolean constant
out theTranslateInReshapeModeFlag integer A boolean constant
out theSelectAndTranslateFlag integer A boolean constant
out theSelectAndReshapeFlag integer A boolean constant
out theOneClickDrawFlag integer A boolean constant
out theOneClickTranslateFlag integer A boolean constant
out theOneClickReshapeFlag integer A boolean constant
out theIntersecInTranslateModeFlag integer A boolean constant
out theIntersecInReshapeModeFlag integer A boolean constant
out theDragOutlineFlag integer A boolean constant
out theDragOutlineToggleFlag integer A boolean constant
out theDragDosToggleKeyAscii integer
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADGetDragPrefs, Up: Areas and methods

6.96 CADGetDrawPrefs

IO Parameter Type Description
in theCADArea longint Area ID
out theUsePixelCacheFlag integer A boolean constant
out thePaintPreciseLinesFlag integer A boolean constant
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADGetDrawPrefs, Up: Areas and methods

6.97 CADGetDrawSize

IO Parameter Type Description
in theCADArea longint Area ID
out theXLo real
out theYLo real
out theXHi real
out theYHi real
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADGetDrawSize, Up: Areas and methods

6.98 CADGetEllipseArc

IO Parameter Type Description
in theCADArea longint Area ID
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theObjID longint An Object ID, see Scope
out theCenterX real
out theCenterY real
out theRadiusX real
out theRadiusY real
out theStartAngle real
out theEndAngle real
out theRotation real
out theUpsideDownFlag integer A boolean constant
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADGetEllipseArc, Up: Areas and methods

6.99 CADGetEllipse

IO Parameter Type Description
in theCADArea longint Area ID
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theObjID longint An Object ID, see Scope
out theCenterX real
out theCenterY real
out theRadiusX real
out theRadiusY real
out theRotation real
out theUpsideDownFlag integer A boolean constant
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADGetEllipse, Up: Areas and methods

6.100 CADGetFill

IO Parameter Type Description
in theCADArea longint Area ID
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theObjScope longint kCADScopeSelectedObjects, kCADScopeAllObjects, kCADScopeObjOnEditableLayers, a Layer ID, a Sublayer ID, a programmer scope ID or an Object ID
out theFillStyle integer A fill style constant, see Fill
out theFillColor longint Color or a color constant
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADGetFill, Up: Areas and methods

6.101 CADGetFont

IO Parameter Type Description
in theCADArea longint Area ID
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theObjScope longint kCADScopeSelectedObjects, kCADScopeAllObjects, kCADScopeObjOnEditableLayers, a Layer ID, a Sublayer ID, a programmer scope ID or an Object ID
out theMacFontStr Str255
out theDosFontStr Str255
out theFontSize real
out theFontStyle integer A mask of font style constants
out theJustification integer A string justification constant
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADGetFont, Up: Areas and methods

6.102 CADGetHatch

IO Parameter Type Description
in theCADArea longint Area ID
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theObjScope longint kCADScopeSelectedObjects, kCADScopeAllObjects, kCADScopeObjOnEditableLayers, a Layer ID, a Sublayer ID, a programmer scope ID or an Object ID
out theHatchParamsFoundFlags longint A mask of hatch param constants
out theHatchID longint A Hatch ID or hatch ID constant
out theHatchColor longint Color or a color constant
out theHatchScale real
out theHatchRotation real
out theHatchTranslationX real
out theHatchTranslationY real
out theHatchAlignH integer A hatch alignment constant
out theHatchAlignV integer A hatch alignment constant
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADGetHatch, Up: Areas and methods

6.103 CADGetObjIDsArray

IO Parameter Type Description
in theCADArea longint Area ID
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theObjScope longint kCADScopeSelectedObjects, kCADScopeAllObjects, kCADScopeObjOnEditableLayers, a Layer ID, a Sublayer ID, a programmer scope ID or an Object ID
out theObjIDs array of longint
out theObjOrderIDs array of longint
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADGetObjIDsArray, Up: Areas and methods

6.104 CADGetImage

IO Parameter Type Description
in theCADArea longint Area ID
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theObjID longint An Object ID, see Scope
out theImageAlignH integer A raster image alignment constant
out theImageAlignV integer A raster image alignment constant
out theMatrixParam1 real Parameter 1 of a Linear transformation matrix
out theMatrixParam2 real Parameter 2 of a Linear transformation matrix
out theMatrixParam3 real Parameter 3 of a Linear transformation matrix
out theMatrixParam4 real Parameter 4 of a Linear transformation matrix
out theMatrixParam5 real Parameter 5 of a Linear transformation matrix
out theMatrixParam6 real Parameter 6 of a Linear transformation matrix
out theTransparentFlag integer A boolean constant
out theRasterColor longint Color or a color constant
out theScanResolutionH real
out theScanResolutionV real
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADGetImage, Up: Areas and methods

6.105 CADGetImageFile

IO Parameter Type Description
in theMacShowImportFilesOnlyFlag integer A boolean constant
out theMacVolumeRef integer
out theMacDirID longint
out theDosDirPath Str255
out theFileName Str255
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADGetImageFile, Up: Areas and methods

6.106 CADGetImageFileInfo

IO Parameter Type Description
in theMacVolumeRef integer
in theMacDirID longint
in theDosDirPath Str255
in theFileName Str255
out thePixelWidth longint
out thePixelHeight longint
out theResolutionH real
out theResolutionV real
out theColorBitDepth integer
out theTypeOfImage Str255
in thePreviewPictureFlag integer A boolean constant
out thePreviewPicture Picture
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADGetImageFileInfo, Up: Areas and methods

6.107 CADGetImageInfo

IO Parameter Type Description
in theRasterPicture Picture
out thePixelWidth longint
out thePixelHeight longint
out theResolutionH real
out theResolutionV real
out theColorBitDepth integer
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADGetImageInfo, Up: Areas and methods

6.108 CADGetImageXY

IO Parameter Type Description
in theCADArea longint Area ID
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theObjID longint An Object ID, see Scope
out theImageAlignH integer A raster image alignment constant
out theImageAlignV integer A raster image alignment constant
out theAnchorX real
out theAnchorY real
out theTransparentFlag integer A boolean constant
out theRasterColor longint Color or a color constant
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADGetImageXY, Up: Areas and methods

6.109 CADGetInsertColor

IO Parameter Type Description
in theCADArea longint Area ID
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theObjScope longint kCADScopeSelectedObjects, kCADScopeAllObjects, kCADScopeObjOnEditableLayers, a Layer ID, a Sublayer ID, a programmer scope ID or an Object ID
out theInsertLineColor longint Color or a color constant
out theInsertFillColor longint Color or a color constant
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADGetInsertColor, Up: Areas and methods

6.110 CADGetInsert

IO Parameter Type Description
in theCADArea longint Area ID
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theObjID longint An Object ID, see Scope
out theMatrixParam1 real Parameter 1 of a Linear transformation matrix
out theMatrixParam2 real Parameter 2 of a Linear transformation matrix
out theMatrixParam3 real Parameter 3 of a Linear transformation matrix
out theMatrixParam4 real Parameter 4 of a Linear transformation matrix
out theMatrixParam5 real Parameter 5 of a Linear transformation matrix
out theMatrixParam6 real Parameter 6 of a Linear transformation matrix
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADGetInsert, Up: Areas and methods

6.111 CADGetInsertID

IO Parameter Type Description
in theCADArea longint Area ID
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theObjID longint An Object ID, see Scope
out theInsertBlockID longint
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADGetInsertID, Up: Areas and methods

6.112 CADGetInsertXY

IO Parameter Type Description
in theCADArea longint Area ID
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theObjID longint An Object ID, see Scope
out theInsertX real
out theInsertY real
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADGetInsertXY, Up: Areas and methods

6.113 CADGetItemColor

IO Parameter Type Description
in theColorPaletteArea longint
in theItem integer
out theColor longint Color or a color constant
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADGetItemColor, Up: Areas and methods

6.114 CADGetKey

IO Parameter Type Description
in theCADArea longint Area ID
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theObjScope longint kCADScopeSelectedObjects, kCADScopeAllObjects, kCADScopeObjOnEditableLayers, a Layer ID, a Sublayer ID, a programmer scope ID or an Object ID
in theTypeOfKey integer A number between 1 and kCADMaxKeyIndex
out theKey longint
out theKeyResultFlag integer A boolean constant
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADGetKey, Up: Areas and methods

6.115 CADGetKeyArray

IO Parameter Type Description
in theCADArea longint Area ID
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theObjScope longint kCADScopeSelectedObjects, kCADScopeAllObjects, kCADScopeObjOnEditableLayers, a Layer ID, a Sublayer ID, a programmer scope ID or an Object ID
in theTypeOfKey integer A number between 1 and kCADMaxKeyIndex
out theKeyArray array of longint
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADGetKeyArray, Up: Areas and methods

6.116 CADGetKeyMask

IO Parameter Type Description
in theCADArea longint Area ID
out theObjKeysToCopy longint A mask of key mask constants
out theObjKeysToCompare longint A mask of key mask constants
out theBlockKeysToCopy longint A mask of key mask constants
out theBlockKeysToCompare longint A mask of key mask constants
out theLayerKeysToCopy longint A mask of key mask constants
out theLayerKeysToCompare longint A mask of key mask constants
out theSubLayerKeysToCopy longint A mask of key mask constants
out theSubLayerKeysToCompare longint A mask of key mask constants
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADGetKeyMask, Up: Areas and methods

6.117 CADGetLineTypeDefinition

IO Parameter Type Description
in theCADArea longint Area ID
in theLineTypeID longint Linetype ID or a linetype ID constant
out theLineTypeName string
out theLineTypeType integer A linetype type constant
out theLineTypeUnits array of real
out theLineTypeLength real
out theLineTypeScalingFlag integer A boolean constant
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADGetLineTypeDefinition, Up: Areas and methods

6.118 CADGetLineTypeIDs

IO Parameter Type Description
in theCADArea longint Area ID
out theLineTypeIDs array of longint Array of Linetype ID or linetype ID constant
out theLineTypeNames array of string or text
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADGetLineTypeIDs, Up: Areas and methods

6.119 CADGetLayerOrder

IO Parameter Type Description
in theCADArea longint Area ID
out theLayerIDs array of longint
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADGetLayerOrder, Up: Areas and methods

6.120 CADGetLayer

IO Parameter Type Description
in theCADArea longint Area ID
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theObjScope longint kCADScopeSelectedObjects, kCADScopeAllObjects, kCADScopeObjOnEditableLayers, a Layer ID, a Sublayer ID, a programmer scope ID or an Object ID
out theLayerID longint paramOutSubLayerID
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADGetLayer, Up: Areas and methods

6.121 CADGetLayerAttributes

IO Parameter Type Description
in theCADArea longint Area ID
in theLayerOrSubLayerID longint Layer ID or Sublayer ID
out theLayerName Str255
out theLayerMode integer A layer mode constant
out theLayerTransparencyFlag integer A boolean constant
out theLayerHatchesVisibleFlag integer A boolean constant
out theLayerHasSnapsFlag integer A boolean constant
out theLayerID longint
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADGetLayerAttributes, Up: Areas and methods

6.122 CADGetLayerKey

IO Parameter Type Description
in theCADArea longint Area ID
in theLayerOrSubLayerID longint Layer ID or Sublayer ID
in theTypeOfKey integer A number between 1 and kCADMaxKeyIndex
out theKey longint
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADGetLayerKey, Up: Areas and methods

6.123 CADGetLayers

IO Parameter Type Description
in theCADArea longint Area ID
out theLayerIDs array of longint
out theLayerNames array of string or text
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADGetLayers, Up: Areas and methods

6.124 CADGetLine

IO Parameter Type Description
in theCADArea longint Area ID
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theObjID longint An Object ID, see Scope
out theLineStartX real
out theLineStartY real
out theLineEndX real
out theLineEndY real
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADGetLine, Up: Areas and methods

6.125 CADGetLineType

IO Parameter Type Description
in theCADArea longint Area ID
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theObjScope longint kCADScopeSelectedObjects, kCADScopeAllObjects, kCADScopeObjOnEditableLayers, a Layer ID, a Sublayer ID, a programmer scope ID or an Object ID
out theLineTypeID longint Linetype ID or a linetype ID constant
out theLineTypeScale real
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADGetLineType, Up: Areas and methods

6.126 CADGetLineWidth

IO Parameter Type Description
in theCADArea longint Area ID
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theObjScope longint kCADScopeSelectedObjects, kCADScopeAllObjects, kCADScopeObjOnEditableLayers, a Layer ID, a Sublayer ID, a programmer scope ID or an Object ID
out theLineWidth real Linewidth (also see Linewidth and linetype restrictions)
out theOneResultFlag integer A boolean constant
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADGetLineWidth, Up: Areas and methods

6.127 CADGetLock

IO Parameter Type Description
in theCADArea longint Area ID
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theObjScope longint kCADScopeSelectedObjects, kCADScopeAllObjects, kCADScopeObjOnEditableLayers, a Layer ID, a Sublayer ID, a programmer scope ID or an Object ID
in theTypeOfLock integer An object locking type constant
out theLockedFlag integer A boolean constant
out theOneResultFlag integer A boolean constant
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADGetLock, Up: Areas and methods

6.128 CADGetMarking

IO Parameter Type Description
in theCADArea longint Area ID
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theObjScope longint kCADScopeSelectedObjects, kCADScopeAllObjects, kCADScopeObjOnEditableLayers, a Layer ID, a Sublayer ID, a programmer scope ID or an Object ID
out theMarkingStartID longint A marking ID constant
out theMarkingEndID longint A marking ID constant
out theMarkingScale real
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADGetMarking, Up: Areas and methods

6.129 CADGetMatrixPlane

IO Parameter Type Description
in theMatrixParam1 real Parameter 1 of a Linear transformation matrix
in theMatrixParam2 real Parameter 2 of a Linear transformation matrix
in theMatrixParam3 real Parameter 3 of a Linear transformation matrix
in theMatrixParam4 real Parameter 4 of a Linear transformation matrix
in theMatrixParam5 real Parameter 5 of a Linear transformation matrix
in theMatrixParam6 real Parameter 6 of a Linear transformation matrix
out theRectangularFlag integer A boolean constant
out theRectangularScalingX real
out theRectangularScalingY real
out theRectangularRotation real
out theTranslationX real
out theTranslationY real
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADGetMatrixPlane, Up: Areas and methods

6.130 CADGetMeasurePrefs

IO Parameter Type Description
in theCADArea longint Area ID
in theTypeOfMeasure integer A measure type constant
out theIsVisibleFlag integer A boolean constant
out theIsEditableFlag integer A boolean constant
out theOptionalFixedWidth integer
out theMinimumWidth integer
out theNumberOfDecimals integer
out theLinearUnitFactor real
out theLinearUnitDivisor real
out theOptionalUnitStr Str3
out theOptionalUnitStrWidth integer
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADGetMeasurePrefs, Up: Areas and methods

6.131 CADGetMode

IO Parameter Type Description
in theCADArea longint Area ID
out theMode integer A mode constant
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADGetMode, Up: Areas and methods

6.132 CADGetMouseWheelPrefs

IO Parameter Type Description
in theCADArea longint Area ID
out theMouseWheelUse integer A mouse wheel use constant
out theScrollModifiersToZoom longint A mask of modifier key constants
out theZoomDirection integer A mouse wheel zoom constant
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADGetMouseWheelPrefs, Up: Areas and methods

6.133 CADGetObjID

IO Parameter Type Description
in theCADArea longint Area ID
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theObjScope longint kCADScopeSelectedObjects, kCADScopeAllObjects, kCADScopeObjOnEditableLayers, a Layer ID, a Sublayer ID, a programmer scope ID or an Object ID
in theObjToGet integer An object to get constant
in theRecentObjID longint
out theObjID longint
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADGetObjID, Up: Areas and methods

6.134 CADGetObjInfo

IO Parameter Type Description
in theCADArea longint Area ID
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theObjID longint An Object ID, see Scope
out theObjType integer An object type constant
out theObjOrderID longint
out theObjLayerID longint
out theObjSubLayerID longint Sublayer ID or kCADNotOnSubLayerID
out theObjSelectedFlag integer A boolean constant
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADGetObjInfo, Up: Areas and methods

6.135 CADGetObjKey

IO Parameter Type Description
in theCADArea longint Area ID
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theObjID longint An Object ID, see Scope
in theTypeOfKey integer A number between 1 and kCADMaxKeyIndex
out theKey longint
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADGetObjKey, Up: Areas and methods

6.136 CADGetObjLock

IO Parameter Type Description
in theCADArea longint Area ID
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theObjID longint An Object ID, see Scope
in theTypeOfLock integer An object locking type constant
out theObjLockedFlag integer A boolean constant
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADGetObjType, Up: Areas and methods

6.137 CADGetOnError

IO Parameter Type Description
in theCADArea longint Area ID
out theErrorProcStr Str255
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADGetOnError, Up: Areas and methods

6.138 CADGetOnEvent

IO Parameter Type Description
in theCADArea longint Area ID
in theEventPhase longint An event phase constant
out theEventFilter1 longint A mask of event filter 1 constants or kCADEventFilterAll
out theEventFilter2 longint A mask of event filter 2 constants or kCADEventFilterAll
out theEventProcStr Str255
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADGetOnEvent, Up: Areas and methods

6.139 CADGetPaperSizes

IO Parameter Type Description
in theCADArea longint Area ID
in theObjScopeToPrint longint kCADScopeSelectedObjects, kCADScopeAllObjects, kCADScopeObjOnEditableLayers, a Layer ID, a Sublayer ID, a programmer scope ID or an Object ID
in thePaperSizeUnit integer A papersize unit constant
out thePaperSizeH array of real
out thePaperSizeV array of real
out theScaleToFitPortrait array of real
out theScaleToFitLandscape array of real
out thePaperSizeName array of string or text
out theCurrentOne longint
out theCurrentOrientation integer A paper orientation constant
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADGetPaperSizes, Up: Areas and methods

6.140 CADGetPolyAngle

IO Parameter Type Description
in theCADArea longint Area ID
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theObjID longint An Object ID, see Scope
out thePolyLineAngle real
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADGetPolyAngle, Up: Areas and methods

6.141 CADGetPolyLine

IO Parameter Type Description
in theCADArea longint Area ID
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theObjID longint An Object ID, see Scope
out theVerticesX array of real
out theVerticesY array of real
out thePolyLineIsClosedFlag integer A boolean constant
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADGetPolyLine, Up: Areas and methods

6.142 CADGetPrintSpecs

IO Parameter Type Description
in theCADArea longint Area ID
out thePrintAlignH integer A print alignment constant
out thePrintAlignV integer A print alignment constant
out thePrintMarginX real
out thePrintMarginY real
out thePrintResolutionOnMacintosh integer Print resolution on Macintosh in dot per inch or kCADDefaultPrinterResolution. The parameter is ignored Windows. It is required on the Mac, due to limitations of the Mac OS X printing engine.
out thePrintOrientation integer A print orientation constant
out thePrintPrecisionFactorX real
out thePrintPrecisionFactorY real
out thePrintSizeTypeToUse integer A print size to use constant
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADGetPrintSpecs, Up: Areas and methods

6.143 CADGetRectangle

IO Parameter Type Description
in theCADArea longint Area ID
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theObjID longint An Object ID, see Scope
out theRectangleX1 real
out theRectangleY1 real
out theRectangleX2 real
out theRectangleY2 real
out theRotation real
out theUpsideDownFlag integer A boolean constant
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADGetRectangle, Up: Areas and methods

6.144 CADGetRedraw

IO Parameter Type Description
in theCADArea longint Area ID
out theRedrawMode integer A redraw mode constant
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADGetRedraw, Up: Areas and methods

6.145 CADGetRef

IO Parameter Type Description
in theCADArea longint Area ID
out theCADRefID longint
out theAppRefID longint
out theAppVersion longint
out theAppStr Str255
out theDocRefID longint
out theDocVersion longint
out theDocDate Date4D
out theDocTime Time4D
out theDocUserName Str255
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADGetRef, Up: Areas and methods

6.146 CADGetScale

IO Parameter Type Description
in theCADArea longint Area ID
out thePrintScale real
out theAreaLineTypeScale real
out theAreaMarkingScale real
out theAreaHatchScale real
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADGetScale, Up: Areas and methods

6.147 CADGetScopeIDs

IO Parameter Type Description
in theCADArea longint Area ID
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
out theScopeIDs array of longint
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADGetScopeIDs, Up: Areas and methods

6.148 CADGetScroll

IO Parameter Type Description
in theCADArea longint Area ID
in theOptionalView integer A view constant or 0
in theScrollAlignH integer A scroll alignment constant
in theScrollAlignV integer A scroll alignment constant
out theScrollPtX real
out theScrollPtY real
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADGetScroll, Up: Areas and methods

6.149 CADGetSnapPrefs

IO Parameter Type Description
in theCADArea longint Area ID
out theSnapPixelRadius integer kCADSnapDefaultPixelRadius or a snap radius in pixels in the range kCADSnapMinimumPixelRadius up to kCADSnapMaximumPixelRadius
out theSnapMinimumLayerMode integer A layer mode constant
out theSnapHideCursorOnSnapFlag integer A boolean constant
out theSnapsAreOnFlag integer A boolean constant
out theSnapToPixForReshapeFlag integer A boolean constant
out theSnapToPixForTranslateFlag integer A boolean constant
out theSnapToggleFlag integer A boolean constant
out theSnapToggleKeyAscii integer
out theMaxObjectsToFindCrossings longint
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADGetSnapPrefs, Up: Areas and methods

6.150 CADGetSquare

IO Parameter Type Description
in theCADArea longint Area ID
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theObjID longint An Object ID, see Scope
out theSquareX1 real
out theSquareY1 real
out theSquareX2 real
out theSquareY2 real
out theRotation real
out theUpsideDownFlag integer A boolean constant
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADGetSquare, Up: Areas and methods

6.151 CADGetString

IO Parameter Type Description
in theCADArea longint Area ID
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theObjID longint An Object ID, see Scope
out theString Str255
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADGetString, Up: Areas and methods

6.152 CADGetStringXY

IO Parameter Type Description
in theCADArea longint Area ID
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theObjID longint An Object ID, see Scope
out theBaseX real
out theBaseY real
out theRotation real
out theBackToFrontFlag integer A boolean constant
out theJustification integer A string justification constant
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADGetStringXY, Up: Areas and methods

6.153 CADGetSubLayers

IO Parameter Type Description
in theCADArea longint Area ID
in theLayerID longint Layer ID
out theSubLayerIDs array of longint
out theSubLayerNames array of string or text
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADGetSubLayers, Up: Areas and methods

6.154 CADGetSysBackColor

IO Parameter Type Description
out function result longint Color or a color constant


Next: , Previous: CADGetSysBackColor, Up: Areas and methods

6.155 CADGetTitleSplit

IO Parameter Type Description
in theCADArea longint Area ID
out theTitleSplitMask longint A mask of title split constants
out theTitlePixOffsLeft longint
out theTitlePixOffsTop longint
out theTitleSplitVertexLeftX real
out theTitleSplitVertexTopY real
out theTitleZoomAlignH integer A zoom alignment constant
out theTitleZoomAlignV integer A zoom alignment constant
out theTitleZoomAnchorX real
out theTitleZoomAnchorY real
out theMainZoomAlignH integer A zoom alignment constant
out theMainZoomAlignV integer A zoom alignment constant
out theMainZoomAnchorX real
out theMainZoomAnchorY real
out theTitleGoggleFlag integer A boolean constant
out theTitleGoggleXLo real
out theTitleGoggleYLo real
out theTitleGoggleXHi real
out theTitleGoggleYHi real
out theMainGoggleFlag integer A boolean constant
out theMainGoggleXLo real
out theMainGoggleYLo real
out theMainGoggleXHi real
out theMainGoggleYHi real
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADGetObjLock, Up: Areas and methods

6.156 CADGetObjType

IO Parameter Type Description
in theCADArea longint Area ID
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theObjScope longint kCADScopeSelectedObjects, kCADScopeAllObjects, kCADScopeObjOnEditableLayers, a Layer ID, a Sublayer ID, a programmer scope ID or an Object ID
out theType integer An object type constant
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADGetTitleSplit, Up: Areas and methods

6.157 CADGetUndoPrefs

IO Parameter Type Description
in theCADArea longint Area ID
out theAutoResetUndoFlag integer A boolean constant
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADGetUndoPrefs, Up: Areas and methods

6.158 CADGetUnit

IO Parameter Type Description
in theCADArea longint Area ID
out theUnitStr Str4
out theConversionFactor real
out theConversionUnit integer A unit conversion constant
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADGetUnit, Up: Areas and methods

6.159 CADGetVersion

IO Parameter Type Description
out function result Str255


Next: , Previous: CADGetVersion, Up: Areas and methods

6.160 CADGetZoom

IO Parameter Type Description
in theCADArea longint Area ID
in theOptionalView integer A view constant or 0
out theZoomLoX real
out theZoomLoY real
out theZoomHiX real
out theZoomHiY real
out theZoomUnitsPerPixel real
out theZoomFactor real
out theZoomMaxFactor real
out theZoomMinFactor real
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADGetZoom, Up: Areas and methods

6.161 CADGetZoomPrefs

IO Parameter Type Description
in theCADArea longint Area ID
out theZoomMethod integer A zoom method constant
out theFreeZoomInFactor real
out theFreeZoomOutFactor real
out theAutoZoomFlag integer A boolean constant
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADGetZoomPrefs, Up: Areas and methods

6.162 CADGotoPage

IO Parameter Type Description
in theCADArea longint Area ID
in the4DLayoutPage longint 4D form page number or kCADGotoPageAutomatic
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADGotoPage, Up: Areas and methods

6.163 CADHatchToLine

IO Parameter Type Description
in theCADArea longint Area ID
in theObjScope longint kCADScopeSelectedObjects, kCADScopeAllObjects, kCADScopeObjOnEditableLayers, a Layer ID, a Sublayer ID, a programmer scope ID or an Object ID
in theMinimumResultLayerMode integer A layer mode constant
out theHatchResultLayerMode array of integer Array of layer mode constants
out theHatchSourceLayerID array of longint
out theHatchLineX1 array of array of real
out theHatchLineY1 array of array of real
out theHatchLineX2 array of array of real
out theHatchLineY2 array of array of real
out theHatchLineColor array of array of longint
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADHatchToLine, Up: Areas and methods

6.164 CADIdentityMatrix

IO Parameter Type Description
out theMatrixParam1 real Parameter 1 of a Linear transformation matrix
out theMatrixParam2 real Parameter 2 of a Linear transformation matrix
out theMatrixParam3 real Parameter 3 of a Linear transformation matrix
out theMatrixParam4 real Parameter 4 of a Linear transformation matrix
out theMatrixParam5 real Parameter 5 of a Linear transformation matrix
out theMatrixParam6 real Parameter 6 of a Linear transformation matrix


Next: , Previous: CADIdentityMatrix, Up: Areas and methods

6.165 CADImportDXF

IO Parameter Type Description
in theCADArea longint Area ID
in theMacVolumeRef integer
in theMacDirID longint
in theDosDirPath Str255
in theFileName Str255
in theDXFLayerID longint
in theMacFontStr Str255 A Font string or kCADDefaultDXFFontStr
in theDosFontStr Str255 A Font string or kCADDefaultDXFFontStr
in theSolidFillStyle integer A fill style constant or kCADDefaultDXFSolidFillStyle
in theSolidFillColor longint A Color, color constant or kCADDefaultDXFSolidFillColor
in the3DFaceFillStyle integer A fill style constant or kCADDefaultDXF3DFaceFillStyle
in the3DFaceFillColor longint A Color, color constant or kCADDefaultDXF3DFaceFillColor
in theImportInvisibleDXFObjsFlag integer A boolean constant or kCADDefaultDXFInvisibleObjFlag
in theConvertPolyToLineFlag integer A boolean constant or kCADDefaultDXFConvertPolyToLine
in theConvertPolyToBoxFlag integer A boolean constant or kCADDefaultDXFConvertPolyToBox
in theReadColorsFlag integer A boolean constant or kCADDefaultDXFReadColorsFlag
out theLinesUpToErrOrEOF longint
out theBoundsLoX real
out theBoundsLoY real
out theBoundsHiX real
out theBoundsHiY real
out theLineTypeScale real
out theSkippedObjectNames array of string or text
out theSkippedObjectCount array of longint
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADImportDXF, Up: Areas and methods

6.166 CADImportImage

IO Parameter Type Description
in theCADArea longint Area ID
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theLayerOrSubLayerID longint Layer ID or Sublayer ID
in theAnchorX real
in theAnchorY real
in theImageAlignH integer A raster image alignment constant
in theImageAlignV integer A raster image alignment constant
in theTransparentFlag integer A boolean constant
in theScanResolutionH real
in theScanResolutionV real
in thePrintResolutionH real
in thePrintResolutionV real
in theRotation real
in theColorBitDepth integer
in theMacVolumeRef integer
in theMacDirID longint
in theDosDirPath Str255
in theFileName Str255
out theResultObjID longint
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADImportImage, Up: Areas and methods

6.167 CADInScope

IO Parameter Type Description
in theCADArea longint Area ID
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theObjScope longint kCADScopeSelectedObjects, kCADScopeAllObjects, kCADScopeObjOnEditableLayers, a Layer ID, a Sublayer ID, a programmer scope ID or an Object ID
in theObjID longint An Object ID, see Scope
out theInScopeFlag integer A boolean constant
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADInScope, Up: Areas and methods

6.168 CADIndexToColor

IO Parameter Type Description
in theColorPaletteIndex integer
out theColor longint Color or a color constant
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADIndexToColor, Up: Areas and methods

6.169 CADInvertMatrix

IO Parameter Type Description
in/out theMatrixParam1 real Parameter 1 of a Linear transformation matrix
in/out theMatrixParam2 real Parameter 2 of a Linear transformation matrix
in/out theMatrixParam3 real Parameter 3 of a Linear transformation matrix
in/out theMatrixParam4 real Parameter 4 of a Linear transformation matrix
in/out theMatrixParam5 real Parameter 5 of a Linear transformation matrix
in/out theMatrixParam6 real Parameter 6 of a Linear transformation matrix
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADInvertMatrix, Up: Areas and methods

6.170 CADLastArea

IO Parameter Type Description
out function result longint


Next: , Previous: CADLastArea, Up: Areas and methods

6.171 CADLengthenObj

IO Parameter Type Description
in theCADArea longint Area ID
in theLocking integer kCADLockingIgnoreLock
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theObjScope longint kCADScopeSelectedObjects, kCADScopeAllObjects, kCADScopeObjOnEditableLayers, a Layer ID, a Sublayer ID, a programmer scope ID or an Object ID
in theLeftRightAnchorType integer
in theTopBottomAnchorType integer
in theLeftRightExtension real
in theTopBottomExtension real
in theOptionalPolyLineIndex longint
in theOpCannotLengthenTargetScope longint 0 or kCADScopeSelectedObjects or a programmer scope ID
in theOptionalCheckOnlyFlag integer A boolean constant
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADLengthenObj, Up: Areas and methods

6.172 CADLineAndArc

IO Parameter Type Description
in theLineX1 real
in theLineY1 real
in theLineX2 real
in theLineY2 real
in theArcCenterX real
in theArcCenterY real
in theArcRadiusX real
in theArcRadiusY real
in theArcRotation real
in theOptionalArcStartAngle real
in theOptionalArcEndAngle real
out theIntersectX1 real
out theIntersectY1 real
out theIntersectFlag1 integer A boolean constant
out theIntersectX2 real
out theIntersectY2 real
out theIntersectFlag2 integer A boolean constant
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADLineAndArc, Up: Areas and methods

6.173 CADLineAndLine

IO Parameter Type Description
in theLine1X1 real
in theLine1Y1 real
in theLine1X2 real
in theLine1Y2 real
in theLine2X1 real
in theLine2Y1 real
in theLine2X2 real
in theLine2Y2 real
out theOneIntersectionPointX real
out theOneIntersectionPointY real
out theOneIntersectionPointFlag integer A boolean constant
out theLineHitsLineFlag integer A boolean constant


Next: , Previous: CADLineAndLine, Up: Areas and methods

6.174 CADLineAndRect

IO Parameter Type Description
in theLineX1 real
in theLineY1 real
in theLineX2 real
in theLineY2 real
in theRectX1 real
in theRectY1 real
in theRectX2 real
in theRectY2 real
out theLineInRectX1 real
out theLineInRectY1 real
out theLineInRectX2 real
out theLineInRectY2 real
out theIntersectionFlag integer A boolean constant


Next: , Previous: CADLineAndRect, Up: Areas and methods

6.175 CADLoadFromBlob

IO Parameter Type Description
in theCADArea longint Area ID
in theCADStorage Blob
in theCADStorageName Str255
in theProgress integer A progress constant
out theStoredMode integer A mode constant
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADLoadFromBlob, Up: Areas and methods

6.176 CADLoadFromFile

IO Parameter Type Description
in theCADArea longint Area ID
in theMacVolumeRef integer
in theMacDirID longint
in theDosDirPath Str255
in theFileName Str255
in theProgress integer A progress constant
out theStoredMode integer A mode constant
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADLoadFromFile, Up: Areas and methods

6.177 CADLoadFromPict

IO Parameter Type Description
in theCADArea longint Area ID
in theCADStorage Picture
in theCADStorageName Str255
in theProgress integer A progress constant
out theStoredMode integer A mode constant
out function result OSErr Error result code, also see Error handling

Important
Storing CAD drawings in pictures is obsolete ! Please use blobs instead.


Next: , Previous: CADLoadFromPict, Up: Areas and methods

6.178 CADLoadFromRes

IO Parameter Type Description
in theCADArea longint Area ID
in theOptionalResFileRef integer
in theResType Str4
in theResID integer
in theProgress integer A progress constant
out theStoredMode integer A mode constant
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADLoadFromRes, Up: Areas and methods

6.179 CADMetrics

IO Parameter Type Description
in theCADArea longint Area ID
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theObjScope longint kCADScopeSelectedObjects, kCADScopeAllObjects, kCADScopeObjOnEditableLayers, a Layer ID, a Sublayer ID, a programmer scope ID or an Object ID
out theObjIDs array of longint
out theObjLengths array of real
out theObjWidths array of real
out theObjSurfaceAreas array of real
out theObjPerimeters array of real
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADMetrics, Up: Areas and methods

6.180 CADMetricsByMatrix

IO Parameter Type Description
in theCADArea longint Area ID
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theObjScope longint kCADScopeSelectedObjects, kCADScopeAllObjects, kCADScopeObjOnEditableLayers, a Layer ID, a Sublayer ID, a programmer scope ID or an Object ID
in theMatrixParam1 real Parameter 1 of a Linear transformation matrix
in theMatrixParam2 real Parameter 2 of a Linear transformation matrix
in theMatrixParam3 real Parameter 3 of a Linear transformation matrix
in theMatrixParam4 real Parameter 4 of a Linear transformation matrix
out theObjIDs array of longint
out theObjLengths array of real
out theObjWidths array of real
out theObjSurfaceAreas array of real
out theObjPerimeters array of real
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADMetricsByMatrix, Up: Areas and methods

6.181 CADMirror

IO Parameter Type Description
in theCADArea longint Area ID
in theLocking integer kCADLockingIgnoreLock
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theObjScope longint kCADScopeSelectedObjects, kCADScopeAllObjects, kCADScopeObjOnEditableLayers, a Layer ID, a Sublayer ID, a programmer scope ID or an Object ID
in theMirrorBits integer A mask of mirror constants
in theMirrorCenterX real
in theMirrorCenterY real
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADMirror, Up: Areas and methods

6.182 CADMirrorMatrix

IO Parameter Type Description
in theMirrorBits integer A mask of mirror constants
in theMirrorCenterX real
in theMirrorCenterY real
in/out theMatrixParam1 real Parameter 1 of a Linear transformation matrix
in/out theMatrixParam2 real Parameter 2 of a Linear transformation matrix
in/out theMatrixParam3 real Parameter 3 of a Linear transformation matrix
in/out theMatrixParam4 real Parameter 4 of a Linear transformation matrix
in/out theMatrixParam5 real Parameter 5 of a Linear transformation matrix
in/out theMatrixParam6 real Parameter 6 of a Linear transformation matrix
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADMirrorMatrix, Up: Areas and methods

6.183 CADMoveByMatrix

IO Parameter Type Description
in theSourceArea longint
in theSourceBlockID longint
in theSourceObjScope longint kCADScopeSelectedObjects, kCADScopeAllObjects, kCADScopeObjOnEditableLayers, a Layer ID, a Sublayer ID, a programmer scope ID or an Object ID
in theTargetArea longint
in theTargetBlockID longint
in theMatrixParam1 real Parameter 1 of a Linear transformation matrix
in theMatrixParam2 real Parameter 2 of a Linear transformation matrix
in theMatrixParam3 real Parameter 3 of a Linear transformation matrix
in theMatrixParam4 real Parameter 4 of a Linear transformation matrix
in theMatrixParam5 real Parameter 5 of a Linear transformation matrix
in theMatrixParam6 real Parameter 6 of a Linear transformation matrix
in theOptionalTargetObjScope longint 0 or kCADScopeSelectedObjects or a programmer scope ID
in theOptionalTargetLayerID longint
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADMoveByMatrix, Up: Areas and methods

6.184 CADMoveTo

IO Parameter Type Description
in theSourceArea longint
in theSourceBlockID longint
in theSourceObjScope longint kCADScopeSelectedObjects, kCADScopeAllObjects, kCADScopeObjOnEditableLayers, a Layer ID, a Sublayer ID, a programmer scope ID or an Object ID
in theTargetArea longint
in theTargetBlockID longint
in theOptionalTargetObjScope longint 0 or kCADScopeSelectedObjects or a programmer scope ID
in theOptionalTargetLayerID longin
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADMoveTo, Up: Areas and methods

6.185 CADMoveToBack

IO Parameter Type Description
in theCADArea longint Area ID
in theLocking integer kCADLockingIgnoreLock
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theObjScope longint kCADScopeSelectedObjects, kCADScopeAllObjects, kCADScopeObjOnEditableLayers, a Layer ID, a Sublayer ID, a programmer scope ID or an Object ID
in theOptionalObjID longint
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADMoveToBack, Up: Areas and methods

6.186 CADMoveToFront

IO Parameter Type Description
in theCADArea longint Area ID
in theLocking integer kCADLockingIgnoreLock
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theObjScope longint kCADScopeSelectedObjects, kCADScopeAllObjects, kCADScopeObjOnEditableLayers, a Layer ID, a Sublayer ID, a programmer scope ID or an Object ID
in theOptionalObjID longint
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADMoveToFront, Up: Areas and methods

6.187 CADNewOffscreen

IO Parameter Type Description
out theNewOffscreenArea longint
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADNewOffscreen, Up: Areas and methods

6.188 CADObjBox

IO Parameter Type Description
in theCADArea longint Area ID
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theObjID longint An Object ID, see Scope
out theBoxX1 real
out theBoxY1 real
out theBoxX2 real
out theBoxY2 real
out theBoxRotation real
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADObjBox, Up: Areas and methods

6.189 CADObjCenter

IO Parameter Type Description
in theCADArea longint Area ID
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theObjID longint An Object ID, see Scope
out theRotationCenterX real
out theRotationCenterY real
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADObjCircle, Up: Areas and methods

6.190 CADObjCircleArc

IO Parameter Type Description
in theCADArea longint Area ID
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theObjID longint An Object ID, see Scope
out theCenterX real
out theCenterY real
out theRadius real
out theStartAngle real
out theEndAngle real
out theRotation real
out theUpsideDownFlag integer A boolean constant
out theLineWidth real Linewidth (also see Linewidth and linetype restrictions)
out theLineColor longint Color or a color constant
out theFillColor longint Color or a color constant
out theFillStyle integer A fill style constant, see Fill
out theLineTypeID longint Linetype ID or a linetype ID constant
out theLineTypeScale real
out theMarkingStartID longint A marking ID constant
out theMarkingEndID longint A marking ID constant
out theMarkingScale real
out theHatchID longint A Hatch ID or hatch ID constant
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADObjCenter, Up: Areas and methods

6.191 CADObjCircle

IO Parameter Type Description
in theCADArea longint Area ID
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theObjID longint An Object ID, see Scope
out theCenterX real
out theCenterY real
out theRadius real
out theRotation real
out theUpsideDownFlag integer A boolean constant
out theLineWidth real Linewidth (also see Linewidth and linetype restrictions)
out theLineColor longint Color or a color constant
out theFillColor longint Color or a color constant
out theFillStyle integer A fill style constant, see Fill
out theLineTypeID longint Linetype ID or a linetype ID constant
out theLineTypeScale real
out theHatchID longint A Hatch ID or hatch ID constant
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADObjCircleArc, Up: Areas and methods

6.192 CADObjEllipseArc

IO Parameter Type Description
in theCADArea longint Area ID
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theObjID longint An Object ID, see Scope
out theCenterX real
out theCenterY real
out theRadiusX real
out theRadiusY real
out theStartAngle real
out theEndAngle real
out theRotation real
out theUpsideDownFlag integer A boolean constant
out theLineWidth real Linewidth (also see Linewidth and linetype restrictions)
out theLineColor longint Color or a color constant
out theFillColor longint Color or a color constant
out theFillStyle integer A fill style constant, see Fill
out theLineTypeID longint Linetype ID or a linetype ID constant
out theLineTypeScale real
out theMarkingStartID longint A marking ID constant
out theMarkingEndID longint A marking ID constant
out theMarkingScale real
out theHatchID longint A Hatch ID or hatch ID constant
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADObjEllipseArc, Up: Areas and methods

6.193 CADObjEllipse

IO Parameter Type Description
in theCADArea longint Area ID
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theObjID longint An Object ID, see Scope
out theCenterX real
out theCenterY real
out theRadiusX real
out theRadiusY real
out theRotation real
out theUpsideDownFlag integer A boolean constant
out theLineWidth real Linewidth (also see Linewidth and linetype restrictions)
out theLineColor longint Color or a color constant
out theFillColor longint Color or a color constant
out theFillStyle integer A fill style constant, see Fill
out theLineTypeID longint Linetype ID or a linetype ID constant
out theLineTypeScale real
out theHatchID longint A Hatch ID or hatch ID constant
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADObjEllipse, Up: Areas and methods

6.194 CADObjImage

IO Parameter Type Description
in theCADArea longint Area ID
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theObjID longint An Object ID, see Scope
out theImageAlignH integer A raster image alignment constant
out theImageAlignV integer A raster image alignment constant
out theMatrixParam1 real Parameter 1 of a Linear transformation matrix
out theMatrixParam2 real Parameter 2 of a Linear transformation matrix
out theMatrixParam3 real Parameter 3 of a Linear transformation matrix
out theMatrixParam4 real Parameter 4 of a Linear transformation matrix
out theMatrixParam5 real Parameter 5 of a Linear transformation matrix
out theMatrixParam6 real Parameter 6 of a Linear transformation matrix
out thePixelWidth longint
out thePixelHeight longint
out theColorBitDepth integer
out theTransparentFlag integer A boolean constant
out theRasterColor longint
out theScanResolutionH real
out theScanResolutionV real
in theRasterGetPictureFlag integer A boolean constant
out theRasterPicture Picture
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADObjImage, Up: Areas and methods

6.195 CADObjInsert

IO Parameter Type Description
in theCADArea longint Area ID
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theObjID longint An Object ID, see Scope
out theInsertBlockID longint
out theMatrixParam1 real Parameter 1 of a Linear transformation matrix
out theMatrixParam2 real Parameter 2 of a Linear transformation matrix
out theMatrixParam3 real Parameter 3 of a Linear transformation matrix
out theMatrixParam4 real Parameter 4 of a Linear transformation matrix
out theMatrixParam5 real Parameter 5 of a Linear transformation matrix
out theMatrixParam6 real Parameter 6 of a Linear transformation matrix
out theInsertLineColor longint Color or a color constant
out theInsertFillColor longint Color or a color constant
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADObjInsert, Up: Areas and methods

6.196 CADObjLine

IO Parameter Type Description
in theCADArea longint Area ID
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theObjID longint An Object ID, see Scope
out theLineStartX real
out theLineStartY real
out theLineEndX real
out theLineEndY real
out theLineWidth real Linewidth (also see Linewidth and linetype restrictions)
out theLineColor longint Color or a color constant
out theLineTypeID longint Linetype ID or a linetype ID constant
out theLineTypeScale real
out theMarkingStartID longint A marking ID constant
out theMarkingEndID longint A marking ID constant
out theMarkingScale real
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADObjLine, Up: Areas and methods

6.197 CADObjPerimeter

IO Parameter Type Description
in theCADArea longint Area ID
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theObjID longint An Object ID, see Scope
out thePerimeter real
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADObjPerimeter, Up: Areas and methods

6.198 CADObjPolyLine

IO Parameter Type Description
in theCADArea longint Area ID
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theObjID longint An Object ID, see Scope
out theVerticesX array of real
out theVerticesY array of real
out thePolyLineIsClosedFlag integer A boolean constant
out theLineWidth real Linewidth (also see Linewidth and linetype restrictions)
out theLineColor longint Color or a color constant
out theFillColor longint Color or a color constant
out theFillStyle integer A fill style constant, see Fill
out theLineTypeID longint Linetype ID or a linetype ID constant
out theLineTypeScale real
out theHatchID longint A Hatch ID or hatch ID constant
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADObjPolyLine, Up: Areas and methods

6.199 CADObjRectangle

IO Parameter Type Description
in theCADArea longint Area ID
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theObjID longint An Object ID, see Scope
out theRectangleX1 real
out theRectangleY1 real
out theRectangleX2 real
out theRectangleY2 real
out theRotation real
out theUpsideDownFlag integer A boolean constant
out theLineWidth real Linewidth (also see Linewidth and linetype restrictions)
out theLineColor longint Color or a color constant
out theFillColor longint Color or a color constant
out theFillStyle integer A fill style constant, see Fill
out theLineTypeID longint Linetype ID or a linetype ID constant
out theLineTypeScale real
out theHatchID longint A Hatch ID or hatch ID constant
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADObjRectangle, Up: Areas and methods

6.200 CADObjSquare

IO Parameter Type Description
in theCADArea longint Area ID
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theObjID longint An Object ID, see Scope
out theSquareX1 real
out theSquareY1 real
out theSquareX2 real
out theSquareY2 real
out theRotation real
out theUpsideDownFlag integer A boolean constant
out theLineWidth real Linewidth (also see Linewidth and linetype restrictions)
out theLineColor longint Color or a color constant
out theFillColor longint Color or a color constant
out theFillStyle integer A fill style constant, see Fill
out theLineTypeID longint Linetype ID or a linetype ID constant
out theLineTypeScale real
out theHatchID longint A Hatch ID or hatch ID constant
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADObjSquare, Up: Areas and methods

6.201 CADObjString

IO Parameter Type Description
in theCADArea longint Area ID
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theObjID longint An Object ID, see Scope
out theString Str255
out theBaseX real
out theBaseY real
out theRotation real
out theBackToFrontFlag integer A boolean constant
out theJustification integer A string justification constant
out theMacFontStr Str255
out theDosFontStr Str255
out theFontSize real
out theFontStyle integer A mask of font style constants
out theStringColor longint
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADObjString, Up: Areas and methods

6.202 CADObjSurface

IO Parameter Type Description
in theCADArea longint Area ID
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theObjID longint An Object ID, see Scope
out theSurfaceArea real
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADObjSurface, Up: Areas and methods

6.203 CADOneObjID

IO Parameter Type Description
in theCADArea longint Area ID
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theObjScope longint kCADScopeSelectedObjects, kCADScopeAllObjects, kCADScopeObjOnEditableLayers, a Layer ID, a Sublayer ID, a programmer scope ID or an Object ID
out theObjID longint
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADOneObjID, Up: Areas and methods

6.204 CADPageSetup

IO Parameter Type Description
in theCADArea longint Area ID
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADPageSetup, Up: Areas and methods

6.205 CADPictToBlob

IO Parameter Type Description
in theOldCADStorage Picture
out theNewCADStorage Blob
out function result OSErr Error result code, also see Error handling

Important
Storing CAD drawings in pictures is obsolete ! Please use blobs instead.


Next: , Previous: CADBlendColor, Up: Areas and methods

6.206 CADBlobToFile

IO Parameter Type Description
in theCADStorage Blob
in theMacVolumeRef integer
in theMacDirID longint
in theDosDirPath Str255
in theFileName Str255
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADPictToBlob, Up: Areas and methods

6.207 CADPictToFile

IO Parameter Type Description
in theCADStorage Picture
in theMacVolumeRef integer
in theMacDirID longint
in theDosDirPath Str255
in theFileName Str255
out function result OSErr Error result code, also see Error handling

Important
Storing CAD drawings in pictures is obsolete ! Please use blobs instead.


Next: , Previous: CADPictToFile, Up: Areas and methods

6.208 CADPointInPoly

IO Parameter Type Description
in thePolyAx array of real
in thePolyAy array of real
in thePointx real
in thePointy real
out thePointPosition integer A point in polyline constant
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADPointInPoly, Up: Areas and methods

6.209 CADPointInRect

IO Parameter Type Description
in thePointX real
in thePointY real
in theRectX1 real
in theRectY1 real
in theRectX2 real
in theRectY2 real
out thePointInRectFlag integer A boolean constant


Next: , Previous: CADPointInRect, Up: Areas and methods

6.210 CADPointOnLine

IO Parameter Type Description
in thePointX real
in thePointY real
in theLineX1 real
in theLineY1 real
in theLineX2 real
in theLineY2 real
out thePointOnLineFlag integer A boolean constant


Next: , Previous: CADPointOnLine, Up: Areas and methods

6.211 CADPolyAndPoly

IO Parameter Type Description
in thePolyAx array of real
in thePolyAy array of real
in thePolyBx array of real
in thePolyBy array of real
out thePolyABx two-dimensional array of real
out thePolyABy two-dimensional array of real
out theIntersectionResult integer
out thePolyACheckResult integer
out thePolyBCheckResult integer
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADPolyAndPoly, Up: Areas and methods

6.212 CADPolyBounds

IO Parameter Type Description
in theCADArea longint Area ID
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theObjID longint An Object ID, see Scope
in theRotation real
in theBoundsToGet integer A bounds type constant
out theBoundsX1 real
out theBoundsY1 real
out theBoundsX2 real
out theBoundsY2 real
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADPolyBounds, Up: Areas and methods

6.213 CADPolyCalc

IO Parameter Type Description
in theCADArea longint Area ID
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in thePolyLineObjID longint
out thePolyCenterOfBoxX real
out thePolyCenterOfBoxY real
out thePolyCenterOfMassX real
out thePolyCenterOfMassY real
out thePolyDeterminant real
out thePolySurfaceArea real
out thePolySegmentFlag integer A boolean constant
out thePolySelfIntersectingFlag integer A boolean constant
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADPolyCalc, Up: Areas and methods

6.214 CADPolyUndouble

IO Parameter Type Description
in theCADArea longint Area ID
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in thePolyLineObjID longint
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADPolyUndouble, Up: Areas and methods

6.215 CADPrint

IO Parameter Type Description
in theCADArea longint Area ID
in theOptionalPrintName Str255
in theSuppressJobDialogFlag integer A boolean constant
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADPrint, Up: Areas and methods

6.216 CADPrintToPDF

IO Parameter Type Description
in theCADArea longint Area ID
in thePDFEngine integer A PDF engine constant
in thePDFFlags longint A mask of PDF flag constants
in theOptionalMacFileCreator Str4
in theMacVolumeRef integer
in theMacDirID longint
in theDosDirPathStr Str255
in theFilename Str255
in theReplaceExistingFileFlag integer A boolean constant
in thePDFTitleStr Str255
in thePDFAuthorStr Str255
in thePDFCreatorStr Str255
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADPrintToPDF, Up: Areas and methods

6.217 CADPutCADFile

IO Parameter Type Description
in thePrompt Str255
in theDefaultFileName Str255
in theOptionalDosFileType Str255
out theMacVolumeRef integer
out theMacDirID longint
out theDosDirPath Str255
out theFileName Str255
out theReplacingFlag integer A boolean constant
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADPutCADFile, Up: Areas and methods

6.218 CADRGBToColor

IO Parameter Type Description
in theRed integer
in theGreen integer
in theBlue integer
out theColor longint
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADRGBToColor, Up: Areas and methods

6.219 CADRectAndRect

IO Parameter Type Description
in theRect1X1 real
in theRect1Y1 real
in theRect1X2 real
in theRect1Y2 real
in theRect2X1 real
in theRect2Y1 real
in theRect2X2 real
in theRect2Y2 real
out theIntersectRectX1 real
out theIntersectRectY1 real
out theIntersectRectX2 real
out theIntersectRectY2 real
out theIntersectionFlag integer A boolean constant


Next: , Previous: CADRectAndRect, Up: Areas and methods

6.220 CADRedrawArea

IO Parameter Type Description
in theCADArea longint Area ID
in theOptionalRedrawMode integer A redraw mode constant
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADRedrawArea, Up: Areas and methods

6.221 CADRefFromBlob

IO Parameter Type Description
in theCADStorage Bob
out theCADRefID longint
out theAppRefID longint
out theAppVersion longint
out theAppStr Str255
out theDocRefID longint
out theDocVersion longint
out theDocDate Date4D
out theDocTime Time4D
out theDocUserName Str255
out theRootObjCount longint
out theBlockObjCount longint
out theBlockCount longint
out theOtherCount longint
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADRefFromBlob, Up: Areas and methods

6.222 CADRefFromFile

IO Parameter Type Description
in theMacVolumeRef integer
in theMacDirID longint
in theDosDirPath Str255
in theFileName Str255
out theCADRefID longint
out theAppRefID longint
out theAppVersion longint
out theAppStr Str255
out theDocRefID longint
out theDocVersion longint
out theDocDate Date4D
out theDocTime Time4D
out theDocUserName Str255
out theRootObjCount longint
out theBlockObjCount longint
out theBlockCount longint
out theOtherCount longint
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADRefFromFile, Up: Areas and methods

6.223 CADRefFromPict

IO Parameter Type Description
in theCADStorage Picture
out theCADRefID longint
out theAppRefID longint
out theAppVersion longint
out theAppStr Str255
out theDocRefID longint
out theDocVersion longint
out theDocDate Date4D
out theDocTime Time4D
out theDocUserName Str255
out theRootObjCount longint
out theBlockObjCount longint
out theBlockCount longint
out theOtherCount longint
out function result OSErr Error result code, also see Error handling

Important
Storing CAD drawings in pictures is obsolete ! Please use blobs instead.


Next: , Previous: CADRefFromPict, Up: Areas and methods

6.224 CADRemoveArray

IO Parameter Type Description
in theCADArea longint Area ID
in theArrayID longint
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADRemoveArray, Up: Areas and methods

6.225 CADRemoveBlock

IO Parameter Type Description
in theCADArea longint Area ID
in theLocking integer kCADLockingIgnoreLock
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADRemoveBlock, Up: Areas and methods

6.226 CADRemoveLayer

IO Parameter Type Description
in theCADArea longint Area ID
in theLocking integer kCADLockingIgnoreLock
in theRemoveLayerAction integer A layer removal constant
in theLayerOrSubLayerID longint Layer ID or Sublayer ID
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADRemoveLayer, Up: Areas and methods

6.227 CADRemoveObj

IO Parameter Type Description
in theCADArea longint Area ID
in theLocking integer kCADLockingIgnoreLock
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theObjScope longint kCADScopeSelectedObjects, kCADScopeAllObjects, kCADScopeObjOnEditableLayers, a Layer ID, a Sublayer ID, a programmer scope ID or an Object ID
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADRemoveObj, Up: Areas and methods

6.228 CADRemoveScope

IO Parameter Type Description
in theCADArea longint Area ID
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theScopeID longint
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADRemoveScope, Up: Areas and methods

6.229 CADResetUndo

IO Parameter Type Description
in theCADArea longint Area ID
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADResetUndo, Up: Areas and methods

6.230 CADRotate

IO Parameter Type Description
in theCADArea longint Area ID
in theLocking integer kCADLockingIgnoreLock
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theObjScope longint kCADScopeSelectedObjects, kCADScopeAllObjects, kCADScopeObjOnEditableLayers, a Layer ID, a Sublayer ID, a programmer scope ID or an Object ID
in theRotationCenterX real
in theRotationCenterY real
in theRotationDegrees real
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADRotate, Up: Areas and methods

6.231 CADRotateMatrix

IO Parameter Type Description
in theRotationCenterX real
in theRotationCenterY real
in theRotationDegrees real
in/out theMatrixParam1 real Parameter 1 of a Linear transformation matrix
in/out theMatrixParam2 real Parameter 2 of a Linear transformation matrix
in/out theMatrixParam3 real Parameter 3 of a Linear transformation matrix
in/out theMatrixParam4 real Parameter 4 of a Linear transformation matrix
in/out theMatrixParam5 real Parameter 5 of a Linear transformation matrix
in/out theMatrixParam6 real Parameter 6 of a Linear transformation matrix
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADRotateMatrix, Up: Areas and methods

6.232 CADRotateObj

IO Parameter Type Description
in theCADArea longint Area ID
in theLocking integer kCADLockingIgnoreLock
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theObjScope longint kCADScopeSelectedObjects, kCADScopeAllObjects, kCADScopeObjOnEditableLayers, a Layer ID, a Sublayer ID, a programmer scope ID or an Object ID
in theRotation real
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADRotateObj, Up: Areas and methods

6.233 CADRotateXY

IO Parameter Type Description
in theRotationCenterX real
in theRotationCenterY real
in theRotationDegrees real
in theX real
in theY real
out theRotatedX real
out theRotatedY real


Next: , Previous: CADRotateXY, Up: Areas and methods

6.234 CADScale

IO Parameter Type Description
in theCADArea longint Area ID
in theLocking integer kCADLockingIgnoreLock
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theObjScope longint kCADScopeSelectedObjects, kCADScopeAllObjects, kCADScopeObjOnEditableLayers, a Layer ID, a Sublayer ID, a programmer scope ID or an Object ID
in theScalingAnchorX real
in theScalingAnchorY real
in theScalingFactorX real
in theScalingFactorY real
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADScale, Up: Areas and methods

6.235 CADScaleMatrix

IO Parameter Type Description
in theScalingAnchorX real
in theScalingAnchorY real
in theScalingFactorX real
in theScalingFactorY real
in/out theMatrixParam1 real Parameter 1 of a Linear transformation matrix
in/out theMatrixParam2 real Parameter 2 of a Linear transformation matrix
in/out theMatrixParam3 real Parameter 3 of a Linear transformation matrix
in/out theMatrixParam4 real Parameter 4 of a Linear transformation matrix
in/out theMatrixParam5 real Parameter 5 of a Linear transformation matrix
in/out theMatrixParam6 real Parameter 6 of a Linear transformation matrix
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADScaleMatrix, Up: Areas and methods

6.236 CADScaleXY

IO Parameter Type Description
in theScalingAnchorX real
in theScalingAnchorY real
in theScalingFactorX real
in theScalingFactorY real
in theX real
in theY real
out theScaledX real
out theScaledY real
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADScaleXY, Up: Areas and methods

6.237 CADScopeLogic

IO Parameter Type Description
in theCADArea longint Area ID
in theLogicalOperation integer A scope logic constant
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theSourceObjScopeA longint kCADScopeSelectedObjects, kCADScopeAllObjects, kCADScopeObjOnEditableLayers, a Layer ID, a Sublayer ID, a programmer scope ID or an Object ID
in theSourceObjScopeB longint kCADScopeSelectedObjects, kCADScopeAllObjects, kCADScopeObjOnEditableLayers, a Layer ID, a Sublayer ID, a programmer scope ID or an Object ID
in theTargetObjScope longint kCADScopeSelectedObjects or a programmer scope ID
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADScopeLogic, Up: Areas and methods

6.238 CADScroll

IO Parameter Type Description
in theCADArea longint Area ID
in theOptionalView integer A view constant or 0
in theDeltaX real
in theDeltaY real
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADScroll, Up: Areas and methods

6.239 CADScrollTo

IO Parameter Type Description
in theCADArea longint Area ID
in theOptionalView integer A view constant or 0
in theScrollAlignH integer A scroll alignment constant
in theScrollAlignV integer A scroll alignment constant
in theScrollPtX real
in theScrollPtY real
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADScrollTo, Up: Areas and methods

6.240 CADSelect

IO Parameter Type Description
in theCADArea longint Area ID
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theX1 real
in theY1 real
in theX2 real
in theY2 real
in theMethod integer A selection method constant
in theAction integer A selection action constant
in theMinimumLayerModeToSelect integer A layer mode constant
in theTargetObjScope longint kCADScopeSelectedObjects or a programmer scope ID
in theHatchAnywayFlag integer A boolean constant
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADSelect, Up: Areas and methods

6.241 CADSetAreaPrefs

IO Parameter Type Description
in theCADArea longint Area ID
in theWriteStringModeModifiers longint A mask of modifier key constants
in theSpecialClickModeModifiers longint A mask of modifier key constants
in theUseEditBoxForObjFlag integer A boolean constant
in theUseEditBoxForNewObjFlag integer A boolean constant
in theNoEditBoxModifiers longint A mask of modifier key constants
in theSpecialClickModeCursor integer A cursor constant
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADSetAreaPrefs, Up: Areas and methods

6.242 CADSetArray

IO Parameter Type Description
in theCADArea longint Area ID
in theArrayID longint
in theArray array
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADSetArray, Up: Areas and methods

6.243 CADSetBackColor

IO Parameter Type Description
in theCADArea longint Area ID
in theBackColor longint
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADSetBackColor, Up: Areas and methods

6.244 CADSetBlockAddedSnaps

IO Parameter Type Description
in theCADArea longint Area ID
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theSnapsX array of real
in theSnapsY array of real
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADSetBlockAddedSnaps, Up: Areas and methods

6.245 CADSetBlockKey

IO Parameter Type Description
in theCADArea longint Area ID
in theLocking integer kCADLockingIgnoreLock
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theTypeOfKey integer A number between 1 and kCADMaxKeyIndex
in theKey longint
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADSetBlockKey, Up: Areas and methods

6.246 CADSetBlockName

IO Parameter Type Description
in theCADArea longint Area ID
in theLocking integer kCADLockingIgnoreLock
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theBlockName Str255
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADSetBlockName, Up: Areas and methods

6.247 CADSetBlockSnapMask

IO Parameter Type Description
in theCADArea longint Area ID
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theBlockSnapMask longint A snap mask constant
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADSetBlockSnapMask, Up: Areas and methods

6.248 CADSetCircle

IO Parameter Type Description
in theCADArea longint Area ID
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theObjID longint An Object ID, see Scope
in theCenterX real
in theCenterY real
in theRadius real
in theRotation real
in theUpsideDownFlag integer A boolean constant
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADSetCircle, Up: Areas and methods

6.249 CADSetCircleArc

IO Parameter Type Description
in theCADArea longint Area ID
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theObjID longint An Object ID, see Scope
in theCenterX real
in theCenterY real
in theRadius real
in theStartAngle real
in theEndAngle real
in theRotation real
in theUpsideDownFlag integer A boolean constant
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADSetCircleArc, Up: Areas and methods

6.250 CADSetClipBox

IO Parameter Type Description
in theCADArea longint Area ID
in theClipBoxFlag integer A boolean constant
in theClipBoxX1 real
in theClipBoxY1 real
in theClipBoxX2 real
in theClipBoxY2 real
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADSetClipBox, Up: Areas and methods

6.251 CADSetColor

IO Parameter Type Description
in theCADArea longint Area ID
in theLocking integer kCADLockingIgnoreLock
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theObjScope longint kCADScopeSelectedObjects, kCADScopeAllObjects, kCADScopeObjOnEditableLayers, a Layer ID, a Sublayer ID, a programmer scope ID or an Object ID
in theObjColor longint
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADSetColor, Up: Areas and methods

6.252 CADSetColorItem

IO Parameter Type Description
in theColorPaletteArea longint
in theItemToSelect integer
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADSetColorItem, Up: Areas and methods

6.253 CADSetColorsDim

IO Parameter Type Description
in theColorPaletteArea longint
in theDimmedFlag integer A boolean constant
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADSetColorsDim, Up: Areas and methods

6.254 CADSetCurrentLayer

IO Parameter Type Description
in theCADArea longint Area ID
in theLayerOrSubLayerID longint Layer ID or Sublayer ID
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADSetCurrentLayer, Up: Areas and methods

6.255 CADSetDefaults

IO Parameter Type Description
in theCADArea longint Area ID
in theLineWidth real Linewidth (also see Linewidth and linetype restrictions)
in theLineTypeID longint Linetype ID or a linetype ID constant
in theLineColor longint Color or a color constant
in theFillStyle integer A fill style constant, see Fill
in theFillColor longint Color or a color constant
in theMarkingStartID longint A marking ID constant
in theMarkingEndID longint A marking ID constant
in theMacFontStr Str255
in theDosFontStr Str255
in theFontSize real
in theFontStyle integer A mask of font style constants
in theJustification integer A string justification constant
in theHatchID longint A Hatch ID or hatch ID constant
in theRotation real
in theCircleArcStartAngle real
in theCircleArcEndAngle real
in theRectangleLengthOrWidth real
in theIsLengthFlag integer A boolean constant
in theObjLockingMask longint A mask of object locking mask constants
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADSetDefaults, Up: Areas and methods

6.256 CADSetDimPrefs

IO Parameter Type Description
in theCADArea longint Area ID
in theLayerDimSaturateFactor real
in theLayerDimMixToBackgrFactor real
in theSelectDimSaturateFactor real
in theSelectDimMixToBackgrFactor real
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADSetDimPrefs, Up: Areas and methods

6.257 CADSetDisplay

IO Parameter Type Description
in theCADArea longint Area ID
in theDisplayMask longint A mask of display constants
in theModalToolsMask longint A mask of mode mask constants
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADSetDisplay, Up: Areas and methods

6.258 CADSetDragPrefs

IO Parameter Type Description
in theCADArea longint Area ID
in theSelectCursor integer A cursor size constant
in theLargeGripsFlag integer A boolean constant
in theLargeBlipsFlag integer A boolean constant
in theTranslateHesitationFlag integer A boolean constant
in theReshapeHesitationFlag integer A boolean constant
in theReshapeInTranslateModeFlag integer A boolean constant
in theTranslateInReshapeModeFlag integer A boolean constant
in theSelectAndTranslateFlag integer A boolean constant
in theSelectAndReshapeFlag integer A boolean constant
in theOneClickDrawFlag integer A boolean constant
in theOneClickTranslateFlag integer A boolean constant
in theOneClickReshapeFlag integer A boolean constant
in theIntersecInTranslateModeFlag integer A boolean constant
in theIntersecInReshapeModeFlag integer A boolean constant
in theDragOutlineFlag integer A boolean constant
in theDragOutlineToggleFlag integer A boolean constant
in theDragDosToggleKeyAscii integer
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADSetDragPrefs, Up: Areas and methods

6.259 CADSetDrawPrefs

IO Parameter Type Description
in theCADArea longint Area ID
in theUsePixelCacheFlag integer A boolean constant
in thePaintPreciseLinesFlag integer A boolean constant
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADSetDrawPrefs, Up: Areas and methods

6.260 CADSetDrawSize

IO Parameter Type Description
in theCADArea longint Area ID
out theXLo real
out theYLo real
out theXHi real
out theYHi real
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADSetDrawSize, Up: Areas and methods

6.261 CADSetEllipseArc

IO Parameter Type Description
in theCADArea longint Area ID
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theObjID longint An Object ID, see Scope
in theCenterX real
in theCenterY real
in theRadiusX real
in theRadiusY real
in theStartAngle real
in theEndAngle real
in theRotation real
in theUpsideDownFlag integer A boolean constant
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADSetEllipseArc, Up: Areas and methods

6.262 CADSetEllipse

IO Parameter Type Description
in theCADArea longint Area ID
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theObjID longint An Object ID, see Scope
in theCenterX real
in theCenterY real
in theRadiusX real
in theRadiusY real
in theRotation real
in theUpsideDownFlag integer A boolean constant
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADSetEllipse, Up: Areas and methods

6.263 CADSetFill

IO Parameter Type Description
in theCADArea longint Area ID
in theLocking integer kCADLockingIgnoreLock
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theObjScope longint kCADScopeSelectedObjects, kCADScopeAllObjects, kCADScopeObjOnEditableLayers, a Layer ID, a Sublayer ID, a programmer scope ID or an Object ID
in theFillStyle integer A fill style constant, see Fill
in theFillColor longint Color or a color constant
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADSetFill, Up: Areas and methods

6.264 CADSetFont

IO Parameter Type Description
in theCADArea longint Area ID
in theLocking integer kCADLockingIgnoreLock
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theObjScope longint kCADScopeSelectedObjects, kCADScopeAllObjects, kCADScopeObjOnEditableLayers, a Layer ID, a Sublayer ID, a programmer scope ID or an Object ID
in theMacFontStr Str255
in theDosFontStr Str255
in theFontSize real
in theFontStyle integer A mask of font style constants
in theJustification integer A string justification constant
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADSetFont, Up: Areas and methods

6.265 CADSetHatch

IO Parameter Type Description
in theCADArea longint Area ID
in theLocking integer kCADLockingIgnoreLock
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theObjScope longint kCADScopeSelectedObjects, kCADScopeAllObjects, kCADScopeObjOnEditableLayers, a Layer ID, a Sublayer ID, a programmer scope ID or an Object ID
in theHatchParamsToSetFlags longint A mask of hatch param constants
in theHatchID longint A Hatch ID or hatch ID constant
in theHatchColor longint
in theHatchScale real
in theHatchRotation real
in theHatchTranslationX real
in theHatchTranslationY real
in theHatchAlignH integer A hatch alignment constant
in theHatchAlignV integer A hatch alignment constant
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADSetHatch, Up: Areas and methods

6.266 CADSetImage

IO Parameter Type Description
in theCADArea longint Area ID
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theObjID longint An Object ID, see Scope
in theImageAlignH integer A raster image alignment constant
in theImageAlignV integer A raster image alignment constant
in theMatrixParam1 real Parameter 1 of a Linear transformation matrix
in theMatrixParam2 real Parameter 2 of a Linear transformation matrix
in theMatrixParam3 real Parameter 3 of a Linear transformation matrix
in theMatrixParam4 real Parameter 4 of a Linear transformation matrix
in theMatrixParam5 real Parameter 5 of a Linear transformation matrix
in theMatrixParam6 real Parameter 6 of a Linear transformation matrix
in theTransparentFlag integer A boolean constant
in theRasterColor longint
in theScanResolutionH real
in theScanResolutionV real
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADSetImage, Up: Areas and methods

6.267 CADSetImageXY

IO Parameter Type Description
in theCADArea longint Area ID
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theObjID longint An Object ID, see Scope
in theImageAlignH integer A raster image alignment constant
in theImageAlignV integer A raster image alignment constant
in theAnchorX real
in theAnchorY real
in theTransparentFlag integer A boolean constant
in theRasterColor longint
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADSetImageXY, Up: Areas and methods

6.268 CADSetInsertColor

IO Parameter Type Description
in theCADArea longint Area ID
in theLocking integer kCADLockingIgnoreLock
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theObjScope longint kCADScopeSelectedObjects, kCADScopeAllObjects, kCADScopeObjOnEditableLayers, a Layer ID, a Sublayer ID, a programmer scope ID or an Object ID
in theInsertLineColor longint Color or a color constant
in theInsertFillColor longint Color or a color constant
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADSetInsertColor, Up: Areas and methods

6.269 CADSetInsert

IO Parameter Type Description
in theCADArea longint Area ID
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theObjID longint An Object ID, see Scope
in theMatrixParam1 real Parameter 1 of a Linear transformation matrix
in theMatrixParam2 real Parameter 2 of a Linear transformation matrix
in theMatrixParam3 real Parameter 3 of a Linear transformation matrix
in theMatrixParam4 real Parameter 4 of a Linear transformation matrix
in theMatrixParam5 real Parameter 5 of a Linear transformation matrix
in theMatrixParam6 real Parameter 6 of a Linear transformation matrix
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADSetInsert, Up: Areas and methods

6.270 CADSetInsertID

IO Parameter Type Description
in theCADArea longint Area ID
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theObjID longint An Object ID, see Scope
in theInsertBlockID longint
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADSetInsertID, Up: Areas and methods

6.271 CADSetInsertXY

IO Parameter Type Description
in theCADArea longint Area ID
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theObjID longint An Object ID, see Scope
in theInsertX real
in theInsertY real
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADSetInsertXY, Up: Areas and methods

6.272 CADSetItemColor

IO Parameter Type Description
in theColorPaletteArea longint
in theItem integer
in theColor longint Color or a color constant
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADSetItemColor, Up: Areas and methods

6.273 CADSetKey

IO Parameter Type Description
in theCADArea longint Area ID
in theLocking integer kCADLockingIgnoreLock
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theObjScope longint kCADScopeSelectedObjects, kCADScopeAllObjects, kCADScopeObjOnEditableLayers, a Layer ID, a Sublayer ID, a programmer scope ID or an Object ID
in theTypeOfKey integer A number between 1 and kCADMaxKeyIndex
in theKey longint
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADSetKey, Up: Areas and methods

6.274 CADSetKeyArray

IO Parameter Type Description
in theCADArea longint Area ID
in theLocking integer kCADLockingIgnoreLock
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theObjScope longint kCADScopeSelectedObjects, kCADScopeAllObjects, kCADScopeObjOnEditableLayers, a Layer ID, a Sublayer ID, a programmer scope ID or an Object ID
in theTypeOfKey integer A number between 1 and kCADMaxKeyIndex
in theKeyArray array of longint
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADSetKeyArray, Up: Areas and methods

6.275 CADSetKeyMask

IO Parameter Type Description
in theCADArea longint Area ID
in theObjKeysToCopy longint A mask of key mask constants
in theObjKeysToCompare longint A mask of key mask constants
in theBlockKeysToCopy longint A mask of key mask constants
in theBlockKeysToCompare longint A mask of key mask constants
in theLayerKeysToCopy longint A mask of key mask constants
in theLayerKeysToCompare longint A mask of key mask constants
in theSubLayerKeysToCopy longint A mask of key mask constants
in theSubLayerKeysToCompare longint A mask of key mask constants
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADSetKeyMask, Up: Areas and methods

6.276 CADSetLayerOrder

IO Parameter Type Description
in theCADArea longint Area ID
in theLayerIDs array of longint
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADSetLayerOrder, Up: Areas and methods

6.277 CADSetLayer

IO Parameter Type Description
in theCADArea longint Area ID
in theLocking integer kCADLockingIgnoreLock
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theObjScope longint kCADScopeSelectedObjects, kCADScopeAllObjects, kCADScopeObjOnEditableLayers, a Layer ID, a Sublayer ID, a programmer scope ID or an Object ID
in theLayerID longint Layer ID
in theSubLayerID longint Sublayer ID or kCADNotOnSubLayerID
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADSetLayer, Up: Areas and methods

6.278 CADSetLayerAttributes

IO Parameter Type Description
in theCADArea longint Area ID
in theLayerOrSubLayerID longint Layer ID or Sublayer ID
in theLayerName Str255
in theLayerMode integer A layer mode constant
in theLayerTransparencyFlag integer A boolean constant
in theLayerHatchesVisibleFlag integer A boolean constant
in theLayerHasSnapsFlag integer A boolean constant
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADSetLayerAttributes, Up: Areas and methods

6.279 CADSetLayerKey

IO Parameter Type Description
in theCADArea longint Area ID
in theLayerOrSubLayerID longint Layer ID or Sublayer ID
in theTypeOfKey integer A number between 1 and kCADMaxKeyIndex
in theKey longint
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADSetLayerKey, Up: Areas and methods

6.280 CADSetLine

IO Parameter Type Description
in theCADArea longint Area ID
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theObjID longint An Object ID, see Scope
in theLineStartX real
in theLineStartY real
in theLineEndX real
in theLineEndY real
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADSetLine, Up: Areas and methods

6.281 CADSetLineType

IO Parameter Type Description
in theCADArea longint Area ID
in theLocking integer kCADLockingIgnoreLock
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theObjScope longint kCADScopeSelectedObjects, kCADScopeAllObjects, kCADScopeObjOnEditableLayers, a Layer ID, a Sublayer ID, a programmer scope ID or an Object ID
in theLineTypeID longint Linetype ID or a linetype ID constant
in theLineTypeScale real
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADSetLineType, Up: Areas and methods

6.282 CADSetLineWidth

IO Parameter Type Description
in theCADArea longint Area ID
in theLocking integer kCADLockingIgnoreLock
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theObjScope longint kCADScopeSelectedObjects, kCADScopeAllObjects, kCADScopeObjOnEditableLayers, a Layer ID, a Sublayer ID, a programmer scope ID or an Object ID
in theLineWidth real Linewidth (also see Linewidth and linetype restrictions)
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADSetLineWidth, Up: Areas and methods

6.283 CADSetLock

IO Parameter Type Description
in theCADArea longint Area ID
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theObjScope longint kCADScopeSelectedObjects, kCADScopeAllObjects, kCADScopeObjOnEditableLayers, a Layer ID, a Sublayer ID, a programmer scope ID or an Object ID
in theTypeOfLock integer An object locking type constant
in theLockedFlag integer A boolean constant
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADSetLock, Up: Areas and methods

6.284 CADSetMarking

IO Parameter Type Description
in theCADArea longint Area ID
in theLocking integer kCADLockingIgnoreLock
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theObjScope longint kCADScopeSelectedObjects, kCADScopeAllObjects, kCADScopeObjOnEditableLayers, a Layer ID, a Sublayer ID, a programmer scope ID or an Object ID
in theMarkingStartID longint A marking ID constant
in theMarkingEndID longint A marking ID constant
in theMarkingScale real
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADSetMarking, Up: Areas and methods

6.285 CADSetMeasurePrefs

IO Parameter Type Description
in theCADArea longint Area ID
in theTypeOfMeasure integer A measure type constant
in theIsVisibleFlag integer A boolean constant
in theIsEditableFlag integer A boolean constant
in theOptionalFixedWidth integer
in theMinimumWidth integer
in theNumberOfDecimals integer
in theLinearUnitFactor real
in theLinearUnitDivisor real
in theOptionalUnitStr Str3
in theOptionalUnitStrWidth integer
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADSetMeasurePrefs, Up: Areas and methods

6.286 CADSetMode

IO Parameter Type Description
in theCADArea longint Area ID
in theMode integer A mode constant
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADSetMode, Up: Areas and methods

6.287 CADSetMouseWheelPrefs

IO Parameter Type Description
in theCADArea longint Area ID
in theMouseWheelUse integer A mouse wheel use constant
in theScrollModifiersToZoom longint A mask of modifier key constants
in theZoomDirection integer A mouse wheel zoom constant
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADSetMouseWheelPrefs, Up: Areas and methods

6.288 CADSetObjKey

IO Parameter Type Description
in theCADArea longint Area ID
in theLocking integer kCADLockingIgnoreLock
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theObjID longint An Object ID, see Scope
in theTypeOfKey integer A number between 1 and kCADMaxKeyIndex
in theKey longint
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADSetObjKey, Up: Areas and methods

6.289 CADSetObjLock

IO Parameter Type Description
in theCADArea longint Area ID
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theObjID longint An Object ID, see Scope
in theTypeOfLock integer An object locking type constant
in theObjLockedFlag integer A boolean constant
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADSetObjLock, Up: Areas and methods

6.290 CADSetOnError

IO Parameter Type Description
in theCADArea longint Area ID
in theErrorProcStr Str255
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADSetOnError, Up: Areas and methods

6.291 CADSetOnEvent

IO Parameter Type Description
in theCADArea longint Area ID
in theEventPhase longint An event phase constant
in theEventFilter1 longint A mask of event filter 1 constants or kCADEventFilterAll
in theEventFilter2 longint A mask of event filter 2 constants or kCADEventFilterAll
in theEventProcStr Str255
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADSetOnEvent, Up: Areas and methods

6.292 CADSetPolyAngle

IO Parameter Type Description
in theCADArea longint Area ID
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theObjID longint An Object ID, see Scope
in thePolyLineAngle real
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADSetPolyAngle, Up: Areas and methods

6.293 CADSetPolyLine

IO Parameter Type Description
in theCADArea longint Area ID
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theObjID longint An Object ID, see Scope
in theVerticesX array of real
in theVerticesY array of real
in thePolyLineIsClosedFlag integer A boolean constant
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADSetPolyLine, Up: Areas and methods

6.294 CADSetPrintSpecs

IO Parameter Type Description
in theCADArea longint Area ID
in thePrintAlignH integer A print alignment constant
in thePrintAlignV integer A print alignment constant
in thePrintMarginX real
in thePrintMarginY real
in thePrintResolutionOnMacintosh integer Print resolution on Macintosh in dot per inch or kCADDefaultPrinterResolution. The parameter is ignored Windows. It is required on the Mac, due to limitations of the Mac OS X printing engine.
in thePrintOrientation integer A print orientation constant
in thePrintPrecisionFactorX real
in thePrintPrecisionFactorY real
in thePrintSizeTypeToUse integer A print size to use constant
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADSetPrintSpecs, Up: Areas and methods

6.295 CADSetRectangle

IO Parameter Type Description
in theCADArea longint Area ID
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theObjID longint An Object ID, see Scope
in theRectangleX1 real
in theRectangleY1 real
in theRectangleX2 real
in theRectangleY2 real
in theRotation real
in theUpsideDownFlag integer A boolean constant
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADSetRectangle, Up: Areas and methods

6.296 CADSetRedraw

IO Parameter Type Description
in theCADArea longint Area ID
in theRedrawMode integer A redraw mode constant
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADSetRedraw, Up: Areas and methods

6.297 CADSetRef

IO Parameter Type Description
in theCADArea longint Area ID
in theCADRefID longint
in theAppRefID longint
in theAppVersion longint
in theAppStr Str255
in theDocRefID longint
in theDocVersion longint
in theDocDate Date4D
in theDocTime Time4D
in theDocUserName Str255
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADSetRef, Up: Areas and methods

6.298 CADSetScale

IO Parameter Type Description
in theCADArea longint Area ID
in thePrintScale real
in theAreaLineTypeScale real
in theAreaMarkingScale real
in theAreaHatchScale real
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADSetScale, Up: Areas and methods

6.299 CADSetSnapPrefs

IO Parameter Type Description
in theCADArea longint Area ID
in theSnapPixelRadius integer kCADSnapDefaultPixelRadius or a snap radius in pixels in the range kCADSnapMinimumPixelRadius up to kCADSnapMaximumPixelRadius
in theSnapMinimumLayerMode integer A layer mode constant
in theSnapHideCursorOnSnapFlag integer A boolean constant
in theSnapsAreOnFlag integer A boolean constant
in theSnapToPixForReshapeFlag integer A boolean constant
in theSnapToPixForTranslateFlag integer A boolean constant
in theSnapToggleFlag integer A boolean constant
in theSnapToggleKeyAscii integer
in theMaxObjectsToFindCrossings longint
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADSetSnapPrefs, Up: Areas and methods

6.300 CADSetSquare

IO Parameter Type Description
in theCADArea longint Area ID
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theObjID longint An Object ID, see Scope
in theSquareX1 real
in theSquareY1 real
in theSquareX2 real
in theSquareY2 real
in theRotation real
in theUpsideDownFlag integer A boolean constant
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADSetSquare, Up: Areas and methods

6.301 CADSetString

IO Parameter Type Description
in theCADArea longint Area ID
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theObjID longint An Object ID, see Scope
in theString Str255
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADSetString, Up: Areas and methods

6.302 CADSetStringXY

IO Parameter Type Description
in theCADArea longint Area ID
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theObjID longint An Object ID, see Scope
in theBaseX real
in theBaseY real
in theRotation real
in theBackToFrontFlag integer A boolean constant
in theJustification integer A string justification constant
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADSetStringXY, Up: Areas and methods

6.303 CADSetTitleSplit

IO Parameter Type Description
in theCADArea longint Area ID
in theTitleSplitMask longint A mask of title split constants
in theTitlePixOffsLeft longint
in theTitlePixOffsTop longint
in theTitleSplitVertexLeftX real
in theTitleSplitVertexTopY real
in theTitleZoomAlignH integer A zoom alignment constant
in theTitleZoomAlignV integer A zoom alignment constant
in theTitleZoomAnchorX real
in theTitleZoomAnchorY real
in theMainZoomAlignH integer A zoom alignment constant
in theMainZoomAlignV integer A zoom alignment constant
in theMainZoomAnchorX real
in theMainZoomAnchorY real
in theTitleGoggleFlag integer A boolean constant
in theTitleGoggleXLo real
in theTitleGoggleYLo real
in theTitleGoggleXHi real
in theTitleGoggleYHi real
in theMainGoggleFlag integer A boolean constant
in theMainGoggleXLo real
in theMainGoggleYLo real
in theMainGoggleXHi real
in theMainGoggleYHi real
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADSetTitleSplit, Up: Areas and methods

6.304 CADSetUndoPrefs

IO Parameter Type Description
in theCADArea longint Area ID
in theAutoResetUndoFlag integer A boolean constant
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADSetUndoPrefs, Up: Areas and methods

6.305 CADSetUnit

IO Parameter Type Description
in theCADArea longint Area ID
in theUnitStr Str4
in theConversionFactor real
in theConversionUnit integer A unit conversion constant
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADSetUnit, Up: Areas and methods

6.306 CADSetZoomPrefs

IO Parameter Type Description
in theCADArea longint Area ID
in theZoomMethod integer A zoom method constant
in theFreeZoomInFactor real
in theFreeZoomOutFactor real
in theAutoZoomFlag integer A boolean constant
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADSetZoomPrefs, Up: Areas and methods

6.307 CADShear

IO Parameter Type Description
in theCADArea longint Area ID
in theLocking integer kCADLockingIgnoreLock
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theObjScope longint kCADScopeSelectedObjects, kCADScopeAllObjects, kCADScopeObjOnEditableLayers, a Layer ID, a Sublayer ID, a programmer scope ID or an Object ID
in theTypeOfShear integer A shear constant
in theShearAnchorX real
in theShearAnchorY real
in theShearFactor real
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADShear, Up: Areas and methods

6.308 CADShearMatrix

IO Parameter Type Description
in theTypeOfShear integer A shear constant
in theShearAnchorX real
in theShearAnchorY real
in theShearFactor real
in/out theMatrixParam1 real Parameter 1 of a Linear transformation matrix
in/out theMatrixParam2 real Parameter 2 of a Linear transformation matrix
in/out theMatrixParam3 real Parameter 3 of a Linear transformation matrix
in/out theMatrixParam4 real Parameter 4 of a Linear transformation matrix
in/out theMatrixParam5 real Parameter 5 of a Linear transformation matrix
in/out theMatrixParam6 real Parameter 6 of a Linear transformation matrix
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADShearMatrix, Up: Areas and methods

6.309 CADSin

IO Parameter Type Description
in theDegrees real
out function result real


Next: , Previous: CADSin, Up: Areas and methods

6.310 CADSpirograph

IO Parameter Type Description
in theCADArea longint Area ID
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theLayerOrSubLayerID longint Layer ID or Sublayer ID
in theCenterX real
in theCenterY real
in theTurtleAngle real
in theTurtleDistanceStep real
in theTurtleDistanceMax real
in theAutoColorFlag integer A boolean constant
in theAutoColorStep real
in theAutoColorMin longint A rainbow color index in the range 0 to theAutoColorMax
in theAutoColorMax longint kCADSpirographDefaultColorMax or a rainbow color index in the range theAutoColorMin to kCADSpirographLastColorMax
in theLineColor longint Color or a color constant
in theLineWidth real Linewidth (also see Linewidth and linetype restrictions)
in theOptionalTargetObjScope longint 0 or kCADScopeSelectedObjects or a programmer scope ID
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADSpirograph, Up: Areas and methods

6.311 CADSplitPoly

IO Parameter Type Description
in theCADArea longint Area ID
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theSourceScope longint kCADScopeSelectedObjects, kCADScopeAllObjects, kCADScopeObjOnEditableLayers, a Layer ID, a Sublayer ID, a programmer scope ID or an Object ID
in thePolySplitAction integer A polyline split constant
in theOptionalResultScopeUnsplit longint 0 or kCADScopeSelectedObjects or a programmer scope ID
in theOptionalResultScopeSplit longint 0 or kCADScopeSelectedObjects or a programmer scope ID
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADSplitPoly, Up: Areas and methods

6.312 CADSplitPolyXY

IO Parameter Type Description
in thePolySplitAction integer A polyline split constant
in theSourceVerticesX array of real
in theSourceVerticesY array of real
out theResultPolysX array of array of real
out theResultPolysY array of array of real
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADSplitPolyXY, Up: Areas and methods

6.313 CADStandardMatrix

IO Parameter Type Description
in theScalingFactorX real
in theScalingFactorY real
in theRotationDegrees real
in theTranslationOffsX real
in theTranslationOffsY real
out theMatrixParam1 real Parameter 1 of a Linear transformation matrix
out theMatrixParam2 real Parameter 2 of a Linear transformation matrix
out theMatrixParam3 real Parameter 3 of a Linear transformation matrix
out theMatrixParam4 real Parameter 4 of a Linear transformation matrix
out theMatrixParam5 real Parameter 5 of a Linear transformation matrix
out theMatrixParam6 real Parameter 6 of a Linear transformation matrix
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADStandardMatrix, Up: Areas and methods

6.314 CADStoreToBlob

IO Parameter Type Description
in theCADArea longint Area ID
out theCADStorage Blob
in theCADStorageName Str255
in theProgress integer A progress constant
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADStoreToBlob, Up: Areas and methods

6.315 CADStoreToFile

IO Parameter Type Description
in theCADArea longint Area ID
in theMacVolumeRef integer
in theMacDirID longint
in theDosDirPath Str255
in theFileName Str255
in theProgress integer A progress constant
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADStoreToFile, Up: Areas and methods

6.316 CADStoreToPict

IO Parameter Type Description
in theCADArea longint Area ID
out theCADStorage Picture
in theCADStorageName Str255
in theProgress integer A progress constant
out function result OSErr Error result code, also see Error handling

Important
Don’t call ! Storing CAD drawings in pictures is obsolete. Please use blobs instead.


Next: , Previous: CADStoreToPict, Up: Areas and methods

6.317 CADStretchMatrix

IO Parameter Type Description
in theStretchAnchorX real
in theStretchAnchorY real
in theStretchFactorLeftRight real
in theStretchFactorTopBottom real
in/out theMatrixParam1 real Parameter 1 of a Linear transformation matrix
in/out theMatrixParam2 real Parameter 2 of a Linear transformation matrix
in/out theMatrixParam3 real Parameter 3 of a Linear transformation matrix
in/out theMatrixParam4 real Parameter 4 of a Linear transformation matrix
in/out theMatrixParam5 real Parameter 5 of a Linear transformation matrix
in/out theMatrixParam6 real Parameter 6 of a Linear transformation matrix
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADStretchMatrix, Up: Areas and methods

6.318 CADStretchObj

IO Parameter Type Description
in theCADArea longint Area ID
in theLocking integer kCADLockingIgnoreLock
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theObjScope longint kCADScopeSelectedObjects, kCADScopeAllObjects, kCADScopeObjOnEditableLayers, a Layer ID, a Sublayer ID, a programmer scope ID or an Object ID
in theLeftRightAnchorType integer A stretch anchor constant
in theTopBottomAnchorType integer A stretch anchor constant
in theLeftRightStretchFactor real
in theTopBottomStretchFactor real
in theOptionalPolyLineIndex longint
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADStretchObj, Up: Areas and methods

6.319 CADStringBounds

IO Parameter Type Description
in theString Str255
in theBaseX real
in theBaseY real
in theMacFontStr Str255
in theDosFontStr Str255
in theFontSize real
in theFontStyle integer A mask of font style constants
in theJustification integer A string justification constant
in theBoundsToGet integer A bounds type constant
out theBoundsX1 real
out theBoundsY1 real
out theBoundsX2 real
out theBoundsY2 real
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADToPixels, Up: Areas and methods

6.320 CADToScope

IO Parameter Type Description
in theCADArea longint Area ID
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theTargetObjScope longint kCADScopeSelectedObjects or a programmer scope ID
in theObjID longint An Object ID, see Scope
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADStringBounds, Up: Areas and methods

6.321 CADToPixels

IO Parameter Type Description
in theCADArea longint Area ID
in theBackColor longint
in theBitDepth integer
in thePixelWidth integer
in thePixelHeight integer
in thePictureResolution real
out thePixels Picture
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADToScope, Up: Areas and methods

6.322 CADTransform

IO Parameter Type Description
in theCADArea longint Area ID
in theLocking integer kCADLockingIgnoreLock
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theObjScope longint kCADScopeSelectedObjects, kCADScopeAllObjects, kCADScopeObjOnEditableLayers, a Layer ID, a Sublayer ID, a programmer scope ID or an Object ID
in theMatrixParam1 real Parameter 1 of a Linear transformation matrix
in theMatrixParam2 real Parameter 2 of a Linear transformation matrix
in theMatrixParam3 real Parameter 3 of a Linear transformation matrix
in theMatrixParam4 real Parameter 4 of a Linear transformation matrix
in theMatrixParam5 real Parameter 5 of a Linear transformation matrix
in theMatrixParam6 real Parameter 6 of a Linear transformation matrix
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADTransform, Up: Areas and methods

6.323 CADTransformMatrix

IO Parameter Type Description
in theMatrixParam1 real Parameter 1 of a Linear transformation matrix
in theMatrixParam2 real Parameter 2 of a Linear transformation matrix
in theMatrixParam3 real Parameter 3 of a Linear transformation matrix
in theMatrixParam4 real Parameter 4 of a Linear transformation matrix
in theMatrixParam5 real Parameter 5 of a Linear transformation matrix
in theMatrixParam6 real Parameter 6 of a Linear transformation matrix
in theMatrixToApplyParam1 real
in theMatrixToApplyParam2 real
in theMatrixToApplyParam3 real
in theMatrixToApplyParam4 real
in theMatrixToApplyParam5 real
in theMatrixToApplyParam6 real
out theResultMatrixParam1 real
out theResultMatrixParam2 real
out theResultMatrixParam3 real
out theResultMatrixParam4 real
out theResultMatrixParam5 real
out theResultMatrixParam6 real
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADTransformMatrix, Up: Areas and methods

6.324 CADTransformXY

IO Parameter Type Description
in theMatrixParam1 real Parameter 1 of a Linear transformation matrix
in theMatrixParam2 real Parameter 2 of a Linear transformation matrix
in theMatrixParam3 real Parameter 3 of a Linear transformation matrix
in theMatrixParam4 real Parameter 4 of a Linear transformation matrix
in theMatrixParam5 real Parameter 5 of a Linear transformation matrix
in theMatrixParam6 real Parameter 6 of a Linear transformation matrix
in theX real
in theY real
out theTransformedX real
out theTransformedY real
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADTransformXY, Up: Areas and methods

6.325 CADTranslate

IO Parameter Type Description
in theCADArea longint Area ID
in theLocking integer kCADLockingIgnoreLock
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theObjScope longint kCADScopeSelectedObjects, kCADScopeAllObjects, kCADScopeObjOnEditableLayers, a Layer ID, a Sublayer ID, a programmer scope ID or an Object ID
in theOffsetX real
in theOffsetY real
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADTranslate, Up: Areas and methods

6.326 CADTranslateMatrix

IO Parameter Type Description
in theTranslationOffsetX real
in theTranslationOffsetY real
in/out theMatrixParam1 real Parameter 1 of a Linear transformation matrix
in/out theMatrixParam2 real Parameter 2 of a Linear transformation matrix
in/out theMatrixParam3 real Parameter 3 of a Linear transformation matrix
in/out theMatrixParam4 real Parameter 4 of a Linear transformation matrix
in/out theMatrixParam5 real Parameter 5 of a Linear transformation matrix
in/out theMatrixParam6 real Parameter 6 of a Linear transformation matrix
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADTranslateMatrix, Up: Areas and methods

6.327 CADTriggerUndo

IO Parameter Type Description
in theCADArea longint Area ID
in theUndoName Str255
in theUndoByAppEventParam longint
in theUndoTrigger integer An undo trigger constant
in theOptionalObjScopeOrID longint 0 or kCADScopeSelectedObjects, kCADScopeAllObjects, kCADScopeObjOnEditableLayers, a Layer ID, a Sublayer ID, a programmer scope ID or an Object ID
out function result OSErr Error result code, also see Error handling


Next: , Previous: CADTriggerUndo, Up: Areas and methods

6.328 CADTypeOfScope

IO Parameter Type Description
in theCADArea longint Area ID
in theBlockID longint A Block ID or kCADRootBlockID for the root drawing
in theObjScope longint kCADScopeSelectedObjects, kCADScopeAllObjects, kCADScopeObjOnEditableLayers, a Layer ID, a Sublayer ID, a programmer scope ID or an Object ID
out theTypeOfObjScope integer A scope type constant
out function result OSErr Error result code, also see Error handling


Previous: CADTypeOfScope, Up: Areas and methods

6.329 CADZoom

IO Parameter Type Description
in theCADArea longint Area ID
in theOptionalView integer A view constant or 0
in theZoomAlignH integer A zoom alignment constant
in theZoomAlignV integer A zoom alignment constant
in theZoomMethod integer A zoom method constant
in theZoomLoX real
in theZoomLoY real
in theZoomHiX real
in theZoomHiY real
out function result OSErr Error result code, also see Error handling


Next: , Previous: Areas and methods, Up: Top

7 Events

This chapter lists event parameters for each event in detail. For a general discussion, see CADOnEvent and the sections on Event handling, Undo handling and Copy and paste control.


Next: , Up: Events

7.1 kCADEventIDAutoKeyDown

kCADEventPhaseDuring

Holding down a key on the keyboard for some time triggers kCADEventPhaseDuring phases of kCADEventIDAutoKeyDown events, through the keyboard’s auto-repeat mechanism. Preference settings in the system software, the keyboard repeat rate and delay until repeat time, determine how many events are generated.

Also see kCADEventIDKeyDown.

IO Parameter Type Description
in theCADArea longint Area ID
in theEventID longint kCADEventIDAutoKeyDown
in theEventPhase longint kCADEventPhaseDuring
in theEventData1 longint 0
in theEventData2 longint 0
in theEventData3 longint 0
in theEventData4 longint 0
in theMouseX real 0.0
in theMouseY real 0.0
in theEventValue1 real 0.0
in theEventValue2 real 0.0
in theKeyAsciiValue integer ASCII character value of the pressed key
in theModifiers longint Sum of pressed modifier keys, a mask of modifier key constants
in theTickCount longint Tick count of the system software (a tick is a 1/60th of a second)
in/out theEventResult longint Don’t change.

Keyboard events are not generated


Next: , Previous: kCADEventIDAutoKeyDown, Up: Events

7.2 kCADEventIDChangeOfMeasure

kCADEventPhaseBefore

Changing a value in the Measure pane, triggers a kCADEventPhaseBefore phase of the kCADEventIDChangeOfMeasure event, except that

The action can be intercepted or applied to a modified scope of objects.

IO Parameter Type Description
in theCADArea longint Area ID
in theEventID longint kCADEventIDChangeOfMeasure
in theEventPhase longint kCADEventPhaseBefore
in theEventData1 longint Target object scope of selected objects, not included objects with a relevant lock. You can add objects to or remove objects from this scope This will change the selection of objects on which the action will take place
in theEventData2 longint Type of measure, a measure type constant
in theEventData3 longint Horizontal anchor pane setting, a stretch anchor constant
in theEventData4 longint Vertical anchor pane setting, a stretch anchor constant
in theMouseX real 0.0
in theMouseY real 0.0
in theEventValue1 real Entered measure value
in theEventValue2 real 0.0
in theKeyAsciiValue integer 0
in theModifiers longint 0
in theTickCount longint Tick count of the system software (a tick is a 1/60th of a second)
out theEventResult longint Set to kCADEventResultDoFilter to filter out the event or to kCADEventResultDontFilter to let it pass.

kCADEventPhaseAfter

An kCADEventPhaseAfter phase is generated when the kCADEventPhaseBefore phase passed and changes have been applied.

IO Parameter Type Description
in theCADArea longint Area ID
in theEventID longint kCADEventIDChangeOfMeasure
in theEventPhase longint kCADEventPhaseAfter
in theEventData1 longint Scope of objects, the measure value has been applied to
in theEventData2 longint Type of measure, a measure type constant
in theEventData3 longint Horizontal anchor pane setting, a stretch anchor constant
in theEventData4 longint Vertical anchor pane setting, a stretch anchor constant
in theMouseX real 0.0
in theMouseY real 0.0
in theEventValue1 real Entered measure value
in theEventValue2 real 0.0
in theKeyAsciiValue integer 0
in theModifiers longint 0
in theTickCount longint 0
in/out theEventResult longint Don’t change.


Next: , Previous: kCADEventIDChangeOfMeasure, Up: Events

7.3 kCADEventIDClipBox

kCADEventPhaseAfter

Changing the clip box in Clip box mode triggers an kCADEventPhaseAfter phase of the kCADEventIDClipBox event.

IO Parameter Type Description
in theCADArea longint Area ID
in theEventID longint kCADEventIDClipBox
in theEventPhase longint kCADEventPhaseAfter
in theEventData1 longint Object ID clicked on, or 0
in theEventData2 longint Clip box flag, kCADTrue if a clip box is set, kCADFalse if it is cleared
in theEventData3 longint 0
in theEventData4 longint 0
in theMouseX real Clip box low x-coordinate
in theMouseY real Clip box low y-coordinate
in theEventValue1 real Clip box high x-coordinate
in theEventValue2 real Clip box high y-coordinate
in theKeyAsciiValue integer 0
in theModifiers longint Sum of pressed modifier keys, a mask of modifier key constants
in theTickCount longint Tick count of the system software (a tick is a 1/60th of a second)
in/out theEventResult longint Don’t change.


Next: , Previous: kCADEventIDClipBox, Up: Events

7.4 kCADEventIDCommand

kCADEventPhaseBefore

Pressing a button in the Tool palette, triggers a kCADEventPhaseBefore phase of the kCADEventIDCommand event. The action can be intercepted or applied to a modified scope of objects.

IO Parameter Type Description
in theCADArea longint Area ID
in theEventID longint kCADEventIDCommand
in theEventPhase longint kCADEventPhaseBefore
in theEventData1 longint Command ID, a command constant
in theEventData2 longint Target object scope of selected objects, not included objects with a relevant lock. You can add objects to or remove objects from this scope This will change the selection of objects on which the action will take place
in theEventData3 longint Object count in above scope
in theEventData4 longint 0
in theMouseX real Horizontal mouse coordinate in pixels
in theMouseY real Vertical mouse coordinate in pixels
in theEventValue1 real 0.0
in theEventValue2 real 0.0
in theKeyAsciiValue integer 0
in theModifiers longint Sum of pressed modifier keys, a mask of modifier key constants
in theTickCount longint Tick count of the system software (a tick is a 1/60th of a second)
out theEventResult longint Set to kCADEventResultDoFilter to filter out the event or to kCADEventResultDontFilter to let it pass.

kCADEventPhaseAfter

An kCADEventPhaseAfter phase is generated when the kCADEventPhaseBefore phase passed and the action has taken place. You can control a successive undo and its scope of objects.

IO Parameter Type Description
in theCADArea longint Area ID
in theEventID longint kCADEventIDCommand
in theEventPhase longint kCADEventPhaseAfter
in theEventData1 longint Command ID, a command constant
in theEventData2 longint Target object scope on which action was taken. You can add objects to or remove objects from this scope. This will change the selection of objects on which a successive undo action will take place
in theEventData3 longint Object count in above scope
in theEventData4 longint 0
in theMouseX real Horizontal mouse coordinate in pixels
in theMouseY real Vertical mouse coordinate in pixels
in theEventValue1 real 0.0
in theEventValue2 real 0.0
in theKeyAsciiValue integer 0
in theModifiers longint 0
in theTickCount longint 0
out theEventResult longint Set to kCADEventResultTriggerUndoRedo to trigger an undo and redo. Set to kCADEventResultTriggerUndoOnly to trigger an undo only. Set to kCADEventResultTriggerNone to trigger nothing.


Next: , Previous: kCADEventIDCommand, Up: Events

7.5 kCADEventIDContextMenu

kCADEventPhaseBefore

Pressing the right mouse button (or on the Mac the left mouse button with the control-key held down) triggers a kCADEventIDContextMenu event. The event is triggered if the cursor is over the drawing plane. The action can be intercepted, but there is no built-in action yet.

IO Parameter Type Description
in theCADArea longint Area ID
in theEventID longint kCADEventIDContextMenu
in theEventPhase longint kCADEventPhaseBefore
in theEventData1 longint Object ID clicked on, or 0
in theEventData2 longint Mode on the Mode palette (without the effect of modifiers keys), a mode constant
in theEventData3 longint 0
in theEventData4 longint 0
in theMouseX real Horizontal mouse coordinate in pixels
in theMouseY real Vertical mouse coordinate in pixels
in theEventValue1 real 0.0
in theEventValue2 real 0.0
in theKeyAsciiValue integer 0
in theModifiers longint 0
in theTickCount longint Tick count of the system software (a tick is a 1/60th of a second)
out theEventResult longint Set to kCADEventResultDoFilter to filter out the event or to kCADEventResultDontFilter to let it pass.


Next: , Previous: kCADEventIDContextMenu, Up: Events

7.6 kCADEventIDDragScroll

kCADEventPhaseAfter

The kCADEventPhaseAfter phase of an kCADEventIDDragScroll event is triggered

Also see kCADEventIDScroll.

IO Parameter Type Description
in theCADArea longint Area ID
in theEventID longint kCADEventIDDragScroll
in theEventPhase longint kCADEventPhaseAfter
in theEventData1 longint Object or Scope ID dragged or drawn, or 0
in theEventData2 longint Actual mode (including the effect of modifier keys), a mode constant
in theEventData3 longint Mode setting of the mode palette, a mode constant
in theEventData4 longint 0
in theMouseX real 0.0
in theMouseY real 0.0
in theEventValue1 real 0.0
in theEventValue2 real 0.0
in theKeyAsciiValue integer 0
in theModifiers longint 0
in theTickCount longint 0
in/out theEventResult longint Don’t change.


Next: , Previous: kCADEventIDDragScroll, Up: Events

7.7 kCADEventIDEditClear

kCADEventPhaseBefore

Choosing Clear in the Edit menu or pressing the delete or backspace key, triggers a kCADEventPhaseBefore phase of the kCADEventIDEditClear event. The action can be intercepted or applied to a modified scope of objects.

IO Parameter Type Description
in theCADArea longint Area ID
in theEventID longint kCADEventIDEditClear
in theEventPhase longint kCADEventPhaseBefore
in theEventData1 longint 0
in theEventData2 longint Target object scope of selected objects, not included objects with a relevant lock. You can add objects to or remove objects from this scope This will change the selection of objects on which the action will take place
in theEventData3 longint 0
in theEventData4 longint 0
in theMouseX real 0.0
in theMouseY real 0.0
in theEventValue1 real 0.0
in theEventValue2 real 0.0
in theKeyAsciiValue integer ASCII character value of pressed key, or 0
in theModifiers longint Sum of pressed modifier keys, a mask of modifier key constants
in theTickCount longint Tick count of the system software (a tick is a 1/60th of a second)
out theEventResult longint Set to kCADEventResultDoFilter to filter out the event or to kCADEventResultDontFilter to let it pass.

kCADEventPhaseAfter

An kCADEventPhaseAfter phase is generated when the kCADEventPhaseBefore phase passed and the action has taken place. You can control a successive undo (but not its scope of objects).

IO Parameter Type Description
in theCADArea longint Area ID
in theEventID longint kCADEventIDEditClear
in theEventPhase longint kCADEventPhaseAfter
in theEventData1 longint 0
in theEventData2 longint 0
in theEventData3 longint 0
in theEventData4 longint 0
in theMouseX real 0.0
in theMouseY real 0.0
in theEventValue1 real 0.0
in theEventValue2 real 0.0
in theKeyAsciiValue integer ASCII character value of pressed key, or 0
in theModifiers longint Sum of pressed modifier keys, a mask of modifier key constants
in theTickCount longint Tick count of the system software (a tick is a 1/60th of a second)
out theEventResult longint Set to kCADEventResultTriggerUndoRedo to trigger an undo and redo. Set to kCADEventResultTriggerUndoOnly to trigger an undo only. Set to kCADEventResultTriggerNone to trigger nothing.


Next: , Previous: kCADEventIDEditClear, Up: Events

7.8 kCADEventIDEditCopy

kCADEventPhaseBefore

Choosing Copy in the Edit menu or pressing command-c, triggers a kCADEventPhaseBefore phase of the kCADEventIDEditCopy event. The action can be intercepted.

IO Parameter Type Description
in theCADArea longint Area ID
in theEventID longint kCADEventIDEditCopy
in theEventPhase longint kCADEventPhaseBefore
in theEventData1 longint Clipboard offscreen Area ID (most methods can operate on a clipboard area)
in theEventData2 longint kCADScopeSelectedObjects
in theEventData3 longint 0
in theEventData4 longint 0
in theMouseX real 0.0
in theMouseY real 0.0
in theEventValue1 real 0.0
in theEventValue2 real 0.0
in theKeyAsciiValue integer ASCII character value of pressed key, or 0
in theModifiers longint Sum of pressed modifier keys, a mask of modifier key constants
in theTickCount longint Tick count of the system software (a tick is a 1/60th of a second)
out theEventResult longint Set to kCADEventResultDoFilter to filter out the event or to kCADEventResultDontFilter to let it pass.

Copying objects to the clipboard automatically copies attributes of the source area to the clipboard area, such as:

kCADEventPhaseAfter

An kCADEventPhaseAfter phase is generated when the kCADEventPhaseBefore phase passed and the action has taken place.

IO Parameter Type Description
in theCADArea longint Area ID
in theEventID longint kCADEventIDEditCopy
in theEventPhase longint kCADEventPhaseAfter
in theEventData1 longint Clipboard offscreen Area ID (most methods can operate on a clipboard area)
in theEventData2 longint kCADScopeSelectedObjects
in theEventData3 longint 0
in theEventData4 longint 0
in theMouseX real 0.0
in theMouseY real 0.0
in theEventValue1 real 0.0
in theEventValue2 real 0.0
in theKeyAsciiValue integer ASCII character value of pressed key, or 0
in theModifiers longint Sum of pressed modifier keys, a mask of modifier key constants
in theTickCount longint Tick count of the system software (a tick is a 1/60th of a second)
in/out theEventResult longint Don’t change.


Next: , Previous: kCADEventIDEditCopy, Up: Events

7.9 kCADEventIDEditCut

kCADEventPhaseBefore

Choosing Cut in the Edit menu or pressing command-x, triggers a kCADEventPhaseBefore phase of the kCADEventIDEditCut event. The action can be intercepted or applied to a modified scope of objects.

IO Parameter Type Description
in theCADArea longint Area ID
in theEventID longint kCADEventIDEditCut
in theEventPhase longint kCADEventPhaseBefore
in theEventData1 longint Clipboard offscreen Area ID (most methods can operate on a clipboard area)
in theEventData2 longint Target object scope of selected objects, not included objects with a relevant lock. You can add objects to or remove objects from this scope This will change the selection of objects on which the action will take place
in theEventData3 longint 0
in theEventData4 longint 0
in theMouseX real 0.0
in theMouseY real 0.0
in theEventValue1 real 0.0
in theEventValue2 real 0.0
in theKeyAsciiValue integer ASCII character value of pressed key, or 0
in theModifiers longint Sum of pressed modifier keys, a mask of modifier key constants
in theTickCount longint Tick count of the system software (a tick is a 1/60th of a second)
out theEventResult longint Set to kCADEventResultDoFilter to filter out the event or to kCADEventResultDontFilter to let it pass.

Cutting objects to the clipboard automatically copies attributes of the source area to the clipboard area, such as:

kCADEventPhaseAfter

An kCADEventPhaseAfter phase is generated when the kCADEventPhaseBefore phase passed and the action has taken place.

IO Parameter Type Description
in theCADArea longint Area ID
in theEventID longint kCADEventIDEditCut
in theEventPhase longint kCADEventPhaseAfter
in theEventData1 longint Clipboard offscreen Area ID (most methods can operate on a clipboard area)
in theEventData2 longint 0
in theEventData3 longint 0
in theEventData4 longint 0
in theMouseX real 0.0
in theMouseY real 0.0
in theEventValue1 real 0.0
in theEventValue2 real 0.0
in theKeyAsciiValue integer ASCII character value of pressed key, or 0
in theModifiers longint Sum of pressed modifier keys, a mask of modifier key constants
in theTickCount longint Tick count of the system software (a tick is a 1/60th of a second)
in/out theEventResult longint Don’t change.


Next: , Previous: kCADEventIDEditCut, Up: Events

7.10 kCADEventIDEditPaste

kCADEventPhaseBefore

Choosing Paste in the Edit menu or pressing command-v, triggers a kCADEventPhaseBefore phase of the kCADEventIDEditPaste event. The action can be intercepted.

IO Parameter Type Description
in theCADArea longint Area ID
in theEventID longint kCADEventIDEditPaste
in theEventPhase longint kCADEventPhaseBefore
in theEventData1 longint Clipboard offscreen Area ID (most methods can operate on a clipboard area)
in theEventData2 longint Optional target Layer or Sublayer ID (if the option key was pressed)
in theEventData3 longint theCADRefID of the data on the clipboard (see CADSetRef)
in theEventData4 longint 0
in theMouseX real 0.0
in theMouseY real 0.0
in theEventValue1 real 0.0
in theEventValue2 real 0.0
in theKeyAsciiValue integer ASCII character value of pressed key, or 0
in theModifiers longint Sum of pressed modifier keys, a mask of modifier key constants
in theTickCount longint Tick count of the system software (a tick is a 1/60th of a second)
out theEventResult longint Set to kCADEventResultDoFilter to filter out the event or to kCADEventResultDontFilter to let it pass.

The objects on the clipboard are accompanied by attributes of their source area, such as:

kCADEventPhaseAfter

An kCADEventPhaseAfter phase is generated when the kCADEventPhaseBefore phase passed and the action has taken place.

IO Parameter Type Description
in theCADArea longint Area ID
in theEventID longint kCADEventIDEditPaste
in theEventPhase longint kCADEventPhaseAfter
in theEventData1 longint Clipboard offscreen Area ID (most methods can operate on a clipboard area)
in theEventData2 longint Optional target Layer or Sublayer ID (if the option key was pressed)
in theEventData3 longint theCADRefID of the data on the clipboard (see CADSetRef)
in theEventData4 longint 0
in theMouseX real 0.0
in theMouseY real 0.0
in theEventValue1 real 0.0
in theEventValue2 real 0.0
in theKeyAsciiValue integer ASCII character value of pressed key, or 0
in theModifiers longint Sum of pressed modifier keys, a mask of modifier key constants
in theTickCount longint Tick count of the system software (a tick is a 1/60th of a second)
in/out theEventResult longint Don’t change.


Next: , Previous: kCADEventIDEditPaste, Up: Events

7.11 kCADEventIDEditSelectAll

kCADEventPhaseBefore

Choosing Select All in the Edit menu or pressing command-a, triggers a kCADEventPhaseBefore phase of the kCADEventIDEditSelectAll event. The action can be intercepted.

IO Parameter Type Description
in theCADArea longint Area ID
in theEventID longint kCADEventIDEditSelectAll
in theEventPhase longint kCADEventPhaseBefore
in theEventData1 longint 0
in theEventData2 longint 0
in theEventData3 longint 0
in theEventData4 longint 0
in theMouseX real 0.0
in theMouseY real 0.0
in theEventValue1 real 0.0
in theEventValue2 real 0.0
in theKeyAsciiValue integer ASCII character value of pressed key, or 0
in theModifiers longint Sum of pressed modifier keys, a mask of modifier key constants
in theTickCount longint Tick count of the system software (a tick is a 1/60th of a second)
out theEventResult longint Set to kCADEventResultDoFilter to filter out the event or to kCADEventResultDontFilter to let it pass.

kCADEventPhaseAfter

An kCADEventPhaseAfter phase is generated when the kCADEventPhaseBefore phase passed and the action has taken place.

IO Parameter Type Description
in theCADArea longint Area ID
in theEventID longint kCADEventIDEditSelectAll
in theEventPhase longint kCADEventPhaseAfter
in theEventData1 longint 0
in theEventData2 longint 0
in theEventData3 longint 0
in theEventData4 longint 0
in theMouseX real 0.0
in theMouseY real 0.0
in theEventValue1 real 0.0
in theEventValue2 real 0.0
in theKeyAsciiValue integer ASCII character value of pressed key, or 0
in theModifiers longint Sum of pressed modifier keys, a mask of modifier key constants
in theTickCount longint Tick count of the system software (a tick is a 1/60th of a second)
in/out theEventResult longint Don’t change.


Next: , Previous: kCADEventIDEditSelectAll, Up: Events

7.12 kCADEventIDIdle

kCADEventPhaseDuring

kCADEventIDIdle events are generated when the user interface of a 4D form is idle. This is useful for handling asynchronous events.

Important
Use kCADEventIDIdle with care. Long operations in response of this event, will make the user interface unresponsive.

IO Parameter Type Description
in theCADArea longint Area ID
in theEventID longint kCADEventIDIdle
in theEventPhase longint kCADEventPhaseDuring
in theEventData1 longint kCADTrue if the application is frontmost, kCADFalse if not
in theEventData2 longint Mode on the Mode palette (without the effect of modifiers keys), a mode constant
in theEventData3 longint kCADTrue if the event is generated during a track (see kCADEventPhaseTrack and kCADEventIDSpecialClick), kCADFalse if not
in theEventData4 longint 0
in theMouseX real 0.0
in theMouseY real 0.0
in theEventValue1 real 0.0
in theEventValue2 real 0.0
in theKeyAsciiValue integer 0
in theModifiers longint Sum of pressed modifier keys, a mask of modifier key constants
in theTickCount longint Tick count of the system software (a tick is a 1/60th of a second)
in/out theEventResult longint Don’t change.


Next: , Previous: kCADEventIDIdle, Up: Events

7.13 kCADEventIDKeyDown

kCADEventPhaseDuring

Pressing a key on the keyboard generates a kCADEventIDKeyDown event, unless it is a kCADEventIDAutoKeyDown event.

IO Parameter Type Description
in theCADArea longint Area ID
in theEventID longint kCADEventIDKeyDown
in theEventPhase longint kCADEventPhaseDuring
in theEventData1 longint 0
in theEventData2 longint 0
in theEventData3 longint 0
in theEventData4 longint 0
in theMouseX real 0.0
in theMouseY real 0.0
in theEventValue1 real 0.0
in theEventValue2 real 0.0
in theKeyAsciiValue integer ASCII character value of the pressed key
in theModifiers longint Sum of pressed modifier keys, a mask of modifier key constants
in theTickCount longint Tick count of the system software (a tick is a 1/60th of a second)
in/out theEventResult longint Don’t change.

Keyboard events are not generated


Next: , Previous: kCADEventIDKeyDown, Up: Events

7.14 kCADEventIDModeChange

kCADEventPhaseBefore

Choosing a new mode on the Mode palette or pressing the space bar, triggers a kCADEventPhaseBefore phase of the kCADEventIDModeChange event. The action can be intercepted.

IO Parameter Type Description
in theCADArea longint Area ID
in theEventID longint kCADEventIDModeChange
in theEventPhase longint kCADEventPhaseBefore
in theEventData1 longint Old mode, a mode constant
in theEventData2 longint New mode, a mode constant
in theEventData3 longint 0
in theEventData4 longint 0
in theMouseX real Horizontal mouse coordinate in pixels
in theMouseY real Vertical mouse coordinate in pixels
in theEventValue1 real 0.0
in theEventValue2 real 0.0
in theKeyAsciiValue integer ASCII character value of pressed key, or 0
in theModifiers longint Sum of pressed modifier keys, a mask of modifier key constants
in theTickCount longint Tick count of the system software (a tick is a 1/60th of a second)
out theEventResult longint Set to kCADEventResultDoFilter to filter out the event or to kCADEventResultDontFilter to let it pass.

kCADEventPhaseAfter

An kCADEventPhaseAfter phase is generated when the kCADEventPhaseBefore phase passed and the action has taken place.

IO Parameter Type Description
in theCADArea longint Area ID
in theEventID longint kCADEventIDModeChange
in theEventPhase longint kCADEventPhaseAfter
in theEventData1 longint Old mode, a mode constant
in theEventData2 longint New mode, a mode constant
in theEventData3 longint 0
in theEventData4 longint 0
in theMouseX real Horizontal mouse coordinate in pixels
in theMouseY real Vertical mouse coordinate in pixels
in theEventValue1 real 0.0
in theEventValue2 real 0.0
in theKeyAsciiValue integer ASCII character value of pressed key, or 0
in theModifiers longint Sum of pressed modifier keys, a mask of modifier key constants
in theTickCount longint Tick count of the system software (a tick is a 1/60th of a second)
in/out theEventResult longint Don’t change.


Next: , Previous: kCADEventIDModeChange, Up: Events

7.15 kCADEventIDObjCreate

kCADEventPhaseBefore

Clicking to start drawing a new object, triggers a kCADEventPhaseBefore phase of the kCADEventIDObjCreate event. The action can be intercepted.

IO Parameter Type Description
in theCADArea longint Area ID
in theEventID longint kCADEventIDObjCreate
in theEventPhase longint kCADEventPhaseBefore
in theEventData1 longint Current Layer or Sublayer ID
in theEventData2 longint Mode on the Mode palette (without the effect of modifiers keys), a mode constant
in theEventData3 longint kCADTrue if the mouse cursor is snapped, kCADFalse if not
in theEventData4 longint 0
in theMouseX real Mouse X-coordinate, optionally snapped
in theMouseY real Mouse Y-coordinate, optionally snapped
in theEventValue1 real Unsnapped mouse X-coordinate
in theEventValue2 real Unsnapped mouse Y-coordinate
in theKeyAsciiValue integer 0
in theModifiers longint Sum of pressed modifier keys, a mask of modifier key constants
in theTickCount longint Tick count of the system software (a tick is a 1/60th of a second)
out theEventResult longint Set to kCADEventResultDoFilter to filter out the event or to kCADEventResultDontFilter to let it pass.

kCADEventPhaseAfter

An kCADEventPhaseAfter phase is generated when the kCADEventPhaseBefore phase passed and the new object has been drawn. You can do any needed post-processing or you can replace the new object with something else.

IO Parameter Type Description
in theCADArea longint Area ID
in theEventID longint kCADEventIDObjCreate
in theEventPhase longint kCADEventPhaseAfter
in theEventData1 longint Object ID of the new object
in theEventData2 longint Type of the new object, a object type constant
in theEventData3 longint Target object scope of newly created objects. You can add objects to or remove objects from this scope. This will change the selection of objects on which a successive undo action will operate. This is useful if you are removing the new object, replacing it with something else
in theEventData4 longint 0
in theMouseX real 0.0
in theMouseY real 0.0
in theEventValue1 real 0.0
in theEventValue2 real 0.0
in theKeyAsciiValue integer 0
in theModifiers longint 0
in theTickCount longint Tick count of the system software (a tick is a 1/60th of a second)
out theEventResult longint Set to kCADEventResultTriggerUndoRedo to trigger an undo and redo. Set to kCADEventResultTriggerUndoOnly to trigger an undo only. Set to kCADEventResultTriggerNone to trigger nothing.


Next: , Previous: kCADEventIDObjCreate, Up: Events

7.16 kCADEventIDObjDoubleClick

kCADEventPhaseDuring

Double-clicking on an object triggers a kCADEventIDObjDoubleClick event. Handling this event is left to the application, there is no default action.

IO Parameter Type Description
in theCADArea longint Area ID
in theEventID longint kCADEventIDObjDoubleClick
in theEventPhase longint kCADEventPhaseDuring
in theEventData1 longint Object ID double-clicked on
in theEventData2 longint Mode on the Mode palette (without the effect of modifiers keys), a mode constant
in theEventData3 longint Object count in kCADScopeSelectedObjects
in theEventData4 longint 0
in theMouseX real Mouse X-coordinate,
in theMouseY real Mouse Y-coordinate,
in theEventValue1 real 0.0
in theEventValue2 real 0.0
in theKeyAsciiValue integer 0
in theModifiers longint Sum of pressed modifier keys, a mask of modifier key constants
in theTickCount longint Tick count of the system software (a tick is a 1/60th of a second)
in/out theEventResult longint Don’t change.


Next: , Previous: kCADEventIDObjDoubleClick, Up: Events

7.17 kCADEventIDObjReshape

kCADEventPhaseBefore

Clicking on a grip handle to start reshaping or resizing an object, triggers a kCADEventPhaseBefore phase of the kCADEventIDObjReshape event. The action can be intercepted. No event is triggered if the reshape or resize action has a lock.

IO Parameter Type Description
in theCADArea longint Area ID
in theEventID longint kCADEventIDObjReshape
in theEventPhase longint kCADEventPhaseBefore
in theEventData1 longint Object ID of the target object
in theEventData2 longint Grip handle type, kCADEventDataSolidGrip or kCADEventDataOpenGrip
in theEventData3 longint Grip handle number
in theEventData4 longint 0
in theMouseX real Mouse X-coordinate,
in theMouseY real Mouse Y-coordinate,
in theEventValue1 real 0.0
in theEventValue2 real 0.0
in theKeyAsciiValue integer 0
in theModifiers longint Sum of pressed modifier keys, a mask of modifier key constants
in theTickCount longint Tick count of the system software (a tick is a 1/60th of a second)
out theEventResult longint Set to kCADEventResultDoFilter to filter out the event or to kCADEventResultDontFilter to let it pass.

kCADEventPhaseAfter

An kCADEventPhaseAfter phase is generated when the kCADEventPhaseBefore phase passed and the object has been reshaped or resized.

IO Parameter Type Description
in theCADArea longint Area ID
in theEventID longint kCADEventIDObjReshape
in theEventPhase longint kCADEventPhaseAfter
in theEventData1 longint Object ID of the target object
in theEventData2 longint 0
in theEventData3 longint 0
in theEventData4 longint 0
in theMouseX real 0.0
in theMouseY real 0.0
in theEventValue1 real 0.0
in theEventValue2 real 0.0
in theKeyAsciiValue integer 0
in theModifiers longint 0
in theTickCount longint Tick count of the system software (a tick is a 1/60th of a second)
out theEventResult longint Set to kCADEventResultTriggerUndoRedo to trigger an undo and redo. Set to kCADEventResultTriggerUndoOnly to trigger an undo only. Set to kCADEventResultTriggerNone to trigger nothing.


Next: , Previous: kCADEventIDObjReshape, Up: Events

7.18 kCADEventIDObjRotate

kCADEventPhaseBefore

Changing a value in a rotation or rotation change edit box of the Measure pane, triggers a kCADEventPhaseBefore phase of the kCADEventIDObjRotate event. The action can be intercepted or applied to a modified scope of objects.

Also see kCADEventIDChangeOfMeasure.

IO Parameter Type Description
in theCADArea longint Area ID
in theEventID longint kCADEventIDObjRotate
in theEventPhase longint kCADEventPhaseBefore
in theEventData1 longint Target object scope of selected objects, not included objects with a relevant lock. You can add objects to or remove objects from this scope This will change the selection of objects on which the action will take place
in theEventData2 longint Type of rotation (kCADEventDataRotateObjByMeasure)
in theEventData3 longint Type of measure, a measure type constant)
in theEventData4 longint 0
in theMouseX real 0.0
in theMouseY real 0.0
in theEventValue1 real The rotation Angle
in theEventValue2 real 0.0
in theKeyAsciiValue integer 0
in theModifiers longint 0
in theTickCount longint Tick count of the system software (a tick is a 1/60th of a second)
out theEventResult longint Set to kCADEventResultDoFilter to filter out the event or to kCADEventResultDontFilter to let it pass.

kCADEventPhaseAfter

An kCADEventPhaseAfter phase is generated when the kCADEventPhaseBefore phase passed and the objects have been rotated.

IO Parameter Type Description
in theCADArea longint Area ID
in theEventID longint kCADEventIDObjRotate
in theEventPhase longint kCADEventPhaseAfter
in theEventData1 longint Target object scope on which action was taken. You can add objects to or remove objects from this scope. This will change the selection of objects on which a successive undo action will take place
in theEventData2 longint Type of rotation (kCADEventDataRotateObjByMeasure)
in theEventData3 longint Type of measure, a measure type constant)
in theEventData4 longint 0
in theMouseX real 0.0
in theMouseY real 0.0
in theEventValue1 real The rotation Angle
in theEventValue2 real 0.0
in theKeyAsciiValue integer 0
in theModifiers longint 0
in theTickCount longint 0
out theEventResult longint Set to kCADEventResultTriggerUndoRedo to trigger an undo and redo. Set to kCADEventResultTriggerUndoOnly to trigger an undo only. Set to kCADEventResultTriggerNone to trigger nothing.


Next: , Previous: kCADEventIDObjRotate, Up: Events

7.19 kCADEventIDSelectDeselect

kCADEventPhaseBefore

Selecting objects with a single mouse click, a selection rectangle or a touching line triggers a kCADEventPhaseBefore phase of the kCADEventIDSelectDeselect event. The action can be intercepted.

Selecting objects is described in detail in the sections Intersect mode, Enclose mode, Touch mode, Translate mode and Reshape mode.

IO Parameter Type Description
in theCADArea longint Area ID
in theEventID longint kCADEventIDSelectDeselect
in theEventPhase longint kCADEventPhaseBefore
in theEventData1 longint kCADTrue for a single click, kCADFalse for a selecting rectangle or line
in theEventData2 longint Mode on the Mode palette (without the effect of modifiers keys), a mode constant
in theEventData3 longint Selection action or 0, a selection action constant
in theEventData4 longint 0 (or string ObjID for kCADModeWriteString)
in theMouseX real Selection box low X-coordinate (or selection line start X-coordinate for mode kCADModeTouch, or snap X-coordinate for mode kCADModeWriteString)
in theMouseY real Selection box low Y-coordinate (or selection line start Y-coordinate for mode kCADModeTouch, or snap Y-coordinate for mode kCADModeWriteString)
in theEventValue1 real Selection box high X-coordinate (or selection line end X-coordinate for mode kCADModeTouch, or snap X-coordinate for mode kCADModeWriteString)
in theEventValue2 real Selection box high Y-coordinate (or selection line end Y-coordinate for mode kCADModeTouch, or snap Y-coordinate for mode kCADModeWriteString)
in theKeyAsciiValue integer 0
in theModifiers longint Sum of pressed modifier keys, a mask of modifier key constants
in theTickCount longint Tick count of the system software (a tick is a 1/60th of a second)
out theEventResult longint Set to kCADEventResultDoFilter to filter out the event or to kCADEventResultDontFilter to let it pass.

kCADEventPhaseAfter

An kCADEventPhaseAfter phase is generated when the kCADEventPhaseBefore phase passed and objects have been selected or deselected.

IO Parameter Type Description
in theCADArea longint Area ID
in theEventID longint kCADEventIDSelectDeselect
in theEventPhase longint kCADEventPhaseAfter
in theEventData1 longint Object ID or 0
in theEventData2 longint Mode on the Mode palette (without the effect of modifiers keys), a mode constant
in theEventData3 longint Count of selected objects
in theEventData4 longint 0 (or string ObjID for kCADModeWriteString)
in theMouseX real Selection box low X-coordinate (or selection line start X-coordinate for mode kCADModeTouch, or snap X-coordinate for mode kCADModeWriteString)
in theMouseY real Selection box low Y-coordinate (or selection line start Y-coordinate for mode kCADModeTouch, or snap Y-coordinate for mode kCADModeWriteString)
in theEventValue1 real Selection box high X-coordinate (or selection line end X-coordinate for mode kCADModeTouch, or snap X-coordinate for mode kCADModeWriteString)
in theEventValue2 real Selection box high Y-coordinate (or selection line end Y-coordinate for mode kCADModeTouch, or snap Y-coordinate for mode kCADModeWriteString)
in theKeyAsciiValue integer 0
in theModifiers longint Sum of pressed modifier keys, a mask of modifier key constants
in theTickCount longint Tick count of the system software (a tick is a 1/60th of a second)
in/out theEventResult longint Don’t change.

This event can be followed by a kCADEventIDObjReshape, kCADEventIDObjTranslate, kCADEventIDObjDoubleClick or kCADEventIDWriteString event.


Next: , Previous: kCADEventIDSelectDeselect, Up: Events

7.20 kCADEventIDObjTranslate

kCADEventPhaseBefore

A kCADEventPhaseBefore phase of the kCADEventIDObjTranslate event is triggered when

The action can be intercepted or applied to a modified scope of objects.

IO Parameter Type Description
in theCADArea longint Area ID
in theEventID longint kCADEventIDObjTranslate
in theEventPhase longint kCADEventPhaseBefore
in theEventData1 longint Target object scope of selected objects, not included objects with a relevant lock. You can add objects to or remove objects from this scope This will change the selection of objects on which the action will take place
in theEventData2 longint Type of translation (kCADEventDataTransByMouse, kCADEventDataTransByArrowKey or kCADEventDataTransByMeasurePane)
in theEventData3 longint Type of measure, a measure type constant, or 0
in theEventData4 longint Object ID of the drag target object, or 0
in theMouseX real Drag mouse X-coordinate (for drags) or 0.0
in theMouseY real Drag mouse Y-coordinate (for drags) or 0.0
in theEventValue1 real Translation X-offset (in the measure pane) or 0.0
in theEventValue2 real Translation Y-offset (in the measure pane) or 0.0
in theKeyAsciiValue integer ASCII character value of pressed key, or 0
in theModifiers longint Sum of pressed modifier keys, a mask of modifier key constants, or 0
in theTickCount longint Tick count of the system software (a tick is a 1/60th of a second), or 0
out theEventResult longint Set to kCADEventResultDoFilter to filter out the event or to kCADEventResultDontFilter to let it pass.

kCADEventPhaseAfter

An kCADEventPhaseAfter phase is generated when the kCADEventPhaseBefore phase passed and the objects have been translated.

IO Parameter Type Description
in theCADArea longint Area ID
in theEventID longint kCADEventIDObjTranslate
in theEventPhase longint kCADEventPhaseAfter
in theEventData1 longint Target object scope on which action was taken. You can add objects to or remove objects from this scope. This will change the selection of objects on which a successive undo action will take place
in theEventData2 longint Type of translation (kCADEventDataTransByMouse, kCADEventDataTransByArrowKey or kCADEventDataTransByMeasurePane)
in theEventData3 longint Type of measure, a measure type constant, or 0
in theEventData4 longint Object ID of the drag target object, or 0
in theMouseX real Target object snap X-coordinate (for drags), or 0.0
in theMouseY real Target object snap Y-coordinate (for drags), or 0.0
in theEventValue1 real Translation X-offset
in theEventValue2 real Translation Y-offset
in theKeyAsciiValue integer ASCII character value of pressed key, or 0
in theModifiers longint Sum of pressed modifier keys, a mask of modifier key constants, or 0
in theTickCount longint Tick count of the system software (a tick is a 1/60th of a second), or 0
out theEventResult longint Set to kCADEventResultTriggerUndoRedo to trigger an undo and redo. Set to kCADEventResultTriggerUndoOnly to trigger an undo only. Set to kCADEventResultTriggerNone to trigger nothing.


Next: , Previous: kCADEventIDObjTranslate, Up: Events

7.21 kCADEventIDScroll

kCADEventPhaseBefore

A kCADEventPhaseBefore phase of the kCADEventIDScroll event is triggered when the users clicks in any part of a scroll bar. The action can be intercepted.

Also see kCADEventIDDragScroll

IO Parameter Type Description
in theCADArea longint Area ID
in theEventID longint kCADEventIDScroll
in theEventPhase longint kCADEventPhaseBefore
in theEventData1 longint Type of scroll, kCADEventDataScrollH or kCADEventDataScrollV
in theEventData2 longint 0
in theEventData3 longint 0
in theEventData4 longint 0
in theMouseX real Horizontal mouse coordinate in pixels
in theMouseY real Vertical mouse coordinate in pixels
in theEventValue1 real 0.0
in theEventValue2 real 0.0
in theKeyAsciiValue integer 0
in theModifiers longint Sum of pressed modifier keys, a mask of modifier key constants
in theTickCount longint Tick count of the system software (a tick is a 1/60th of a second)
out theEventResult longint Set to kCADEventResultDoFilter to filter out the event or to kCADEventResultDontFilter to let it pass.

kCADEventPhaseAfter

An kCADEventPhaseAfter phase is generated when the kCADEventPhaseBefore phase passed and scrolling has taken place.

IO Parameter Type Description
in theCADArea longint Area ID
in theEventID longint kCADEventIDScroll
in theEventPhase longint kCADEventPhaseAfter
in theEventData1 longint Type of scroll, kCADEventDataScrollH or kCADEventDataScrollV
in theEventData2 longint 0
in theEventData3 longint 0
in theEventData4 longint 0
in theMouseX real 0.0
in theMouseY real 0.0
in theEventValue1 real 0.0
in theEventValue2 real 0.0
in theKeyAsciiValue integer 0
in theModifiers longint 0
in theTickCount longint Tick count of the system software (a tick is a 1/60th of a second)
in/out theEventResult longint Don’t change.


Next: , Previous: kCADEventIDScroll, Up: Events

7.22 kCADEventIDSpecialClick

kCADEventPhaseDuring

Clicking with the mouse in Special click mode triggers a kCADEventIDSpecialClick event. Handling this event is left to the application, there is no default action.

IO Parameter Type Description
in theCADArea longint Area ID
in theEventID longint kCADEventIDSpecialClick
in theEventPhase longint kCADEventPhaseDuring
in theEventData1 longint Object ID clicked on, or 0
in theEventData2 longint kCADTrue if the click was within the drawing plane, kCADFalse if not
in theEventData3 longint kCADTrue if the mouse cursor is snapped, kCADFalse if not
in theEventData4 longint Target object scope, initially empty. If you add objects to this scope, they will be removed by a successive undo action
in theMouseX real Mouse X-coordinate, optionally snapped
in theMouseY real Mouse Y-coordinate, optionally snapped
in theEventValue1 real Unsnapped mouse X-coordinate
in theEventValue2 real Unsnapped mouse Y-coordinate
in theKeyAsciiValue integer 0
in theModifiers longint Sum of pressed modifier keys, a mask of modifier key constants (also see CADGetAreaPrefs and CADSetAreaPrefs)
in theTickCount longint Tick count of the system software (a tick is a 1/60th of a second)
out theEventResult longint Set to kCADEventResultTriggerUndoRedo to trigger an undo and redo. Set to kCADEventResultTriggerUndoOnly to trigger an undo only. Set to kCADEventResultTriggerNone to trigger nothing.

Set to kCADEventResultTriggerTrackObj, kCADEventResultTriggerTrackX, kCADEventResultTriggerTrackY or kCADEventResultTriggerTrackXY, to trigger kCADEventPhaseTrack event phases while the mouse button has not been released. Optionally add kCADEventResultTriggerIdle to also trigger kCADEventIDIdle events during the track.

The default undo action removes those objects that were added to the target object scope.

kCADEventPhaseTrack

kCADEventPhaseTrack events are triggered by the application in the kCADEventPhaseDuring phase above.

The application will continue to receive kCADEventPhaseTrack events until it cancels the track (by passing kCADEventResultDoFilter in theEventResult) or until the user releases the mouse button.

In both cases, one extra kCADEventPhaseTrack event will be generated, with theEventData4 set to kCADFalse, to finish the track.

IO Parameter Type Description
in theCADArea longint Area ID
in theEventID longint kCADEventIDSpecialClick
in theEventPhase longint kCADEventPhaseTrack
in theEventData1 longint Object ID the mouse is over, or 0
in theEventData2 longint Previous Object ID the mouse was over, or 0
in theEventData3 longint kCADTrue if the mouse cursor is snapped, kCADFalse if not
in theEventData4 longint kCADTrue if the mouse button has been released, kCADFalse if not
in theMouseX real Mouse X-coordinate, optionally snapped
in theMouseY real Mouse Y-coordinate, optionally snapped
in theEventValue1 real Unsnapped mouse X-coordinate
in theEventValue2 real Unsnapped mouse Y-coordinate
in theKeyAsciiValue integer 0
in theModifiers longint Sum of pressed modifier keys, a mask of modifier key constants (also see CADGetAreaPrefs and CADSetAreaPrefs)
in theTickCount longint Tick count of the system software (a tick is a 1/60th of a second)
out theEventResult longint Set to kCADEventResultDoFilter to stop tracking, or to kCADEventResultDontFilter to continue tracking.


Next: , Previous: kCADEventIDSpecialClick, Up: Events

7.23 kCADEventIDUndoRedo

kCADEventPhaseBefore

A kCADEventPhaseBefore phase of the kCADEventIDUndoRedo event is triggered when the user chooses Undo or Redo in the Edit menu or presses command-z (see Undo and redo). The undo action can be a standard undo or an undo defined by the application (see CADTriggerUndo). The action can be intercepted.

IO Parameter Type Description
in theCADArea longint Area ID
in theEventID longint kCADEventIDUndoRedo
in theEventPhase longint kCADEventPhaseBefore
in theEventData1 longint The type of undo, a undo constant
in theEventData2 longint kCADTrue if a redo, kCADFalse if not
in theEventData3 longint Scope or Object ID (not a modifiable scope)
in theEventData4 longint theUndoByAppEventParam of CADTriggerUndo, or 0
in theMouseX real 0.0
in theMouseY real 0.0
in theEventValue1 real 0.0
in theEventValue2 real 0.0
in theKeyAsciiValue integer ASCII character value of pressed key, or 0
in theModifiers longint Sum of pressed modifier keys, a mask of modifier key constants
in theTickCount longint Tick count of the system software (a tick is a 1/60th of a second)
out theEventResult longint Set to kCADEventResultDoFilter to filter out the event or to kCADEventResultDontFilter to let it pass.

kCADEventPhaseAfter

An kCADEventPhaseAfter phase is generated when the kCADEventPhaseBefore phase passed and the undo or redo action has taken place.

IO Parameter Type Description
in theCADArea longint Area ID
in theEventID longint kCADEventIDUndoRedo
in theEventPhase longint kCADEventPhaseAfter
in theEventData1 longint The type of undo, a undo constant
in theEventData2 longint kCADTrue if a redo, kCADFalse if not
in theEventData3 longint Scope or Object ID (not a modifiable scope)
in theEventData4 longint theUndoByAppEventParam of CADTriggerUndo, or 0
in theMouseX real 0.0
in theMouseY real 0.0
in theEventValue1 real 0.0
in theEventValue2 real 0.0
in theKeyAsciiValue integer ASCII character value of pressed key, or 0
in theModifiers longint Sum of pressed modifier keys, a mask of modifier key constants
in theTickCount longint Tick count of the system software (a tick is a 1/60th of a second)
out theEventResult longint Set to kCADEventResultTriggerUndoRedo to trigger an undo and redo. Set to kCADEventResultTriggerUndoOnly to trigger an undo only. Set to kCADEventResultTriggerNone to trigger nothing.


Next: , Previous: kCADEventIDUndoRedo, Up: Events

7.24 kCADEventIDWriteString

In Write string mode, preference settings of CADSetAreaPrefs determine whether string editing is handled by the application or by the built-in string editor. If string editing is to be handled by the application, then a mouse click triggers a kCADEventPhaseDuring phase of kCADEventIDWriteString. If string editing is handled by the built-in string editor, then the following events are triggered instead:

kCADEventPhaseBefore

IO Parameter Type Description
in theCADArea longint Area ID
in theEventID longint kCADEventIDWriteString
in theEventPhase longint kCADEventPhaseBefore
in theEventData1 longint the Object ID of the string object
in theEventData2 longint kCADTrue is the string object is a new object, kCADFalse if not
in theEventData3 longint 0
in theEventData4 longint 0
in theMouseX real Mouse X-coordinate, optionally snapped
in theMouseY real Mouse Y-coordinate, optionally snapped
in theEventValue1 real Unsnapped mouse X-coordinate
in theEventValue2 real Unsnapped mouse Y-coordinate
in theKeyAsciiValue integer 0
in theModifiers longint Sum of pressed modifier keys, a mask of modifier key constants (also see CADGetAreaPrefs and CADSetAreaPrefs)
in theTickCount longint Tick count of the system software (a tick is a 1/60th of a second)
out theEventResult longint Set to kCADEventResultDoFilter to filter out the event or to kCADEventResultDontFilter to let it pass.

kCADEventPhaseDuring

IO Parameter Type Description
in theCADArea longint Area ID
in theEventID longint kCADEventIDWriteString
in theEventPhase longint kCADEventPhaseDuring
in theEventData1 longint Current Layer or Sublayer ID
in theEventData2 longint 0
in theEventData3 longint kCADTrue if the mouse cursor is snapped, kCADFalse if not
in theEventData4 longint Target object scope, initially empty. If you add objects to this scope, they will be removed by a successive undo action
in theMouseX real Mouse X-coordinate, optionally snapped
in theMouseY real Mouse Y-coordinate, optionally snapped
in theEventValue1 real Unsnapped mouse X-coordinate
in theEventValue2 real Unsnapped mouse Y-coordinate
in theKeyAsciiValue integer 0
in theModifiers longint Sum of pressed modifier keys, a mask of modifier key constants (also see CADGetAreaPrefs and CADSetAreaPrefs)
in theTickCount longint Tick count of the system software (a tick is a 1/60th of a second)
out theEventResult longint Set to kCADEventResultTriggerUndoRedo to trigger an undo and redo. Set to kCADEventResultTriggerUndoOnly to trigger an undo only. Set to kCADEventResultTriggerNone to trigger nothing. The default undo action removes those objects that were added to the target object scope.

kCADEventPhaseAfter

IO Parameter Type Description
in theCADArea longint Area ID
in theEventID longint kCADEventIDWriteString
in theEventPhase longint kCADEventPhaseAfter
in theEventData1 longint the Object ID of the string object
in theEventData2 longint kCADTrue is the string object is a new object, kCADFalse if not
in theEventData3 longint kCADTrue if the edit-box was accepted, kCADFalse if it was canceled
in theEventData4 longint 0
in theMouseX real 0.0
in theMouseY real 0.0
in theEventValue1 real 0.0
in theEventValue2 real 0.0
in theKeyAsciiValue integer 0
in theModifiers longint 0
in theTickCount longint 0
out theEventResult longint Don’t change.


Previous: kCADEventIDWriteString, Up: Events

7.25 kCADEventIDZoom

kCADEventPhaseBefore

A kCADEventPhaseBefore phase of the kCADEventIDZoom event is triggered when the user clicks to start a zooming operation (see Zoom in mode, Zoom out mode, Zoom continuous mode and other modes that allow zooming with a modifier key). The action can be intercepted.

IO Parameter Type Description
in theCADArea longint Area ID
in theEventID longint kCADEventIDZoom
in theEventPhase longint kCADEventPhaseBefore
in theEventData1 longint Type of zoom, kCADEventDataZoomIn, kCADEventDataZoomOut or kCADEventDataZoomContinuous
in theEventData2 longint Actual mode (including the effect of modifier keys), a mode constant
in theEventData3 longint Mode setting of the mode palette, a mode constant
in theEventData4 longint Zoom increment (or 0 for continuous zoom)
in theMouseX real Mouse X-coordinate,
in theMouseY real Mouse Y-coordinate,
in theEventValue1 real 0.0
in theEventValue2 real 0.0
in theKeyAsciiValue integer 0
in theModifiers longint Sum of pressed modifier keys, a mask of modifier key constants
in theTickCount longint Tick count of the system software (a tick is a 1/60th of a second)
out theEventResult longint Set to kCADEventResultDoFilter to filter out the event or to kCADEventResultDontFilter to let it pass.

kCADEventPhaseAfter

An kCADEventPhaseAfter phase is generated when the kCADEventPhaseBefore phase passed and zooming has taken place.

IO Parameter Type Description
in theCADArea longint Area ID
in theEventID longint kCADEventIDZoom
in theEventPhase longint kCADEventPhaseAfter
in theEventData1 longint Type of zoom, kCADEventDataZoomIn, kCADEventDataZoomOut or kCADEventDataZoomContinuous
in theEventData2 longint Actual mode (including the effect of modifier keys), a mode constant
in theEventData3 longint Mode setting of the mode palette, a mode constant
in theEventData4 longint Zoom increment (or 0 for continuous zoom)
in theMouseX real Mouse X-coordinate, or 0.0
in theMouseY real Mouse Y-coordinate, or 0.0
in theEventValue1 real 0.0
in theEventValue2 real 0.0
in theKeyAsciiValue integer 0
in theModifiers longint Sum of pressed modifier keys, a mask of modifier key constants
in theTickCount longint Tick count of the system software (a tick is a 1/60th of a second)
in/out theEventResult longint Don’t change.


Next: , Previous: Events, Up: Top

Appendix A 4D Draw emulation

4D Draw emulation is currently UNDER DEVELOPMENT.

The 4D Draw compatibilty layer of 4D CAD emulates most of 4D Draw, but not all. This appendix compares 4D Draw emulation in 4D CAD with the original.

As a plus, 4D Draw emulation in 4D CAD

Unsupported features can be added through contract programming.


Next: , Up: 4D Draw emulation

A.1 4D Draw area table

4D Draw area Emulation
_4D Draw _4DDraw


Next: , Previous: 4D Draw area table, Up: 4D Draw emulation

A.2 4D Draw method table

Further compatibility notes are listed with each method.

4D Draw method Emulation
DR ADD TO BACKGROUND DRAddToBackground
DR DO COMMAND DRDoCommand
DR Error DRError
DR EVENT FILTER DREventFilter
DR EXPERT COMMAND DRExpertCommand
DR EXPERT MODE DRExpertMode
DR GET AREA BOUNDARY DRGetAreaBoundary
DR Get update mode DRGetUpdateMode
DR Get mouse DRGetMouse
DR Get zoom DRGetZoom
DR LAST CLICK DRLastClick
DR Last event DRLastEvent
DR MENU STATUS DRMenuStatus
DR ON ERROR DROnError
DR ON EVENT DROnEvent
DR ON MENU DROnMenu
DR REDRAW DRRedraw
DR RELEASE BACKGROUND DRReleaseBackground
DR REMOVE FROM BACKGROUND DRRemoveFromBackground
DR SCROLL DOCUMENT DRScrollDocument
DR SET ENTERABLE DRSetEnterable
DR SET UPDATE MODE DRSetUpdateMode
DR ZOOM DRZoom


DR COORDINATES DRCoordinates
DR DISPLAY OPTIONS