| |
Functionality
There are hundreds of SilverScreen commands,
all of which are available to developers through the ss_command
function. The syntax of a single command can be easily found
by executing the command in SilverScreen and looking at the command
log.
Here is an overview of the major functional
areas.
Functional
Area |
Available
Functionality |
| Screens/Windows |
Supports
multiple screens where each screen may be split into
multiple windows, each window with a separate drawing. |
| Drawings |
Multiple
drawings can be open simultaneously. Copying between
drawings. Multiple reference drawings. |
| Creation
of Geometry |
Allows
creation of nearly 30 geometric drawing shapes. |
| 2D
Boolean |
Union,
intersection, difference and trim of closed 2D shapes. |
| Sweeping |
Create
solids by sweeping closed surfaces. Variations include
linear, circular, radial, spiral, and path sweeping. |
| Solid
Modeling |
Union,
intersection, difference, trim, slice and clip of solids on
a simple or a hierarchical basis. |
| Viewing |
Supports
parallel and perspective in natural, oblique and axial.
Zooming and Isolation of blocks, objects or groups. |
| Rendering |
Support
for hidden-line, hidden-surface, shaded and OpenGL texture
rendering. |
| Printing/Plotting |
Printing
of screens or windows, scaled or non-scaled, rendered,
hidden-line or wireframe. |
| Detailing/Annotation |
Full
support for multi-block 3D detailing including ASME Y14.5. |
| Model
Libraries |
Models,
such as tables, cabinets, and chairs, can be imported from
model libraries. |
| Import/Export |
Import/export
of DXF, IGES, STL and a wide range of image formats. |
Typical ss_command Statements
Below are a number of everyday ss_command
statements. %z refers to a special xyz format that is available
in ss_command.
Functional
Area |
Typical
Statements |
| Screens/Windows |
ss_command("screen
create %s",ScreenName);
ss_command("window split four-way drawing"); |
| Drawings |
ss_command("open
drawing %s", DrawingName );
ss_command("open reference %s", ReferenceDrawingName);
|
| Creation
of Geometry |
ss_command("begin
polygon");
ss_command("point %z", &Point1);
ss_command("point %z", &Point2);
ss_command("point %z", &Point3);
ss_command("point %z", &Point4);
ss_command("end");
ss_command("at %z", &Point);
ss_command("draw circle radius %g", Radius);
|
| 2D
Boolean |
ss_command("boolean
union polygon \\temp.1 circle \\temp.20"); |
| Sweeping |
ss_command("sweep
linear polygon \\temp.1 displacement z2.0");
|
| Solid
Modeling |
ss_command("boolean
trim object \\body object \\arm"); |
| Viewing |
ss_command("zoom
drawing");
ss_command("isolate block \\doors");
ss_command("zoom visible");
ss_command("zoom magnify 1.5");
ss_command("view project perspective");
ss_command("view select isometric front right top");
|
| Rendering |
ss_command("render
drawing hidden-line");
ss_command("render drawing opengl resolution high"); |
|
|