![]() | Class drawingField | ![]() |
![]() ![]() Introduction ![]() ![]() ![]() no help | ![]() | drawingField Class Referencehead class of the drawing more... Public Member Functions
Public Attributes
Detailed DescriptionEach layout main windows has exactly one object of the class drawingField. This object can be accessed via the layout class. In the drawingField all drawing relevant information are accessible. The basic setup is stored in databaseunits, userunits and databaseunits. The different cell are accessabe via firstCell. currentCell holds a point to the curretnly displayed cell. All members of the drawingField class are useable in a simplyfied form without braces, commas and semicolons from the commandline-toolbar. The characters are essential, if used in a macro. Member Documentation
|
raster grid in databaseunits | The grid in x and y axis (gridX, gridY) is set to raster. The gridoffset (gridOffsetX, gridOffsetY) is reseted. |
set cell
Set the Cell with the name cell to the currentCell. currentCell is set to the new set cell.
cell cellname of the cell to be displayed. | Set the Cell with the name cell to the currentCell. currentCell is set to the new set cell. |
relink cellref
Selected cellreferences of the current cell are relinked to the cell with the name cell. There are not tests for circular or self references.
cell cellname to be linked | Selected cellreferences of the current cell are relinked to the cell with the name cell. There are not tests for circular or self references. |
cell up
A cell which uses the current cell is set as the current cell.
See also Cell Up.
merge select
Selected elements in the currentCell are merged. The orginal shape is use to build the path to inner polygons. The function works for a small amount of elements. Use the booleanHandler to merge a large amount of element.
See also Merge.
delete select
Selected elements/points in the currentCell are deleted.
See also Delete.
scale plus
The scale is increased,
See also Zoom In.
scale minus
The scale is decreased,
See also Zoom Out.
scale full
The display scale is adjusted to the size of the drawing.
See also Zoom Fit All.
scale select
The display scale is adjusted to the size of all selected elements.
See also Zoom Fit Selection.
scale ein
The current view is scaled to 1 drawingunit to 1 pixel
See also Zoom Eins.
scroll left
The current view is scrolled left.
See also Scroll Left.
scroll right
The current view is scrolled right.
See also Scroll Right.
scroll up
The current view is scrolled up.
See also Scroll Up.
scroll down
The current view is scrolled down.
See also Scroll Down.
set view
The current view is set to the scale and offset p(x,y).
get view
The current view is returned: scale and offset p(x,y).
toggle grid
Show/hide the visibility of the grid.
See also Show Grid.
auto grid
Activate the autogrid.
See also Grid Automatic.
undo
Undo the last modification. Multiply use is not possible.
See also Undo.
redo
Revoke the last undo.
See also Redo.
prepare undo.
Save the cell for the next undo.
reset undo
Reset the last undo.
open file
A file with the name s is opened.
save file
The drawing is saved to s.
import file
The file s is added to the current drawing.
update file
Cell with the same cellname with cell in the file s are replaced by the cell of this file.
find cell
exist cell
add cell
Add a cell to the drawing. A pointer to the new cellList is returned.
delete cell
The current cell is deleted.
add point
Set the Command Mode and add the point p(x,y) in drawing units.
add point userunits
Set the Command Mode and add the point p(x,y) in user units.
add relative point
Set the Command Mode and add the point p(x,y) in drawing units relative to the last point entered. The first entered point is set absolute.
add relative point userunits
Set the Command Mode and add the point p(x,y) in user units relative to the last point entered. The first entered point is set absolute.
add point
Set the Command Mode and add the point p relative to the last point entered. The first entered point is set absolute.
move last point
The last entered point is moved by point p(x,y).
add relative point userunits
The last entered point is moved by point p(x,y) in user units.
add point
The last entered point is moved by point p(x,y).
delete point
Delete the last entered point.
clear points
Delete all entered point.
add point
Set the Command Mode and add the point p.
add box
Add a box to the current cell. Two coordinates had to be entered before with the point command.
add polygon
Add a polygon to the current cell. Two coordinates had to be entered before with the point command.
add path
Add a path to the current cell. Two coordinates had to be entered before with the point command.
add text
Add a text to the current cell. One coordinate had to be entered before with the point command.
add cellref
Add a cellref to the current cell. One coordinate had to be entered before with the point command. This point is the reference point of the insert cellref.
add text
Add a text to the current cell. Two coordinates had to be entered before with the point command. The first point is the reference point of the insert cellref. The second point defines the spacings of the array.
add spiral
Add a spiral path to the current cell. Three coordinates had to be entered before with the point command.
add circle
Add a circular polygon to the current cell. Two coordinates had to be entered before with the point command. The first entered point is the center, the second point mark the radius.
add circle in box
Add a circular polygon to the current cell. Two coordinates had to be entered before with the point command. The two points mark a bounding square in which the circle is added.
fit to circle
Add a circular polygon to the current cell. The circle is fitted to the before entered points.
add sector
Add a sector polygon to the current cell. Three coordinates had to be entered before with the point command.
add arc
Add a arc path to the current cell. Three coordinates had to be entered before with the point command.
add polygon arc
Add a arc polygon to the current cell. Three coordinates had to be entered before with the point command.
add bezier 2nd order
Add a second order bezier path to the current cell. Three coordinates had to be entered before with the point command.
add bezier 3rd order
Add a third order bezier path to the current cell. Four coordinates had to be entered before with the point command.
top cell
delete except one layer
All element not on the layer "layer" will be delete in any cell of the current drawing. The function can be useful for preparing data for mask production.
swap layer
This function swap the layers i and k in the current cell.
swap layer select
This function swap the layers i and k of the selected elements in the current cell.
swap layer all cells
This function swap the layers i and k in all cells of the current drawing.
map layer
all elements are maped with layerTranslator t.
flatten
Selected cellrefs and cellrefarrays are flatten.
See also Cell Flat.
flatten multilevel
Selected cellrefs and cellrefarrays are flatten. If the the cellrefs contain more cellrefs, they are flatten as well.
See also Cell Flat Multilevel.
simple group selected elements
All selected elements are moved to a new cell. A correlating cellref will be added.
See also Group Simple.
group selected elements
All selected elements are moved to a new cell. A correlating cellref will be added. If a identical cell exists, a cellref to this cell is added and the selected elements are deleted.
See also Group.
group selected elements
All selected elements are moved to a new cell. A correlating cellref will be added. If a identical cell exists, a cellref to this cell is added and the selected elements are deleted.
Identical structures in the current cell are also replaced by a cellref. The number of replaced structures is returned.
See also Group Structure.
group selected elements
All selected elements are moved to a new cell. A correlating cellref will be added. If a identical cell exists, a cellref to this cell is added and the selected elements are deleted.
Identical structures in complete library are also replaced by a cellref. The number of replaced structures is returned.
See also Group Global.
convert to box
Selected polygons are converted to a box-element if possible.
See also Convert to Box.
convert to polygon
Selected path, box and text elements are converted to a polygons if possible.
See also Convert to Polygon.
to circle
Converts selected element polygon and box element to a circle. The circle is fitted in all existing points of the element.
See also Convert to Circle.
close to polygon
Closes selected path elements to a polygon.
move select
If one coordinate was added before with the point() or p() command, selected elements are moved by p1. If two coordinate were added before with the point() or p() command, selected elements are moved by p2-p1.
move x select
Selected elements are moved in x axis by p2-p1. Two coordinates had to be added before with the point() or p() command.
move y select
Selected elements are moved in y axis by p2-p1. Two coordinates had to be added before with the point() or p() command.
move orgin
The orgin of the current cell is move to the prio entered point. All references to this cell are adjusted.
cut select
Selected elements between p1 and p2 are separated. Two coordinates had to be added before with the point() or p() command.
mirror select
Selected elements are mirror between p1 and p2. Two coordinates had to be added before with the point() or p() command.
rotate select
Selected elements are rotate by angle at a point prior added with the point() or p() command.
angle rotating angle in deg. | Selected elements are rotate by angle at a point prior added with the point() or p() command. |
copy select
If one coordinate was added before with the point() or p() command, selected elements are copyed and moved by p1. If two coordinate were added before with the point() or p() command, selected elements are copyed and moved by p2-p1.
scale select
Three coordinates had to be added before with the point() or p() command.
set width
The width of selected path and text elements is set to w.
w width in databaseunits. | The width of selected path and text elements is set to w. |
set cap
In selected path elements the caps is set to w. (0 for no cap, 1 for round caps, 2 for square caps)
copy current cell
The current cell is copied. The copied cell is name oldcellname_copy.
See also Copy Current Cell.
extract current cell
The current is flatten multilevel and all other cell are removed
See also Extract Current Cell.
strip unneeded
All cell not needed in the current cell are deleted
See also Strip Unneeded.
strip identical elements
If the current cell contains two identical elements at the same position, it is impossible to see it. This function will detect this and remove one of the element.
extract active layer
All element on another than the active layer will be deleted
See also Extract Active Layer.
align to center XY
Selected element are aligned to the center of the two before entered points.
align to center X
Selected element are aligned to the center in the x-Axis of the two before entered points.
align to center Y
Selected element are aligned to the center in the y-Axis of the two before entered points.
align left
The left edge of the selected elements is aligned to the before entered point.
align top
The top edge of the selected elements is aligned to the before entered point.
align right
The right edge of the selected elements is aligned to the before entered point.
align bottom
The bottom edge of the selected elements is aligned to the before entered point.
align value
Selected elements are moved so that the distance of the before entered points is set to d
center XY
Selected element are aligned to the entered point.
center X
Selected element are aligned to the entered point in the x axis.
center Y
Selected element are aligned to the entered point in the y axis.
add Convex Polygon
A convex polygon around all prio entered point is added to the active layer.
add Bounding Box
A bounding box is add to the active layer.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
© 2008 Jürgen Thies