This manual is UNDER CONSTRUCTION.
Documentation on one
or multiple html pages.

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.

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.

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
The rationale behind 4D CAD is simple. It combines the advantages of component software and integrated software.
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
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.
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.

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
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.
Selected bibliography
Standard work of mathematics, densely packed with formulas
An excellent and very useful book, in spite of the examples in Fortran. One of the few books on programming with geometry
The one famous book that must be on every programmer’s desk
Apple developer documentation and services
Microsoft developer documentation and services
4th Dimension developer documentation and services.
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.

Illustrations were created using 4D CAD and Apple Preview (and exported to the patent-free PNG format).
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
A 4D CAD area consists of the following elements

More elements can be added with a Title split.
Programming
The area can be customized with CADSetDisplay.
Areas
%CAD, %CADView, %CADBackground
Methods
CADGetDisplay, CADSetDisplay.
Modes on the mode palette are:

Methods
CADGetMode, CADSetMode.

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

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

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

Reshape mode is a general purpose object selection and edit mode. In this mode you can
When translating, you can
ESC to cancel the translation.
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
ESC to cancel the reshape or resize.
| 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.
Translate mode is a specialized object selection and translation mode,
available only by calling CADSetMode. In this mode you can
When translating, you can
ESC to cancel the translation.
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.

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.

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.

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.

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.

Draw line mode is a specialized mode to draw lines. In this mode you can
S key to disable Snaps
ESC to cancel the creation of the line
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.

Draw polyline mode is a specialized mode to draw polylines. In this mode you can
S key to disable Snaps
Backspace to remove the last polyline point
ESC to cancel the creation of the polyline
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.

Draw square mode is a specialized mode to draw squares. In this mode you can
ESC to cancel the creation of the square
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.

Draw rectangle mode is a specialized mode to draw rectangles. In this mode you can
S key to disable Snaps
ESC to cancel the creation of the rectangle
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.

Draw circle mode is a specialized mode to draw circles. In this mode you can
ESC to cancel the creation of the circle
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.

Draw ellipse mode is a specialized mode to draw ellipses. In this mode you can
S key to disable Snaps
ESC to cancel the creation of the ellipse
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.

Draw circle arc mode is a specialized mode to draw circle arcs. In this mode you can
ESC to cancel the creation of the circle arc
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.

Draw ellipse arc mode is a specialized mode to draw ellipse arcs. In this mode you can
S key to disable Snaps
ESC to cancel the creation of the ellipse arc
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.

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.

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.

Clip box mode sets a clipping rectangle. In this mode you can
The Clip box is used
CADPrint
CADAutoZoom
Programming
The clip box can be read with CADGetClipBox and set with CADSetClipBox.
Methods
CADGetClipBox, CADSetClipBox, CADAutoZoom, CADPrint.

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
CADPageSetup)
CADGetScale and CADSetScale)
CADGetPrintSpecs and CADSetPrintSpecs)
CADGetClipBox and CADSetClipBox).
Methods
CADPrint, CADPageSetup, CADGetPaperSizes,
CADGetScale, CADSetScale,
CADGetClipBox, CADSetClipBox,
CADGetPrintSpecs, CADSetPrintSpecs.

With the buttons on the tool palette you can
Mirror a selection horizontal (in the vertical line that runs through the center of their
common bounds)
Mirror a selection vertical (in the horizontal line that runs through the center of their
common bounds)
Flip objects horizontal (each object separately)
Flip objects vertical (each object separately)
Rotate a selection to the left (around the center of their common bounds)
Rotate a selection to the right (around the center of their common bounds)
Rotate objects to the left (each object separately)
Rotate objects to the right (each object separately).
Methods
CADCommand.
The measure pane is used to display and edit metrical values of selected objects.

In the measure pane you can
1e100 and
−1e100
Return to accept the value while leaving the measure pane
Down Arrow or Tab to accept the value while moving to the next
editable value
Up Arrow or Shift-Tab to accept the value while moving to the previous
editable value
ESC to cancel the edit
Special considerations
−−", but a value can still be entered
Programming
The measure pane can be customized with CADSetMeasurePrefs.
Methods
CADGetMeasurePrefs, CADSetMeasurePrefs.

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.

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.
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.

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

In the figure you see
center blips,
solid grip handles and
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.
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.
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.
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).
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.
4D CAD implements single undo and redo. You can
Special considerations
Programming
See Undo handling.
Methods
CADGetOnEvent, CADSetOnEvent,
CADGetUndoPrefs, CADSetUndoPrefs,
CADTriggerUndo, CADResetUndo.
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
S key releases the snap
CADSetSnapPrefs)
CADSetLayerAttributes).
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.
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.
With the keyboard you can
Programming
See Event handling.
Methods
CADGetOnEvent, CADSetOnEvent.
With the mouse wheel you can, by default
Important
The use of the mouse wheel can be customized with CADSetMouseWheelPrefs.
Methods
CADGetMouseWheelPrefs, CADSetMouseWheelPrefs.
In a 4D CAD string edit box, you can apply the following edit operations:

If a caret is shown

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.

The string edit box has the same position and rotation angle as the text in the drawing.
Elementary mathematics
Base elements of a drawing
Area attributes
Object attributes
Application data
Transforms
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.
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.
(under construction)
Methods
CADSin, CADCos, CADArcSin, CADArcCos, CADArcTan2.
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.
An ID is a number (of type longint) that uniquely identifies an element of a drawing.
Layers are like transparent sheets laying op top of each other, with objects glued to them.

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

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
CADSetSnapPrefs and then
maintain the snapping
flag of each layer by calling CADSetLayerAttributes
This is useful when you want to add invisible snapping points or an invisible
snapping grid
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.
Sublayers are a further subdivision of layers (see Layer), but there are some differences
kCADNotOnSubLayerID).
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.
Blocks are like mini drawings. The figure shows a block, inserted at two different places in the drawing.

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
kCADColorUncolored,
which retains individual line colors.
Setting it to another color, recursively overrules line colors of objects in the block
kCADColorUncolored,
which retains individual fill colors.
Setting it to another color, recursively overrules fill colors of objects in the block
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
kCADTrue if the block was imported from a DXF file,
kCADFalse if not (see Importing DXF files)
kCADTrue if the block is a dimension in
the DXF file from which it was imported (see Importing DXF files)
Methods
CADAddBlock, CADRemoveBlock, CADGetBlocks,
CADGetBlockInfo, CADSetBlockName,
CADGetBlockKey, CADSetBlockKey,
CADAddInsertXY, CADAddInsert, CADObjInsert,
CADGetInsertID, CADGetInsert, CADGetInsertXY,
CADSetInsertID, CADSetInsert, CADSetInsertXY,
CADGetInsertColor, CADSetInsertColor,
CADClear.
(under construction)
(under construction)
(under construction)
(under construction)
(under construction)
(under construction)
(under construction)
(under construction)
(under construction)
(under construction)
(under construction)
Also see Block.
An object scope describes a set of objects. It can have different forms:
kCADScopeSelectedObjects describes all objects currently selected by
the user
kCADScopeObjOnEditableLayers describes all objects currently editable
(selectable) by the user
kCADScopeAllObjects describes all objects
CADAddScope creates a programmer scope.
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:
kCADScopeSelectedObjects and possibly other scopes
kCADScopeAllObjects
kCADScopeSelectedObjects and kCADScopeSelectedObjects (as in next item)
kCADScopeSelectedObjects and
kCADScopeSelectedObjects
if the object’s new layer or sublayer has a more restricted Layer mode.
This side effect can lead to interesting programming errors.
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.
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.
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.
Area modes have been discussed in the Mode palette section of the User reference chapter.
Methods
CADGetMode, CADSetMode.
(under construction)
For an overview of area preferences, see the Thematical method index.
(under construction)
(under construction)
(under construction)
(under construction)

(under construction)
(under construction)
(under construction)

Also see CAD hatch ID constants
(under construction)
(under construction)
(under construction)
(under construction)
(under construction)
(under construction)
(under construction)
(under construction)
(under construction)
(under construction)
(under construction)
(under construction)
(under construction)
(under construction)
(under construction)
Thematical method index
Programming style
Event control
Special programming tasks
CADGetRef
, CADSetRef
, CADRefFromFile
, CADRefFromBlob
,
CADRefFromPict
.
CADGetCADFile
, CADPutCADFile
,
CADLoadFromFile
, CADLoadFromBlob
, CADLoadFromPict
,
CADLoadFromRes
,
CADStoreToFile
, CADStoreToBlob
, CADStoreToPict
,
CADFileToBlob
, CADBlobToFile
,
CADFileToPict
, CADPictToFile
,
CADPictToBlob
.
CADAddArray
, CADRemoveArray
,
CADGetArray
, CADSetArray
, CADGetArrayIDs
.
CADGetDXFFile
, CADImportDXF
, CADAcceptDXF
,
CADCancelDXF
.
CADGetImageFile
, CADGetImageFileInfo
, CADGetImageInfo
,
CADImportImage
.
CADToPixels
.
%CAD
, %CADView
, %CADBackground
.
CADGetDrawSize
, CADSetDrawSize
.
CADGetDisplay
, CADSetDisplay
,
CADGetTitleSplit
, CADSetTitleSplit
.
CADScroll
, CADScrollTo
, CADGetScroll
,
CADZoom
, CADAutoZoom
, CADGetZoom
.
CADLastArea
, CADClear
, CADNewOffscreen
,
CADEndOffscreen
.
CADGetBackColor
, CADSetBackColor
, CADGetScale
,
CADSetScale
, CADGetUnit
, CADSetUnit
.
CADGetLineTypeIDs
, CADGetLineTypeDefinition
.
CADGetZoomPrefs
, CADSetZoomPrefs
,
CADGetSnapPrefs
, CADSetSnapPrefs
,
CADGetDragPrefs
, CADSetDragPrefs
,
CADGetDimPrefs
, CADSetDimPrefs
,
CADGetDrawPrefs
, CADSetDrawPrefs
,
CADGetAreaPrefs
, CADSetAreaPrefs
,
CADGetMouseWheelPrefs
, CADSetMouseWheelPrefs
.
CADGetMeasurePrefs
, CADSetMeasurePrefs
.
CADGetDefaults
, CADSetDefaults
.
CADGetMode
, CADSetMode
.
CADGetRedraw
, CADSetRedraw
, CADRedrawArea
.
CADGotoPage
.
Commands, events, errors and undos
CADCommand
.
CADGetOnEvent
, CADSetOnEvent
, CADOnEvent
.
CADGetOnError
, CADSetOnError
, CADOnError
.
CADGetUndoPrefs
, CADSetUndoPrefs
,
CADTriggerUndo
, CADResetUndo
.
CADGetPrintSpecs
, CADSetPrintSpecs
.
CADGetClipBox
, CADSetClipBox
.
CADPageSetup
, CADCopyPageSetup
, CADGetPaperSizes
.
CADPrint
, CADPrintToPDF
.
CADAddLayer
, CADAddSubLayer
, CADRemoveLayer
,
CADGetLayers
, CADGetSubLayers
.
CADGetLayerAttributes
, CADSetLayerAttributes
,
CADGetLayerKey
, CADSetLayerKey
.
CADGetLayerOrder
, CADSetLayerOrder
.
CADGetCurrentLayer
, CADSetCurrentLayer
.
CADAddBlock
, CADRemoveBlock
,
CADGetBlocks
.
CADGetBlockInfo
, CADSetBlockName
,
CADGetBlockKey
, CADSetBlockKey
.
CADAddScope
, CADRemoveScope
, CADEmptyScope
,
CADGetScopeIDs
, CADCopyScope
.
CADToScope
, CADFromScope
,
CADInScope
, CADScopeLogic
.
CADSelect
.
CADCount
, CADTypeOfScope
.
CADGetObjIDsArray
, CADOneObjID
, CADGetObjID
.
%CADColors
.
CADGetColorItem
, CADSetColorItem
,
CADGetItemColor
, CADSetItemColor
,
CADGetColorsDim
, CADSetColorsDim
.
CADIndexToColor
, CADColorToIndex
.
CADRGBToColor
, CADColorToRGB
.
CADDXFToColor
, CADColorToDXF
.
CADGetSysBackColor
.
CADBlendColor
, CADBlend
.
CADGetObjType
, CADGetObjInfo
, CADFindByType
.
CADGetKey
, CADSetKey
, CADGetObjKey
, CADSetObjKey
,
CADGetKeyArray
, CADSetKeyArray
, CADFindByKey
.
CADGetLock
, CADSetLock
, CADGetObjLock
, CADSetObjLock
,
CADFindByLock
.
CADGetLayer
, CADSetLayer
.
CADMoveToFront
, CADMoveToBack
.
CADAddLine
, CADAddSquare
, CADAddRectangle
,
CADAddPolyLine
, CADAddCircle
, CADAddCircleArc
,
CADAddEllipse
, CADAddEllipseArc
,
CADAddString
, CADAddInsertXY
, CADAddImage
,
CADAddInsert
.
CADObjLine
, CADObjSquare
, CADObjRectangle
,
CADObjPolyLine
, CADObjCircle
, CADObjCircleArc
,
CADObjEllipse
, CADObjEllipseArc
, CADObjString
,
CADObjImage
, CADObjInsert
.
CADGetLine
, CADGetSquare
, CADGetRectangle
,
CADGetPolyLine
, CADGetCircle
, CADGetCircleArc
,
CADGetEllipse
, CADGetEllipseArc
, CADGetString
,
CADGetStringXY
, CADGetImage
, CADGetImageXY
,
CADGetInsertID
, CADGetInsert
, CADGetInsertXY
.
CADSetLine
, CADSetSquare
, CADSetRectangle
,
CADSetPolyLine
, CADSetCircle
, CADSetCircleArc
,
CADSetEllipse
, CADSetEllipseArc
, CADSetString
,
CADSetStringXY
, CADSetImage
, CADSetImageXY
,
CADSetInsertID
, CADSetInsert
, CADSetInsertXY
.
CADGetPolyAngle
, CADSetPolyAngle
.
CADRemoveObj
.
CADGetFill
, CADSetFill
.
CADGetColor
, CADSetColor
, CADGetInsertColor
,
CADSetInsertColor
.
CADGetLineWidth
, CADSetLineWidth
.
CADGetLineType
, CADSetLineType
.
CADGetMarking
, CADSetMarking
.
CADGetHatch
, CADSetHatch
.
CADGetFont
, CADSetFont
.
CADBounds
, CADPolyBounds
, CADStringBounds
, CADObjBox
.
CADObjCenter
, CADPolyCalc
.
CADObjSurface
, CADObjPerimeter
, CADMetrics
,
CADMetricsByMatrix
.
CADPolyUndouble
, CADSplitPoly
, CADSplitPolyXY
.
CADCalcImageResolution
, CADCalcImageMatrix
.
CADGetBlockAddedSnaps
, CADSetBlockAddedSnaps
CADGetBlockSnapMask
, CADSetBlockSnapMask
,
CADFindSnap
, CADFindCrossings
.
CADHatchToLine
.
CADGetKeyMask
, CADSetKeyMask
.
CADMoveTo
, CADCopyTo
, CADCopyObjTo
,
CADMoveByMatrix
, CADCopyByMatrix
, CADCopyObjByMatrix
.
CADCopyLayers
, CADCopyAttributes
, CADCopyBlocks
,
CADCopyArrays
.
CADCompareBlock
, CADCompareObj
.
CADSin
, CADCos
, CADArcSin
, CADArcCos
,
CADArcTan2
.
CADDistanceXY
, CADRotateXY
, CADScaleXY
,
CADTransformXY
.
CADDecimalSum
, CADDecimalDifference
.
CADPointOnLine
, CADPointInRect
, CADPointInPoly
.
CADRectAndRect
, CADLineAndRect
, CADLineAndLine
,
CADLineAndArc
, CADArcAndArc
,
CADCheckPoly
, CADPolyAndPoly
.
Linear transformation matrices
CADIdentityMatrix
, CADStandardMatrix
.
CADTranslateMatrix
, CADRotateMatrix
, CADScaleMatrix
,
CADMirrorMatrix
, CADShearMatrix
, CADTransformMatrix
,
CADFlipMatrix
, CADStretchMatrix
, CADInvertMatrix
.
CADCalcMatrix
.
CADGetMatrixPlane
.
CADTranslate
, CADRotate
, CADScale
,
CADMirror
, CADShear
, CADTransform
.
CADRotateObj
, CADStretchObj
, CADLengthenObj
,
CADFlipObj
.
CADAlign
.
CADSpirograph
.
CADGetVersion
.
(under construction)
(under construction)
Also see the list of Error result codes.
(under construction)
Also see the chapter on Events.
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.
(under construction)
Also see the chapter on Events.
(under construction)
(under construction)
(under construction)
(under construction)
(under construction)
(under construction)
(under construction)
(under construction)
(under construction)
(under construction)
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
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.
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.
The following constants are generic plugin and 4D error codes. Nothe that they are documented, but not predefined as 4D constant.
| 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.
| Value | Constant | Type | Description
|
0 | kCADRootBlockID | longint |
|
Used by
Used by many 4D CAD methods.
| Value | Constant | Type | Description
|
1 | kCADGetAllBlocks | longint |
|
2 | kCADGetDXFBlocks | longint |
|
3 | kCADGetNonDXFBlocks | longint |
|
Used by
CADGetBlocks.
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.
| Value | Constant | Type | Description
|
1 | kCADTypeOfBoundsLogicalBounds | longint |
|
2 | kCADTypeOfBoundsPhysicalBounds | longint |
|
3 | kCADTypeOfBoundsDrawBounds | longint |
|
4 | kCADTypeOfBoundsAlignBounds | longint |
|
Used by
CADBounds, CADPolyBounds and CADStringBounds.
| 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.
Used by
CADCommand.
Used by
CADGetAreaPrefs and CADSetAreaPrefs.
Used by
CADGetDragPrefs and CADSetDragPrefs.
Used by
CADGetDisplay and CADSetDisplay.
| 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.
| Value | Constant | Type | Description
|
0 | kCADErrorResultDontFilter | longint |
|
1 | kCADErrorResultDoFilter | longint |
|
Used by
CADOnError.
Used by
CADOnEvent.
Also see
The chapter on Events.
Used by
CADGetOnEvent and CADSetOnEvent.
Used by
CADOnEvent.
Also see
The chapter on Events.
| Value | Constant | Type | Description
|
1 | kCADEventPhaseBefore | longint |
|
2 | kCADEventPhaseDuring | longint |
|
3 | kCADEventPhaseAfter | longint |
|
4 | kCADEventPhaseTrack | longint |
|
Used by
CADGetOnEvent, CADSetOnEvent and CADOnEvent.
| Value | Constant | Type | Description
|
0 | kCADEventResultDontFilter | longint |
|
1 | kCADEventResultDoFilter | longint |
|
Used by
CADOnEvent.
| 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.
| 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.
| Value | Constant | Type | Description
|
1 | kCADMaskFlipLeftRight | longint |
|
2 | kCADMaskFlipTopBottom | longint |
|
Used by
CADFlipObj and CADFlipMatrix.
Used by
CADGetDefaults, CADSetDefaults,
CADAddString, CADObjString, CADStringBounds,
CADGetFont and CADSetFont
| Value | Constant | Type | Description
|
0 | kCADGotoPageAutomatic | longint |
|
Used by
CADGotoPage.
| Value | Constant | Type | Description
|
1 | kCADHatchAlignLeft | longint |
|
1 | kCADHatchAlignBottom | longint |
|
2 | kCADHatchAlignMid | longint |
|
3 | kCADHatchAlignRight | longint |
|
3 | kCADHatchAlignTop | longint |
|
Used by
CADGetHatch and CADSetHatch.
Used by
CADGetDefaults, CADSetDefaults,
CADAddSquare, CADAddRectangle, CADAddPolyLine,
CADAddCircle, CADAddCircleArc, CADAddEllipse, CADAddEllipseArc,
CADObjSquare, CADObjRectangle, CADObjPolyLine,
CADObjCircle, CADObjCircleArc, CADObjEllipse, CADObjEllipseArc,
CADGetHatch and CADSetHatch.
Used by
CADGetHatch and CADSetHatch.
Used by
CADGetKeyMask and CADSetKeyMask.
| 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.
| Value | Constant | Type | Description
|
0 | kCADNoCurrentLayerID | longint |
|
4095 | kCADNotOnSubLayerID | longint |
|
Used by
CADGetCurrentLayer,
CADGetLayer, CADSetLayer and CADGetObjInfo.
| 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.
| Value | Constant | Type | Description
|
1 | kCADLayerToRemoveMustBeEmpty | longint |
|
2 | kCADLayerToRemoveMakeEmpty | longint |
|
Used by
CADRemoveLayer.
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.
| Value | Constant | Type | Description
|
1 | kCADLineTypeStandardType | longint |
|
2 | kCADLineTypeDXFType | longint |
|
3 | kCADLineTypeApplicationType | longint |
|
Used by
CADGetLineTypeDefinition.
| 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.
Used by
CADGetDefaults, CADSetDefaults,
CADObjLine, CADObjCircleArc, CADObjEllipseArc,
CADGetMarking and CADSetMarking.
Used by
CADGetMeasurePrefs, CADSetMeasurePrefs and CADOnEvent.
Used by
To be used by the application, e.g. in Error handling.
| Value | Constant | Type | Description
|
1 | kCADMaskMirrorInVerticalAxis | longint |
|
2 | kCADMaskMirrorInHorizontalAxis | longint |
|
4 | kCADMaskMirrorInAscendDiagonal | longint |
|
8 | kCADMaskMirrorInDescendDiagonal | longint |
|
Used by
CADMirror and CADMirrorMatrix.
Used by
CADLoadFromFile, CADLoadFromPict, CADLoadFromBlob, CADLoadFromRes,
CADGetMode, CADSetMode and CADOnEvent.
Used by
CADGetDisplay and CADSetDisplay.
| Value | Constant | Type | Description
|
0 | kCADModifierNoKey | longint |
|
256 | kCADModifierCommandKey | longint |
|
512 | kCADModifierShiftKey | longint |
|
2048 | kCADModifierOptionKey | longint |
|
Used by
CADGetAreaPrefs, CADSetAreaPrefs,
CADGetMouseWheelPrefs, CADSetMouseWheelPrefs,
and CADOnEvent.
| Value | Constant | Type | Description
|
1 | kCADUseMouseWheelForScroll | longint |
|
2 | kCADUseMouseWheelForZoom | longint |
|
Used by
CADGetMouseWheelPrefs and CADSetMouseWheelPrefs.
| Value | Constant | Type | Description
|
1 | kCADMouseWheelDownZoomsIn | longint |
|
2 | kCADMouseWheelDownZoomsOut | longint |
|
Used by
CADGetMouseWheelPrefs and CADSetMouseWheelPrefs.
Used by
CADGetDefaults and CADSetDefaults.
Used by
CADGetLock, CADSetLock, CADGetObjLock, CADSetObjLock and
CADFindByLock.
| Value | Constant | Type | Description
|
1 | kCADGetFirstObj | longint |
|
2 | kCADGetNextObj | longint |
|
3 | kCADGetPrevObj | longint |
|
4 | kCADGetLastObj | longint |
|
Used by
CADGetObjID.
Used by
CADGetObjType, CADGetObjInfo and CADFindByType.
| Value | Constant | Type | Description
|
1 | kCADPaperOrientationPortrait | longint |
|
2 | kCADPaperOrientationLandscape | longint |
|
3 | kCADPaperOrientReversePortrait | longint |
|
4 | kCADPaperOrientReverseLandscape | longint |
|
Used by
CADGetPaperSizes.
| Value | Constant | Type | Description
|
1 | kCADPaperSizeUnitmm | longint |
|
2 | kCADPaperSizeUnitInch | longint |
|
3 | kCADPaperSizeUnitPixel | longint |
|
Used by
CADGetPaperSizes.
| Value | Constant | Type | Description
|
0 | kCADPDFFlagNone | longint |
|
1 | kCADPDFFlagPrintProgressOSX | longint |
|
Used by
CADPrintToPDF.
| Value | Constant | Type | Description
|
2 | kCADPDFEngineAppleOSX | longint | Mac OS X built-in PDF engine (Mac only)
|
Used by
CADPrintToPDF.
| Value | Constant | Type | Description
|
0 | kCADPointOutsidePoly | longint |
|
1 | kCADPointOnPolyEdge | longint |
|
2 | kCADPointInsidePoly | longint |
|
Used by
CADPointInPoly.
| Value | Constant | Type | Description
|
0 | kCADPolyCheckNoResult | longint |
|
1 | kCADPolyCheckOK | longint |
|
2 | kCADPolyCheckSelfCrossing | longint |
|
3 | kCADPolyCheckDoublePoint | longint |
|
4 | kCADPolyCheckDoubleLine | longint |
|
Used by
CADCheckPoly.
Used by
CADSplitPoly and CADSplitPolyXY.
Used by
CADGetPrintSpecs and CADSetPrintSpecs.
| Value | Constant | Type | Description
|
1 | kCADPrintOrientationRotate0 | longint |
|
2 | kCADPrintOrientationRotate90 | longint |
|
3 | kCADPrintOrientationRotate180 | longint |
|
4 | kCADPrintOrientationRotate270 | longint |
|
Used by
CADGetPrintSpecs and CADSetPrintSpecs.
| Value | Constant | Type | Description
|
0 | kCADDefaultPrinterResolution | longint |
|
Used by
CADGetPrintSpecs and CADSetPrintSpecs.
| 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.
Used by
CADLoadFromFile, CADLoadFromPict, CADLoadFromBlob, CADLoadFromRes,
CADStoreToFile, CADStoreToPict, CADStoreToBlob and
CADFindCrossings.
| 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.
| Value | Constant | Type | Description
|
1 | kCADRedrawModeRedrawNot | longint |
|
2 | kCADRedrawModeRedrawAutomatic | longint |
|
3 | kCADRedrawModeRedrawNow | longint |
|
4 | kCADRedrawModeRedrawWithWatch | longint |
|
Used by
CADGetRedraw, CADSetRedraw and CADRedrawArea.
| Value | Constant | Type | Description
|
1 | kCADScopeLogicOr | longint |
|
2 | kCADScopeLogicAnd | longint |
|
3 | kCADScopeLogicXor | longint |
|
4 | kCADScopeLogicAndNotB | longint |
|
5 | kCADScopeLogicAndNotA | longint |
|
Used by
CADScopeLogic.
| 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.
| 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.
| Value | Constant | Type | Description
|
1 | kCADScrollAlignLeft | longint |
|
1 | kCADScrollAlignBottom | longint |
|
2 | kCADScrollAlignMid | longint |
|
3 | kCADScrollAlignRight | longint |
|
3 | kCADScrollAlignTop | longint |
|
Used by
CADScrollTo and CADGetScroll.
| Value | Constant | Type | Description
|
1 | kCADSelectActionSelect | longint |
|
2 | kCADSelectActionSelectAdd | longint |
|
3 | kCADSelectActionDeselect | longint |
|
Used by
CADSelect and CADOnEvent.
| Value | Constant | Type | Description
|
1 | kCADSelectMethodByClick | longint |
|
2 | kCADSelectMethodByIntersect | longint |
|
3 | kCADSelectMethodByEnclose | longint |
|
4 | kCADSelectMethodByLine | longint |
|
Used by
CADSelect.
| Value | Constant | Type | Description
|
1 | kCADShearX | longint |
|
2 | kCADShearY | longint |
|
Used by
CADShear and CADShearMatrix.
| Value | Constant | Type | Description
|
0 | kCADSnapMinimumPixelRadius | longint |
|
5 | kCADSnapDefaultPixelRadius | longint |
|
100 | kCADSnapMaximumPixelRadius | longint |
|
Used by
CADGetSnapPrefs and CADSetSnapPrefs.
Used by
CADFindSnap.
Used by
CADGetBlockSnapMask and CADSetBlockSnapMask.
| Value | Constant | Type | Description
|
1279 | kCADSpirographDefaultColorMax | longint |
|
1535 | kCADSpirographLastColorMax | longint |
|
Used by
CADSpirograph.
Used by
CADStretchObj and CADOnEvent.
| 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.
Used by
CADGetTitleSplit and CADSetTitleSplit.
| Value | Constant | Type | Description
|
0 | kCADTriggerUndoRedo | longint |
|
1 | kCADTriggerUndoOnly | longint |
|
2 | kCADTriggerNoUndo | longint |
|
Used by
CADTriggerUndo and CADCommand.
Used by
CADOnEvent.
| Value | Constant | Type | Description
|
1 | kCADConversionUnitmm | longint |
|
2 | kCADConversionUnitInch | longint |
|
3 | kCADConversionUnitPixel | longint |
|
Used by
CADGetUnit and CADSetUnit.
| 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
| 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.
| 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.
| Value | Constant | Type | Description
|
0 | kCADZoomByCurrentMethod | longint |
|
1 | kCADZoomByFreeFactor | longint |
|
2 | kCADZoomBySmallDecimalSteps | longint |
|
3 | kCADZoomByLargeDecimalSteps | longint |
|
Used by
CADZoom, CADAutoZoom, CADGetZoomPrefs and CADSetZoomPrefs.
A Thematical method index was given in the chapter on Programming tasks. The lists that follow are alphabetical.
Areas
Callback prototypes
Methods

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
%CAD area on the 4D form large enough to fill up the largest display
(for example 2000 or 3000 pixels wide)
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.

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.

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.

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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
| IO | Parameter | Type | Description
|
| in | theCos | real |
|
| out | function result | real |
|
| IO | Parameter | Type | Description
|
| in | theSin | real |
|
| out | function result | real |
|
| IO | Parameter | Type | Description
|
| in | theY | real |
|
| in | theX | real |
|
| out | function result | real |
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
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.
| 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
|
| IO | Parameter | Type | Description
|
| in | theCADArea | longint | Area ID
|
| out | function result | OSErr | Error result code, also see Error handling
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| IO | Parameter | Type | Description
|
| in | theSourceArea | longint |
|
| in | theTargetArea | longint |
|
| out | function result | OSErr | Error result code, also see Error handling
|
| IO | Parameter | Type | Description
|
| in | theSourceArea | longint |
|
| in | theTargetArea | longint |
|
| out | function result | OSErr | Error result code, also see Error handling
|
| IO | Parameter | Type | Description
|
| in | theSourceArea | longint |
|
| in | theTargetArea | longint |
|
| out | function result | OSErr | Error result code, also see Error handling
|
| 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
|
| IO | Parameter | Type | Description
|
| in | theSourceArea | longint |
|
| in | theTargetArea | longint |
|
| out | function result | OSErr | Error result code, also see Error handling
|
| 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
|
| 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
|
| IO | Parameter | Type | Description
|
| in | theSourceArea | longint |
|
| in | theTargetArea | longint |
|
| out | function result | OSErr | Error result code, also see Error handling
|
| 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
|
| 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
|
| IO | Parameter | Type | Description
|
| in | theDegrees | real |
|
| out | function result | real |
|
| 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
|
| 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
|
| IO | Parameter | Type | Description
|
| in | theR1 | real |
|
| in | theR2 | real |
|
| out | function result | real |
|
| IO | Parameter | Type | Description
|
| in | theR1 | real |
|
| in | theR2 | real |
|
| out | function result | real |
|
| IO | Parameter | Type | Description
|
| in | theX1 | real |
|
| in | theY1 | real |
|
| in | theX2 | real |
|
| in | theY2 | real |
|
| out | function result | real |
|
| 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
|
| IO | Parameter | Type | Description
|
| out | theOffscreenAreaToDispose | longint |
|
| out | function result | OSErr | Error result code, also see Error handling
|
| 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
|
| 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.
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| IO | Parameter | Type | Description
|
| in | theColorPaletteArea | longint |
|
| out | theItemSelected | integer |
|
| out | function result | OSErr | Error result code, also see Error handling
|
| IO | Parameter | Type | Description
|
| in | theColorPaletteArea | longint |
|
| out | theDimmedFlag | integer | A boolean constant
|
| out | function result | OSErr | Error result code, also see Error handling
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| IO | Parameter | Type | Description
|
| in | theCADArea | longint | Area ID
|
| out | theErrorProcStr | Str255 |
|
| out | function result | OSErr | Error result code, also see Error handling
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| IO | Parameter | Type | Description
|
| out | function result | longint | Color or a color constant
|
| 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
|
| 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
|
| 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
|
| 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
|
| IO | Parameter | Type | Description
|
| out | function result | Str255 |
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| IO | Parameter | Type | Description
|
| out | function result | longint |
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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.
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| IO | Parameter | Type | Description
|
| out | theNewOffscreenArea | longint |
|
| out | function result | OSErr | Error result code, also see Error handling
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| IO | Parameter | Type | Description
|
| in | theCADArea | longint | Area ID
|
| out | function result | OSErr | Error result code, also see Error handling
|
| 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.
| 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
|
| 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.
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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.
| IO | Parameter | Type | Description
|
| in | theCADArea | longint | Area ID
|
| in | theArrayID | longint |
|
| out | function result | OSErr | Error result code, also see Error handling
|
| 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
|
| 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
|
| 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
|
| 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
|
| IO | Parameter | Type | Description
|
| in | theCADArea | longint | Area ID
|
| out | function result | OSErr | Error result code, also see Error handling
|
| 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
|
| 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
|
| 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
|
| 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 |
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| IO | Parameter | Type | Description
|
| in | theCADArea | longint | Area ID
|
| in | theBackColor | longint |
|
| out | function result | OSErr | Error result code, also see Error handling
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| IO | Parameter | Type | Description
|
| in | theColorPaletteArea | longint |
|
| in | theItemToSelect | integer |
|
| out | function result | OSErr | Error result code, also see Error handling
|
| IO | Parameter | Type | Description
|
| in | theColorPaletteArea | longint |
|
| in | theDimmedFlag | integer | A boolean constant
|
| out | function result | OSErr | Error result code, also see Error handling
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| IO | Parameter | Type | Description
|
| in | theCADArea | longint | Area ID
|
| in | theErrorProcStr | Str255 |
|
| out | function result | OSErr | Error result code, also see Error handling
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| IO | Parameter | Type | Description
|
| in | theDegrees | real |
|
| out | function result | real |
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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.
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
| 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
|
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.
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
%CAD area is not the current object on a 4D form
%CADView and %CADBackground
Tab, Shift-tab and Return key combinations
Enter and Command-dot keys
kCADEventIDObjTranslate events
instead)
kCADEventPhaseBefore
Changing a value in the Measure pane, triggers a kCADEventPhaseBefore phase of the
kCADEventIDChangeOfMeasure event, except that
kCADEventIDObjTranslate event
kCADEventIDObjRotate 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 | 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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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:
CADSetRef values (useful in identifying pasted data)
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.
|
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:
CADSetRef values (useful in identifying pasted data)
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.
|
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:
CADSetRef values (useful in identifying the pasted data)
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.
|
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.
|
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.
|
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
%CAD area is not the current object on a 4D form
%CADView and %CADBackground
Tab, Shift-tab and Return key combinations
Enter and Command-dot keys
kCADEventIDObjTranslate event
instead)
kCADEventIDEditClear event instead).
kCADEventIDModeChange event instead).
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.
|
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.
|
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.
|
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.
|
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.
|
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.
kCADEventPhaseBefore
A kCADEventPhaseBefore phase of the kCADEventIDObjTranslate event is triggered when
kCADEventIDChangeOfMeasure).
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.
|
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.
|
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 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.
|
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.
|
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 phase when the string edit-box is about to be displayed
kCADEventPhaseAfter phase when the string edit-box is canceled or accepted.
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.
|
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.
|
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.
| 4D Draw area | Emulation
|
| _4D Draw | _4DDraw
|
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 |