Table of Contents

OpenCAD2D.Remote

Type Kind Summary
CadAnswerKind enum What kind of answer the user gave to a question of a run.
CadApplication class A running OpenCAD2D, driven from another program the way a Tekla Open API program drives a running Tekla Structures: new CadApplication() connects, CadApplication.Documents lists the drawings it has open and each CadRemoteDocument reads and edits one of them.
CadAskKind enum What a tool asks the user inside a run: the kinds of prompt CadRemoteRun.Ask takes.
CadObjectFilter class What CadRemoteDocument.GetObjects asks for: the objects of one kind, on one layer, in one space.
CadRemoteAnswer class What the user answered to CadRemoteRun.Ask.
CadRemoteBlock class A block summary of a drawing of a running OpenCAD2D, as CadRemoteDocument.GetBlocks lists it without copying the block's objects: its name and how many entities it holds.
CadRemoteBounds class The boxes of the entities of a drawing as the app draws them (CadRemoteDocument.GetBounds): a handle and four numbers a row, kept as two arrays so that a drawing of 100 000 entities is two arrays and no 100 000 objects.
CadRemoteCommandResult class What CadRemoteDocument.SendCommand got back: whether the command ended, and what the command line wrote.
CadRemoteDocument class The multileader styles and table styles of a drawing.
CadRemoteDocuments class The drawings a running app has open, in the order of their ids (a drawing the app has not listed before gets the next id; drawings listed together get theirs by name, so two runs agree).
CadRemoteError class One fault of the app: an exception its crash log holds, or a request it could not answer.
CadRemoteErrors class What CadApplication.GetErrors reads: the app's crash log and the requests it could not answer.
CadRemoteException class What the remote channel throws when the app cannot be reached or refuses a request: no OpenCAD2D is running, the connection was lost, a drawing was closed meanwhile, the owner of an object refused an edit, a block is not in the drawing.
CadRemoteExtents class A box of the drawing: the extents the header of a drawing holds, as CadRemoteDocument.Extents reads them, or the part of the space shown that the view shows, as CadRemoteDocument.CurrentView reads it: the least and the greatest corner, in the units of the drawing.
CadRemoteFreeSpace class The empty rectangles of a frame as the app finds them (CadRemoteDocument.GetFreeSpace): four numbers a rectangle, the largest first, kept as one array.
CadRemoteHistory class The last lines of a drawing's command line, as CadRemoteDocument.GetHistory reads them.
CadRemoteLayer class A layer of a drawing of a running OpenCAD2D, as the Layer manager lists it: its name and how it looks.
CadRemoteLayout class A layout (or model space) of a drawing of a running OpenCAD2D, as CadRemoteDocument.GetLayouts lists it: its tab order, whether it is shown, its sheet settings, how many entities it holds and its viewports.
CadRemoteLinetype class A linetype of a drawing of a running OpenCAD2D, as CadRemoteDocument.GetLinetypes lists it: its name, description, pattern length and dash lengths in millimetres.
CadRemoteMeasurement class What an object would take on the page, found by the app before it is added (CadRemoteDocument.Measure): the box of everything it draws and the frame of each of its words, kept as two arrays.
CadRemoteMultileaderStyle class A multileader style of a drawing of a running OpenCAD2D, as CadRemoteDocument.GetMultileaderStyles lists it: the settings of the Multileader Style Manager, in millimetres as drawn.
CadRemoteOverlaps class The pairs of entities whose words overlap (CadRemoteDocument.GetOverlaps): the handle of the entity whose words they are, the handle of what they meet and the box of the common part, kept as three arrays.
CadRemoteProperties class What the Properties palette of the app shows for some entities (CadRemoteDocument.GetProperties): a label such as Line (1) and the rows in groups (General, Geometry, Text, Misc, Attributes), each value written as the palette writes it.
CadRemotePropertyGroup class A group of rows of the Properties palette, such as Geometry.
CadRemotePropertyRow class A row of the Properties palette: a label and the value as the palette writes it.
CadRemoteRuleScore class How one rule of a standard fared in the app's check (CadRemoteDocument.CheckStandard).
CadRemoteRun class A run of a tool's command, as the tool sees it: the command the user typed in the app, which the app holds open (its command line says "<name> is working... (Esc to stop)") while the tool works.
CadRemoteScreenshot class The picture of the app's drawing canvas, as CadApplication.GetScreenshot reads it.
CadRemoteSnapshot class A drawing of the app as it stood when CadRemoteDocument.TakeSnapshot kept it, to be put back with CadRemoteDocument.Reset.
CadRemoteStandardResult class What the app found in a drawing checked against a standard (CadRemoteDocument.CheckStandard): the scores, the total and the violations, as the app's own check gives them.
CadRemoteTableCellStyle class The cell style of one kind of row (title, header or data) of a CadRemoteTableStyle.
CadRemoteTableStyle class A table style of a drawing of a running OpenCAD2D, as CadRemoteDocument.GetTableStyles lists it, in millimetres as drawn.
CadRemoteViewport class A viewport of a paper layout of a running OpenCAD2D, as CadRemoteLayout.Viewports lists it: where it stands on the sheet, the part of model space it shows, its scale and the layers frozen in it alone.
CadRemoteViolation class One place a drawing breaks a rule of a standard, as the app found it.
CadRunningApp class One OpenCAD2D that is running, as CadApplication.GetRunning lists it: which process, what its window says, when the user last worked in it and which drawings it has open.