| |
|
|
5 Scripting Classes
Overview
From within a script you can access a limited set of functionality of
QCad. This includes some basic classes like the View
or Document class that have already been mentioned in the previous
chapter. The following table gives a brief overview of all classes
available in the scripting environment.
|
Class
|
Brief Description
|
| Application |
Functions that operate on the application level rather than the
document level (e.g. functions that are also accessible in the file
menu of the user interface). |
| Arc, Circle, Point, Line |
Provide functions to create instances of the respective entity
types. |
| Document |
Managing current drawing attributes (pen, layer), adding and
managing entities in the current drawing. Iteration through
entities. |
| Layer |
Represents a layer with a name and a default pen. |
| Pen |
Wrapper around pen attributes (color, line type, line width). |
| Selection |
Selection and de-selection of entities. |
| Toolbar |
Handling toolbars to customize the user interface of
QCad. |
| Tools |
Generic system wide tools. |
| Vector |
Representation of a two dimensional mathematical vector. Generic
vector transformation functions. |
|