Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Anchor
ProjectManagement

These functions allow script to query, create, delete and copy projects in the current workspace. For working with other workspaces, see documentation for pyark.OpenConnection in the Connection management functions section.

  • GetProject( name )
    Search for project by its name. If not found, raises a ValueError. Returned value is an instance of ArkProject object.

...

ARK_GRAPH_INNER_VIEW, ARK_GRAPH_PEER_VIEW, ARK_GRAPH_MATDRAW_VIEW, ARK_GRAPH_MATDRAW_INNER_VIEW, ARK_GRAPH_MATDRAW_PEER_VIEW, ARK_GRAPH_TABULAR_VIEW

Type properties

ARK_ATYPE_CLRTEXT, ARK_ATYPE_CLRLINE, ARK_ATYPE_CLRFILL, ARK_ATYPE_CLRFLOW,   ARK_ATYPE_CLRFLOW_TEXT, ARK_ATYPE_CLRFILLBG, ARK_ATYPE_CLRTEXT_TRANSP, ARK_ATYPE_CLRTEXTFLOW_TRANSP, ARK_ATYPE_CLRLINE_TRANSP, ARK_ATYPE_CLRFILL_TRANSP, ARK_ATYPE_CLRFLOW_TRANSP, ARK_ATYPE_CLRFILLBG_TRANSP, ARK_ATYPE_LINESHAPE, ARK_ATYPE_LINESTYLE, ARK_ATYPE_LINEWIDTH, ARK_ATYPE_BORDERSTYLE, ARK_ATYPE_BORDERWIDTH, ARK_ATYPE_ARROWSTYLE, ARK_ATYPE_OBJSHAPE, ARK_ATYPE_SIMTYPE, ARK_ATYPE_ICON, ARK_ATYPE_DISPLAY_ATTRIB_NAME, ARK_ATYPE_DISPLAY_ATTRIB_ICON, ARK_ATYPE_DISPLAY_ATTRIB_VALUE, ARK_ATYPE_FILLHATCH, ARK_ATYPE_KEEP_RATIO, ARK_ATYPE_DEFAULT_SIZE, ARK_ATYPE_READ_ONLYARK_ATYPE_EXCLUDE_FROM_REVMNG, ARK_ATYPE_UNIQUE, ARK_ATYPE_FLEXIBLE

ATYPE_GEN_TAG_ATRRIB_BGIMAGE, ATYPE_GEN_TAG_ATRRIB_FGIMAGE, ATYPE_GEN_TAG_ATRRIB_FONT, ATYPE_GEN_TAG_ATRRIB_FONT_FLOW

Line shapes

ARK_LINESHAPE_CURVE, ARK_LINESHAPE_STRAIGHT, ARK_LINESHAPE_ORTHOGONAL, ARK_LINESHAPE_CUSTOMIZABLE

Line styles

ARK_LINESTYLE_SOLID, ARK_LINESTYLE_DASH, ARK_LINESTYLE_DOTARK_LINESTYLE_DASHDOT, ARK_LINESTYLE_DASHDOTDOT

Arrow styles

ARK_ARROWSTYLE_NOARROW, ARK_ARROWSTYLE_ARROW, ARK_ARROWSTYLE_OPEN, ARK_ARROWSTYLE_STEALTH, ARK_ARROWSTYLE_DIAMOND, ARK_ARROWSTYLE_DIAMOND_WHITEARK_ARROWSTYLE_CIRCLE

Object shapes

ARK_OBJSHAPE_AND, ARK_OBJSHAPE_COMMENT, ARK_OBJSHAPE_CROSS, ARK_OBJSHAPE_CUBE, ARK_OBJSHAPE_DIAMOND, ARK_OBJSHAPE_DOC, ARK_OBJSHAPE_ELLIPSE, ARK_OBJSHAPE_FLAG, ARK_OBJSHAPE_METEOR,ARK_OBJSHAPE_OR, ARK_OBJSHAPE_PLAQUE, ARK_OBJSHAPE_PRLGRM, ARK_OBJSHAPE_RECT, ARK_OBJSHAPE_RECT_RE, ARK_OBJSHAPE_SAIL, ARK_OBJSHAPE_SIGN_LEFT, ARK_OBJSHAPE_SIGN_RIGHT, ARK_OBJSHAPE_TEARDROP, ARK_OBJSHAPE_TRAPEZ_UP, ARK_OBJSHAPE_TRAPEZ_DOWN, ARK_OBJSHAPE_TRIANGLE_UP, ARK_OBJSHAPE_TRIANGLE_DOWN, ARK_OBJSHAPE_WAVE, ARK_OBJSHAPE_PENTAGON, ARK_OBJSHAPE_HEXAGON, ARK_OBJSHAPE_HEPTAGON, ARK_OBJSHAPE_OCTAGON, ARK_OBJSHAPE_DECAGON, ARK_OBJSHAPE_DODECAGON, ARK_OBJSHAPE_CAN, ARK_OBJSHAPE_CAN_LYING, ARK_OBJSHAPE_END_NODE, ARK_OBJSHAPE_INIT_NODE, ARK_OBJSHAPE_CROSS_NODE, ARK_OBJSHAPE_JOIN, ARK_OBJSHAPE_BIFURCATION, ARK_OBJSHAPE_BIFURCATIONV, ARK_OBJSHAPE_PRIORITY_AND_GATE, ARK_OBJSHAPE_HOUSE_EVENT, ARK_OBJSHAPE_XOR, ARK_OBJSHAPE_INHIBIT_GATE, ARK_OBJSHAPE_SIMULINK

Simulink types

ARK_SIMTYPE_ENABLE, ARK_SIMTYPE_FCALL, ARK_SIMTYPE_SM, ARK_SIMTYPE_SUBSYSTEM, ARK_SIMTYPE_STATE, ARK_SIMTYPE_SIGNAL, ARK_SIMTYPE_TRANSITION, ARK_SIMTYPE_TRIGGER, ARK_SIMTYPE_VECTOR

Rule types

ARK_RULE_SIMPLE, ARK_RULE_FLOW, ARK_RULE_BIFLOW, ARK_RULE_INPUT, ARK_RULE_OUTPUT

Projection properties

ARK_TREEVIEW_SIMTYPE, ARK_TREEVIEW_DISPNAME, ARK_TREEVIEW_MASTERSECONDARY, ARK_TREEVIEW_GRAPHORIENT

Projection master/secondary

ARK_TREEVIEW_MASTER, ARK_TREEVIEW_SECONDARY

Object options/variants/phases status

ARK_OBJVAR_UNDEFINED, ARK_OBJVAR_MANUAL, ARK_OBJVAR_PROPAGATED, ARK_OBJVAR_PROPAGATED_UP

Diagram orientation

ARK_GRAPHORIENT_STANDARD, ARK_GRAPHORIENT_TB, ARK_GRAPHORIENT_LR

Object parent relations

RELATION_NONE, RELATION_DIRECT_CHILD, RELATION_INDIRECT_CHILD, RELATION_ATTRIBUTE

Events

EVENT_ONADDCHILD, EVENT_ONADDEXISTING, EVENT_ONADDNEW, EVENT_ONCHANGEATTRIBVALUE, EVENT_ONCHANGEDIRECTION, EVENT_ONCLOSE, EVENT_ONCUSTOMFILTER, EVENT_ONDELETE, EVENT_ONOPEN, EVENT_ONREMOVECHILD, EVENT_ONRENAME, EVENT_ONACTIVATEIBD, EVENT_ONCHANGEPROPERTIES, EVENT_ONCHANGEPROJECTION, EVENT_ONADDCHILD_GLOBAL, EVENT_ONREMOVECHILD_GLOBAL

User permissions

STATUS_DEVELOPER, STATUS_DEVELOPER_ADMIN, STATUS_DESIGNER, STATUS_READONLY

Use access types

RIGHTS_NOT_VISIBLE, RIGHTS_READ_ONLY, RIGHTS_FULL_ACCESS

String validation policies

SVP_STRICT, SVP_IGNORE, SVP_REPLACE

Message logging levels

LOG_INFO, LOG_DEBUG, LOG_WARNING, LOG_ERROR, LOG_EXCEPTION, LOG_CRITICAL

History action types

HISTORY_OBJECT_ATTRIBUTES, HISTORY_OBJECT_ATTRIBUTES_REVISION_EXCLUDED, HISTORY_OBJECT_PARENTSTRUCTURE, HISTORY_OBJECT_OPTIONS, HISTORY_OBJECT_RENAME, HISTORY_ADD_NEW_OBJECT, HISTORY_DELETE_REFERENCE, HISTORY_DELETE_OBJECT_GLOBALLY, HISTORY_LINK_DIRECTION, HISTORY_NEW_OBJECT_REFERENCE, HISTORY_PROJECT_ACTION, HISTORY_OBJECT_CREATE_REVISION, HISTORY_OBJECT_SWITCH_REVISION,HISTORY_SCRIPT