API Class
Public Class API
This language is not supported or no code example is available.
public static class API
This language is not supported or no code example is available.
public ref class API
This language is not supported or no code example is available.
Name | Description | |
---|---|---|
Command(string, bool) | Run a command Check the toolbar files for command names | |
Copy(List<Object>) | Copies a list of entites | |
Copy(object) | Copies an entity | |
CreatePart(Region2d, string, int, string, DateTime) | Create parts | |
CreateSheet(string, double, double, double) | Creates a sheet | |
CreateToolpath(object) | Generates toolpaths in the part using the Contour Cut settings | |
CurrentDrawing() | Returns the filename of the current drawing | |
Cutorder(List<Object>) | Creates a cutorder | |
CutorderNCFile(object) | The NC-file of the cutorder | |
CutorderParts(object) | Return the parts in a cutorder | |
Delete(object) | Delete an entity | |
DrawArc(Arc2d, int) | Draws an circular arc | |
DrawCircle(double, double, double, int) | Adds a circle to the current drawing | |
DrawEllipse(double, double, double, double, double, double, double, int) | Draws an ellipse or elliptical arc | |
DrawLine(double, double, double, double, int) | Adds a line to the current drawing | |
DrawPoint(double, double, int) | Draws a point | |
DrawPoly(Poly2d, int) | Adds a polyline to the current drawing | |
DrawRectangle(double, double, double, double, int) | Adds a rectangle (polyline) to the current drawing | |
DrawRegion(Region2d, int) | Adds a region to the current drawing | |
DrawSolidRegion(Region2d, int) | Adds a region as a solid hatch entity | |
DrawText(string, string, double, double, double, double, int) | Adds a text to the current drawing | |
DrawText(string, double, double, double, int) | Adds a text to the current drawing | |
EntityType(object) | Returns the type of entity as a string. Example "PART", "SHEET", "LINE" | |
Extents(List<Object>) | Calculates a bounding box for a list of entities | |
Extents(object) | Calculates a bounding box of the entity. If entity is null a bounding box of all entites in the drawing is calculated | |
GetColor(object) | Returns the color of the entity as an IGEMS indexed color. If the color is negative it is a RGB int color. 1=Red 2=Yellow 3=Green 4=Cyan 5=Blue 6=Magenta | |
GetCorner(string, double, double) | Lets the user pick a rectangle from x,y | |
GetDataset(object) | Creates a DataSet with report data for a cutorder. This is the same data used in the postprocessor report | |
GetPartInfo(object) | Returns a PartInfo object with part information | |
GetPartsInsideSheet(object) | Returns a list of all parts on the drawing that is inside the sheet | |
GetPoint(string) | Lets the user pick a point | |
GetPoint(string, double, double) | Lets the user pick a point using x,y as a bespoint | |
GetSheetInfo(object) | Returns a SheetInfo object with sheet information | |
GetVar(object, string) | Returns info about an entity Example to get the type of entity use key="TYPE" Note! the key value is case sensitive | |
Image(List<Object>, int, int, int, Nullable<Color>) | Creates an Image from entities | |
Image(object, int, int, int, Nullable<Color>) | Creates an Image from an entity | |
InsertDrawing(string) | Inserts a drawing into the current drawing | |
LoadMachine(string) | Load a machine into the current drawing | |
LoadMaterial(string, string, double) | Load a material into the current drawing | |
LockSheet(object) | Locks a sheet. Does not delete any sheets or parts. | |
Mirror(object, double, double, double, double) | Mirrors an entity through line from x1,y1 to x2,y2 | |
Move(List<Object>, double, double) | Move a list of entities | |
Move(object, double, double) | Move an entity | |
NestAddPart(object, object) | Add a Part to the nesting | |
NestAddSheet(object, object) | Add a sheet to the nesting | |
NestCreate(double) | Create a Nest object used for AutoNesting | |
NestRun(object, double) | Perform Auto nesting | |
NestSet(object, string, object) | Set AutoNest settings...more info needed | |
NewDrawing() | Creates a new drawing | |
OpenDrawing(string) | Opens a drawing of any of the supported file types | |
PartImage(object, int) | Create an image of a part. | |
PickCutorder(string) | Lets the user pick a cutorder | |
PickPart(string) | Lets the user pick a part | |
PickSheet(string) | Lets the user pick a sheet | |
Process(object, string, int, bool) | Post process a cutorder | |
Redraw() | Redraws the screen to immediately display any changes | |
RegisterCommand(string, string, Image, Action) | Register commands that can be called from the APPS in IGEMS | |
Report(string, DataSet, List<String>, bool) | Runs a report | |
Rotate(object, double, double, double) | Roates an entity with angle_radians around rx,ry | |
SaveDrawing(string, List<Object>) | Saves a drawing or a list of entities | |
SaveMachine() | Save the current machine to file | |
SaveMaterial() | Save the current material to file | |
Scale(object, double, double) | Scale an entity using scalefactors sx and sy | |
Select(string, Func<ObjectBoolean>) | Select entities | |
SelectAll(Func<ObjectBoolean>) | Selects all entities in the current drawing | |
SetColor(object, int) | Sets the color of an entity 1=Red 2=Yellow 3=Green 4=Cyan 5=Blue 6=Magenta | |
SetPartInfo(PartInfo) | Update the part with a PartInfo object | |
SetSelected(object, bool) | Sets the selection status of an entity | |
SetSheetInfo(SheetInfo) | Update the sheet with the SheetInfo | |
SetVar(object, string, object) | Sets a value in an entity. Can be used to for example change the name of a part | |
ToRegion(object) | Converts an entity to a Region2d | |
Translate(object, double, double) | Translates an entity | |
ZoomExtents() | Zooms extents |
IGEMSAPI.API