Please enable JavaScript to view this site.

QPR Knowledge Base 2023.1

Navigation: Developer's Guide > QPR API > The Object Model > QPR Modeling > PGModel Commands

GetProperty

Scroll Prev Top Next More

Revision history:

Introduced in QPR 7.6.1

Last changed in QPR 2023.1

 

Get value of element's property. PropertyName is not case sensitive.

 

Synopsis:

 

PGModel.GetProperty(ElementId, PropertyName, out Value)

 

Parameters:

 

ElementId: The element from which the property is acquired. Supported formats for defining the element:

ElementId: Integer. ID of the element from which the property is acquired.

ElementId[.InstanceId]: String. ID and an optional instance ID of the element from which the property is acquired.

ElementSymbol[.InstanceId]: String. The symbol and an optional instance ID of the element from which the property is acquired.

PropertyName: String. See the listing below for supported properties for different element types:

ElementID refers to a process step:

Id, id

ParentId, id

ElementTypeId, id

Name, string

Description, string

Instances, array with eight columns: instance id (int), model object id, (int), diagram (int), QPR Metrics link as a semicolon-separated string with QPR Metrics model name, scorecard symbol and measure symbol (string), incoming flows (integer list), outgoing flows (integer list), organization unit (int), object instance (integer list), and a two-column (object id and instance id, both integers) array containing information about the process step(s) linked to this instance

InstanceGraphicalProperties, a two-dimensional array of five integer values: startpoint.X, startpoint.Y, height, width, instance id. The number of rows in the array is the number of instances.

InformationItems, array

Notes, array

MeasureData, array

Resources, array

Priority, double

CanBeSuspended, boolean

ScoreCardModel, string. Requires using InstanceId to get the property.

ScorecardIdentifier, string. Requires using InstanceId to get the property.

MeasureIdentifier, string. Requires using InstanceId to get the property.

InterfaceElement, boolean

LineGraphicalProperties, array with the following columns:

Width, integer

Color, integer

Transparency, integer (0-255, 0 = fully transparent, 255 = opaque)

Dash style, integer (0 = solid, 1 = dash, 2 = dot, 3 = dash dot, 4 = dash dot dot, 5 = custom)

Custom dash pattern, string. Valid when dash style = 5. The pattern definition contains an even amount of space-separated values ranging from 0 to 99. The first value in a value pair defines the amount of pixels that are drawn and the second one the amount of pixels that are left empty in the line.

FillGraphicalProperties, array with the following columns:

Style, integer (0 = transparent, 1 = solid, 2 = gradient, 3 = texture, 4 = hatch)

Primary color, integer

Primary color transparency, integer (0-255, 0 = fully transparent, 255 = opaque)

Secondary color, integer

Secondary color transparency, integer (0-255, 0 = fully transparent, 255 = opaque)

Gradient type, integer (1 = linear, 2 = rectangle)

Gradient mode, integer (0 = horizontal, 1 = vertical, 2 = forward diagonal, 3 = backward diagonal)

Texture wrap mode, integer (0 = tile, 1 = tile flip X, 2 = tile flip Y, 3 = tile flip XY, 4 = clamp)

Hatch style, integer (0-52)

Contents of the FillGraphicalProperties array depends on the style. For transparent fills, only primary transparency is included. For solid fills, both primary color settings are included. For gradients the array contains both primary and secondary color settings as well as gradient settings. For textures there are primary color settings and texture wrap mode included, but the actual texture is not available. For hatch fill style there are both primary and secondary color settings as well as hatch style setting.

Symbol, string

InstanceIds, array

IncomingFlows, array

OutgoingFlows, array

Owner, id

ProcessStepsOnProcessLevel, array with two columns: object id and instance id

Groups, array

Flows, array

Stores, array with two columns: object id and instance id

FlowCompositions, array

SimulationEntryRule, int

EntryRules, array

EntryRuleCaseMatching, boolean

SimulationExitRule, int

ExitRules, array

ProcessingTimeType, int

ProcessingTimes, array

InputFrequencyType, int

InputFrequencies, array

IsStartingProcessStep, boolean

MaxInputs, int

ModelingDirection, int

IsUseDefaultModelingDirection, boolean.

IsUseVersionInformation, boolean. This property is supported only for diagram type process steps.

VersionNumber, string. This property is supported only for diagram type process steps.

Status, enumerated. This property is supported only for diagram type process steps.

Author, string. This property is supported only for diagram type process steps.

Comment, string. This property is supported only for diagram type process steps.

LastChanged, datetime. This property is supported only for diagram type process steps.

Elements, array with two columns: object ID and instance ID. This property is valid for all objects that have a child level.

BaseModelElement, boolean

ChildModelUsage, array of child model id, child model name, child model path, and usage flag: 1=the base model element has been instantiated in the child model, 2=there is a relation from a child model element to the base model element, 3=both. The array is empty if the element is not used or instantiated in child models.

MappedConnectors, array of connector ids. For input or output interfaces, returns the connectors mapped to the interface.

InGroups, array with two columns: object ID and instance ID.

InstancesInGroup, array with two columns: object ID and instance ID.

AttachedTo, array with two columns: object ID and instance ID.

AttachedInstances, array with two columns: object ID and instance ID.

DiagramContent, a two-dimensional array of four values: offset.X, offset.Y, visible, instance id. The number of rows in the array is the number of instances. If the element does not have a diagram content field, then the values are Empty.

ZOrder, int. The z-order of the instance. Value 0 or a smaller value sets the instance to bottommost. A value equal to or greater than the number of items in the diagram moves the instance to topmost. A value in between moves the instance to selected depth-position.

Font, a one dimensional array:

font name, string. The name of the font.

font size, int. Size of the font in points.

font style, a comma-separated list of enumerated values of font style.

font color, int.

font alignment, a comma-separated list of enumerated value pairs.

ExternalModelId, ID of the linked server model. This property is supported only for external model type process steps.

ExternalModelDiagramId, ID of the linked server model's diagram. This property is supported only for external model type process steps.

ExternalModelDiagramName, string. The linked server model diagram's name. This property is supported only for external model type process steps.

URL, string. Stores the URI, e.g. "http://www.qpr.com". This property is supported only for external model type process steps.

InformationLocation, array of strings storing the server path or file model path of the linked model location. This property is supported only for external model type process steps.

DiagramTypeGroup, string. Symbol of the Type Group set to diagram element. In case of element type's default, empty string is returned. This property is supported only for diagram type process steps and element types.

ElementID refers to a connector:

Id, id

ParentId, id

ElementTypeId, id

Name, string

Description, string

Instances, array with five columns: instance id (int), model object id, (int), diagram (int), QPR Metrics link as a semicolon-separated string with QPR Metrics model name, scorecard symbol and measure symbol (string), incoming flows (integer list), outgoing flows (integer list)

InstanceGraphicalProperties, a two-dimensional array of five integer values: startpoint.X, startpoint.Y, height, width, instance id. The number of rows in the array is the number of instances.

NameFieldRelativePos, array with three columns:

empty | Percentage, integer, percentage 0-100 - position of the label is set to the percentage value relative to point at start

empty | X, integer, relative to point at start (or end)

empty | Y, integer, relative to point at start (or end)

PGModel.GetProperties will return three values depending on what Position anchor type (default position, relative to start point, relative to end point, relative to point at start) is:

oIf default position, then all three values are empty.

oIf  relative to point at start, then first value is the percentage and two others empty.

oIf relative to start point or relative to end point, then first value is empty and two others are X and Y.

InformationItems, array

Notes, array

MeasureData, array

Resources, array

Priority, double

CanBeSuspended, boolean

ScoreCardModel, string. Requires using InstanceId to get the property.

ScorecardIdentifier, string. Requires using InstanceId to get the property.

MeasureIdentifier, string. Requires using InstanceId to get the property.

InterfaceElement, boolean

LineGraphicalProperties, array with the following columns:

Width, integer

Color, integer

Transparency, integer (0-255, 0 = fully transparent, 255 = opaque)

Dash style, integer (0 = solid, 1 = dash, 2 = dot, 3 = dash dot, 4 = dash dot dot, 5 = custom)

Custom dash pattern, string. Valid when dash style = 5. The pattern definition contains an even amount of space-separated values ranging from 0 to 99. The first value in a value pair defines the amount of pixels that are drawn and the second one the amount of pixels that are left empty in the line.

Symbol, string

From, id

FromInstance, id

To, id

ToInstance, id

FlowArrowStyle, two-dimensional array with one row for each arrow of the flow. The first column contains the arrow style (integer: 0 = Elbow, 1 = Straight, 2 = Curve, 3 = Elbow - rounded, 4 = Elbow - bent). The second column contains the arrow's diagram id (integer).

FlowPoints, two-dimensional array containing integer X and Y pairs in the first two columns and diagram ID in the third column. The first row contains the starting coordinates for a flow's path and the last row contains the ending coordinates.

Owner, id

Document, id

ProcessingTimeType, int

ProcessingTimes, array

InputFrequencyType, int

InputFrequencies, array

IsStartingFlow, boolean

MaxInputs, int

IsDocument, boolean

ProcessLevels, array

BaseModelElement, boolean

ChildModelUsage, array of child model id, child model name, child model path, and usage flag: 1=the base model element has been instantiated in the child model, 2=there is a relation from a child model element to the base model element, 3=both. The array is empty if the element is not used or instantiated in child models.

MappedSourceInterface, id. The interface element that is mapped to the connector start.

MappedDestinationInterface, id. The interface element that is mapped to the connector end.

ZOrder, int. The z-order of the instance. Value 0 or a smaller value sets the instance to bottommost. A value equal to or greater than the number of items in the diagram moves the instance to topmost. A value in between moves the instance to selected depth-position.

Font, a one dimensional array:

font name, string. The name of the font.

font size, int. Size of the font in points.

font style, a comma-separated list of enumerated values of font style.

font color, int.

font alignment, a comma-separated list of enumerated value pairs.

ElementID refers to an organization item:

Id, id

ParentId, id

ElementTypeId, id

Name, string

Description, string

Instances, array with five columns: instance id (int), model object id, (int), diagram (int), QPR Metrics link as a semicolon-separated string with QPR Metrics model name, scorecard symbol and measure symbol (string), incoming flows (integer list), outgoing flows (integer list)

InstanceGraphicalProperties, a two-dimensional array of five integer values: startpoint.X, startpoint.Y, height, width, instance id. The number of rows in the array is the number of instances.

InformationItems, array

Notes, array

MeasureData, array

Resources, array

Priority, double

CanBeSuspended, boolean

ScoreCardModel, string. Requires using InstanceId to get the property.

ScorecardIdentifier, string. Requires using InstanceId to get the property.

MeasureIdentifier, string

InterfaceElement, boolean

LineGraphicalProperties, array with the following columns:

Width, integer

Color, integer

Transparency, integer (0-255, 0 = fully transparent, 255 = opaque)

Dash style, integer (0 = solid, 1 = dash, 2 = dot, 3 = dash dot, 4 = dash dot dot, 5 = custom)

Custom dash pattern, string. Valid when dash style = 5. The pattern definition contains an even amount of space-separated values ranging from 0 to 99. The first value in a value pair defines the amount of pixels that are drawn and the second one the amount of pixels that are left empty in the line.

FillGraphicalProperties, array with the following columns:

Style, integer (0 = transparent, 1 = solid, 2 = gradient, 3 = texture, 4 = hatch)

Primary color, integer

Primary color transparency, integer (0-255, 0 = fully transparent, 255 = opaque)

Secondary color, integer

Secondary color transparency, integer (0-255, 0 = fully transparent, 255 = opaque)

Gradient type, integer (1 = linear, 2 = rectangle)

Gradient mode, integer (0 = horizontal, 1 = vertical, 2 = forward diagonal, 3 = backward diagonal)

Texture wrap mode, integer (0 = tile, 1 = tile flip X, 2 = tile flip Y, 3 = tile flip XY, 4 = clamp)

Hatch style, integer (0-52)

Contents of the FillGraphicalProperties array depends on the style. For transparent fills, only primary transparency is included. For solid fills, both primary color settings are included. For gradients the array contains both primary and secondary color settings as well as gradient settings. For textures there are primary color settings and texture wrap mode included, but the actual texture is not available. For hatch fill style there are both primary and secondary color settings as well as hatch style setting.

Symbol, string

ParentOrganizationUnit, id

ChildOrganizationUnits, array

ProcessSteps, array with two columns: object id and instance id

Persons, array

OrganizationType, int

BaseModelElement, boolean

ChildModelUsage, array of child model id, child model name, child model path, and usage flag: 1=the base model element has been instantiated in the child model, 2=there is a relation from a child model element to the base model element, 3=both. The array is empty if the element is not used or instantiated in child models.

ZOrder, int. The z-order of the instance. Value 0 or a smaller value sets the instance to bottommost. A value equal to or greater than the number of items in the diagram moves the instance to topmost. A value in between moves the instance to selected depth-position.

Font, a one dimensional array:

font name, string. The name of the font.

font size, int. Size of the font in points.

font style, a comma-separated list of enumerated values of font style.

font color, int.

font alignment, a comma-separated list of enumerated value pairs.

ElementID refers to a case:

Id, id

ParentId, id

ElementTypeId, id

Name, string

Description, string

Instances, array with five columns: instance id (int), model object id, (int), diagram (int), QPR Metrics link as a semicolon-separated string with QPR Metrics model name, scorecard symbol and measure symbol (string), incoming flows (integer list), outgoing flows (integer list)

InstanceGraphicalProperties, a two-dimensional array of five integer values: startpoint.X, startpoint.Y, height, width, instance id. The number of rows in the array is the number of instances.

InformationItems, array

Notes, array

MeasureData, array

Resources, array

Priority, double

CanBeSuspended, boolean

ScoreCardModel, string. Requires using InstanceId to get the property.

ScorecardIdentifier, string. Requires using InstanceId to get the property.

MeasureIdentifier, string. Requires using InstanceId to get the property.

InterfaceElement, boolean

Symbol, string

SimulationStarted, date

SimulationEnded, date

BaseModelElement, boolean

ChildModelUsage, array of child model id, child model name, child model path, and usage flag: 1=the base model element has been instantiated in the child model, 2=there is a relation from a child model element to the base model element, 3=both. The array is empty if the element is not used or instantiated in child models.

ElementID refers to an information item:

Id, id

ParentId, id

ElementTypeId, id

Name, string

Description, string

Instances, array with five columns: instance id (int), model object id, (int), diagram (int), QPR Metrics link as a semicolon-separated string with QPR Metrics model name, scorecard symbol and measure symbol (string), incoming flows (integer list), outgoing flows (integer list)

InstanceGraphicalProperties, a two-dimensional array of five integer values: startpoint.X, startpoint.Y, height, width, instance id. The number of rows in the array is the number of instances.

InformationItems, array

Notes, array

MeasureData, array

Resources, array

Priority, double

CanBeSuspended, boolean

ScoreCardModel, string. Requires using InstanceId to get the property.

ScorecardIdentifier, string. Requires using InstanceId to get the property.

MeasureIdentifier, string. Requires using InstanceId to get the property.

InterfaceElement, boolean

Symbol, string

ModelObjects, id

Flows, id

Links, id

IsEmbedded, boolean

EmbeddedInformation, blob

DocumentType, int

ChildInformationItems, array

ParentInformationItems, array

FlowCompositions, array

BaseModelElement, boolean

ChildModelUsage, array of child model id, child model name, child model path, and usage flag: 1=the base model element has been instantiated in the child model, 2=there is a relation from a child model element to the base model element, 3=both. The array is empty if the element is not used or instantiated in child models.

ElementID refers to a flow composition:

Id, id

ParentId, id

ElementTypeId, id

Name, string

Description, string

Instances, array with five columns: instance id (int), model object id, (int), diagram (int), QPR Metrics link as a semicolon-separated string with QPR Metrics model name, scorecard symbol and measure symbol (string), incoming flows (integer list), outgoing flows (integer list)

InstanceGraphicalProperties, a two-dimensional array of five integer values: startpoint.X, startpoint.Y, height, width, instance id. The number of rows in the array is the number of instances.

InformationItems, array

Notes, array

MeasureData, array

Resources, array

Priority, double

CanBeSuspended, boolean

ScoreCardModel, string. Requires using InstanceId to get the property.

ScorecardIdentifier, string. Requires using InstanceId to get the property.

MeasureIdentifier, string. Requires using InstanceId to get the property.

InterfaceElement, boolean

LineGraphicalProperties, array with the following columns:

Width, integer

Color, integer

Transparency, integer (0-255, 0 = fully transparent, 255 = opaque)

Dash style, integer (0 = solid, 1 = dash, 2 = dot, 3 = dash dot, 4 = dash dot dot, 5 = custom)

Custom dash pattern, string. Valid when dash style = 5. The pattern definition contains an even amount of space-separated values ranging from 0 to 99. The first value in a value pair defines the amount of pixels that are drawn and the second one the amount of pixels that are left empty in the line.

Symbol, string

ProcessLevel, id

FlowPoints, two-dimensional array containing integer X and Y pairs in the first two columns and diagram ID in the third column. The first row contains the starting coordinates for a flow's path and the last row contains the ending coordinates.

Document, id

ChildCompositions, array

ParentComposition, id

BaseModelElement, boolean

ChildModelUsage, array of child model id, child model name, child model path, and usage flag: 1=the base model element has been instantiated in the child model, 2=there is a relation from a child model element to the base model element, 3=both. The array is empty if the element is not used or instantiated in child models.

ZOrder, int. The z-order of the instance. Value 0 or a smaller value sets the instance to bottommost. A value equal to or greater than the number of items in the diagram moves the instance to topmost. A value in between moves the instance to selected depth-position.

Font, a one dimensional array:

font name, string. The name of the font.

font size, int. Size of the font in points.

font style, a comma-separated list of enumerated values of font style.

font color, int.

font alignment, a comma-separated list of enumerated value pairs.

ElementID refers to a measure:

Id, id

ParentId, id

ElementTypeId, id

Name, string

Description, string

Instances, array with five columns: instance id (int), model object id, (int), diagram (int), QPR Metrics link as a semicolon-separated string with QPR Metrics model name, scorecard symbol and measure symbol (string), incoming flows (integer list), outgoing flows (integer list)

InstanceGraphicalProperties, a two-dimensional array of five integer values: startpoint.X, startpoint.Y, height, width, instance id. The number of rows in the array is the number of instances.

InformationItems, array

Notes, array

MeasureData, array

Resources, array

Priority, double

CanBeSuspended, boolean

ScoreCardModel, string. Requires using InstanceId to get the property.

ScorecardIdentifier, string. Requires using InstanceId to get the property.

MeasureIdentifier, string. Requires using InstanceId to get the property.

InterfaceElement, boolean

Symbol, string

MeasureValueType, int

MeasureSubprocessCalculationType, int

MeasureUnitType, int

UnitNames, array

LinkedMeasureData, array

BaseModelElement, boolean

ChildModelUsage, array of child model id, child model name, child model path, and usage flag: 1=the base model element has been instantiated in the child model, 2=there is a relation from a child model element to the base model element, 3=both. The array is empty if the element is not used or instantiated in child models.

ElementID refers to measure data:

Id, id

ParentId, id

ElementTypeId, id

Name, string

Description, string

Instances, array with five columns: instance id (int), model object id, (int), diagram (int), QPR Metrics link as a semicolon-separated string with QPR Metrics model name, scorecard symbol and measure symbol (string), incoming flows (integer list), outgoing flows (integer list)

InstanceGraphicalProperties, a two-dimensional array of five integer values: startpoint.X, startpoint.Y, height, width, instance id. The number of rows in the array is the number of instances.

InformationItems, array

Notes, array

MeasureData, array

Resources, array

Priority, double

CanBeSuspended, boolean

ScoreCardModel, string. Requires using InstanceId to get the property.

ScorecardIdentifier, string. Requires using InstanceId to get the property.

MeasureIdentifier, string. Requires using InstanceId to get the property.

InterfaceElement, boolean

Symbol, string

Measure, id

MeasureDataList, array

ModelObject, id

BaseModelElement, boolean

ChildModelUsage, array of child model id, child model name, child model path, and usage flag: 1=the base model element has been instantiated in the child model, 2=there is a relation from a child model element to the base model element, 3=both. The array is empty if the element is not used or instantiated in child models.

ElementID refers to a note:

Id, id

ParentId, id

ElementTypeId, id

Name, string

Description, string

Instances, array with five columns: instance id (int), model object id, (int), diagram (int), QPR Metrics link as a semicolon-separated string with QPR Metrics model name, scorecard symbol and measure symbol (string), incoming flows (integer list), outgoing flows (integer list)

InstanceGraphicalProperties, a two-dimensional array of five integer values: startpoint.X, startpoint.Y, height, width, instance id. The number of rows in the array is the number of instances.

InformationItems, array

Notes, array

MeasureData, array

Resources, array

Priority, double

CanBeSuspended, boolean

ScoreCardModel, string. Requires using InstanceId to get the property.

ScorecardIdentifier, string. Requires using InstanceId to get the property.

MeasureIdentifier, string. Requires using InstanceId to get the property.

InterfaceElement, boolean

LineGraphicalProperties, array with the following columns:

Width, integer

Color, integer

Transparency, integer (0-255, 0 = fully transparent, 255 = opaque)

Dash style, integer (0 = solid, 1 = dash, 2 = dot, 3 = dash dot, 4 = dash dot dot, 5 = custom)

Custom dash pattern, string. Valid when dash style = 5. The pattern definition contains an even amount of space-separated values ranging from 0 to 99. The first value in a value pair defines the amount of pixels that are drawn and the second one the amount of pixels that are left empty in the line.

FillGraphicalProperties, array with the following columns:

Style, integer (0 = transparent, 1 = solid, 2 = gradient, 3 = texture, 4 = hatch)

Primary color, integer

Primary color transparency, integer (0-255, 0 = fully transparent, 255 = opaque)

Secondary color, integer

Secondary color transparency, integer (0-255, 0 = fully transparent, 255 = opaque)

Gradient type, integer (1 = linear, 2 = rectangle)

Gradient mode, integer (0 = horizontal, 1 = vertical, 2 = forward diagonal, 3 = backward diagonal)

Texture wrap mode, integer (0 = tile, 1 = tile flip X, 2 = tile flip Y, 3 = tile flip XY, 4 = clamp)

Hatch style, integer (0-52)

Contents of the FillGraphicalProperties array depends on the style. For transparent fills, only primary transparency is included. For solid fills, both primary color settings are included. For gradients the array contains both primary and secondary color settings as well as gradient settings. For textures there are primary color settings and texture wrap mode included, but the actual texture is not available. For hatch fill style there are both primary and secondary color settings as well as hatch style setting.

Symbol, string

ParentNote, id

ChildNotes, array

ModelObject, id

BaseModelElement, boolean

ChildModelUsage, array of child model id, child model name, child model path, and usage flag: 1=the base model element has been instantiated in the child model, 2=there is a relation from a child model element to the base model element, 3=both. The array is empty if the element is not used or instantiated in child models.

InGroups, array with two columns: object ID and instance ID.

InstancesInGroup, array with two columns: object ID and instance ID.

ZOrder, int. The z-order of the instance. Value 0 or a smaller value sets the instance to bottommost. A value equal to or greater than the number of items in the diagram moves the instance to topmost. A value in between moves the instance to selected depth-position.

Font, a one dimensional array:

font name, string. The name of the font.

font size, int. Size of the font in points.

font style, a comma-separated list of enumerated values of font style.

font color, int.

font alignment, a comma-separated list of enumerated value pairs.

ElementID refers to the model (the ID can be fetched e.g. by calling PGModel.GetActive with the PROCESSMODEL parameter):

Id, id

ParentId, id

ElementTypeId, id

Name, string

Description, string

Instances, array with five columns: instance id (int), model object id, (int), diagram (int), QPR Metrics link as a semicolon-separated string with QPR Metrics model name, scorecard symbol and measure symbol (string), incoming flows (integer list), outgoing flows (integer list)

InstanceGraphicalProperties, a two-dimensional array of five integer values: startpoint.X, startpoint.Y, height, width, instance id. The number of rows in the array is the number of instances.

InformationItems, array

Notes, array

MeasureData, array

Resources, array

Priority, double

CanBeSuspended, boolean

ScoreCardModel, string. Requires using InstanceId to get the property.

ScorecardIdentifier, string. Requires using InstanceId to get the property.

MeasureIdentifier, string. Requires using InstanceId to get the property.

InterfaceElement, boolean

Symbol, string

FeedbackEmailAddress, string

CreationDate, date

ModificationDate, date

Template, id

ChangeLog, array

IsUseLog, boolean

IsForceExclusive, boolean

ModelingOptions, string

BaseModelingOptions, string

ItemsInLog, int

IsPublished, boolean

AutomaticInformationItemRefresh, int

BaseModelElement, boolean

ChildModelUsage, array of child model id, child model name, child model path, and usage flag: 1=the base model element has been instantiated in the child model, 2=there is a relation from a child model element to the base model element, 3=both. The array is empty if the element is not used or instantiated in child models.

ElementID refers to a resource:

Id, id

ParentId, id

ElementTypeId, id

Name, string

Description, string

Instances, array with five columns: instance id (int), model object id, (int), diagram (int), QPR Metrics link as a semicolon-separated string with QPR Metrics model name, scorecard symbol and measure symbol (string), incoming flows (integer list), outgoing flows (integer list)

InstanceGraphicalProperties, a two-dimensional array of five integer values: startpoint.X, startpoint.Y, height, width, instance id. The number of rows in the array is the number of instances.

InformationItems, array

Notes, array

MeasureData, array

Resources, array

Priority, double

CanBeSuspended, boolean

ScoreCardModel, string. Requires using InstanceId to get the property.

ScorecardIdentifier, string. Requires using InstanceId to get the property.

MeasureIdentifier, string. Requires using InstanceId to get the property.

InterfaceElement, boolean

Symbol, string

ResourceType, int

AmountOfResourceAvailable, double

UnitCost, double

UnitName, string

MaximumAmountInStore, double

OrderingLimit, double

IncrementPerRegularOrder, double

RegularOrderInterval, date

IncrementPerOrder, double

OrderingCost, double

OrderingTime, date

TimeUnit, int

ObjectsUsing, array

ChildResources, array

ParentResources, array

ResourcesInResourcePool, array

InResourcePools, array

OrganizationUnit, id

ResponsibleOfFlows, array

ProcessLevel, array

BaseModelElement, boolean

ChildModelUsage, array of child model id, child model name, child model path, and usage flag: 1=the base model element has been instantiated in the child model, 2=there is a relation from a child model element to the base model element, 3=both. The array is empty if the element is not used or instantiated in child models.

ElementID refers to a checkpoint:

Id, id

ProcessLevel, id

Name, string

InstanceGraphicalProperties, array

ElementID refers to a text item:

Id, id

ProcessLevel, id

Name, string

InstanceGraphicalProperties, array

ElementID refers to a picture:

Id, id

ProcessLevel, id

Name, string

InstanceGraphicalProperties, array

ElementID refers to a store:

Id, id

ParentId, id

ElementTypeId, id

Name, string

Description, string

Instances, array with five columns: instance id (int), model object id, (int), diagram (int), QPR Metrics link as a semicolon-separated string with QPR Metrics model name, scorecard symbol and measure symbol (string), incoming flows (integer list), outgoing flows (integer list)

InstanceGraphicalProperties, a two-dimensional array of five integer values: startpoint.X, startpoint.Y, height, width, instance id. The number of rows in the array is the number of instances.

InformationItems, array

Notes, array

MeasureData, array

Resources, array

Priority, double

CanBeSuspended, boolean

ScoreCardModel, string. Requires using InstanceId to get the property.

ScorecardIdentifier, string. Requires using InstanceId to get the property.

MeasureIdentifier, string. Requires using InstanceId to get the property.

InterfaceElement, boolean

LineGraphicalProperties, array with the following columns:

Width, integer

Color, integer

Transparency, integer (0-255, 0 = fully transparent, 255 = opaque)

Dash style, integer (0 = solid, 1 = dash, 2 = dot, 3 = dash dot, 4 = dash dot dot, 5 = custom)

Custom dash pattern, string. Valid when dash style = 5. The pattern definition contains an even amount of space-separated values ranging from 0 to 99. The first value in a value pair defines the amount of pixels that are drawn and the second one the amount of pixels that are left empty in the line.

FillGraphicalProperties, array with the following columns:

Style, integer (0 = transparent, 1 = solid, 2 = gradient, 3 = texture, 4 = hatch)

Primary color, integer

Primary color transparency, integer (0-255, 0 = fully transparent, 255 = opaque)

Secondary color, integer

Secondary color transparency, integer (0-255, 0 = fully transparent, 255 = opaque)

Gradient type, integer (1 = linear, 2 = rectangle)

Gradient mode, integer (0 = horizontal, 1 = vertical, 2 = forward diagonal, 3 = backward diagonal)

Texture wrap mode, integer (0 = tile, 1 = tile flip X, 2 = tile flip Y, 3 = tile flip XY, 4 = clamp)

Hatch style, integer (0-52)

Contents of the FillGraphicalProperties array depends on the style. For transparent fills, only primary transparency is included. For solid fills, both primary color settings are included. For gradients the array contains both primary and secondary color settings as well as gradient settings. For textures there are primary color settings and texture wrap mode included, but the actual texture is not available. For hatch fill style there are both primary and secondary color settings as well as hatch style setting.

Symbol, string

InstanceIds, array

IncomingFlows, array

OutgoingFlows, array

StoreType, int

SimulationRules, array

BaseModelElement, boolean

ChildModelUsage, array of child model id, child model name, child model path, and usage flag: 1=the base model element has been instantiated in the child model, 2=there is a relation from a child model element to the base model element, 3=both. The array is empty if the element is not used or instantiated in child models.

InGroups, array with two columns: object ID and instance ID.

InstancesInGroup, array with two columns: object ID and instance ID.

ZOrder, int. The z-order of the instance. Value 0 or a smaller value sets the instance to bottommost. A value equal to or greater than the number of items in the diagram moves the instance to topmost. A value in between moves the instance to selected depth-position.

Font, a one dimensional array:

font name, string. The name of the font.

font size, int. Size of the font in points.

font style, a comma-separated list of enumerated values of font style.

font color, int.

font alignment, a comma-separated list of enumerated value pairs.

 

+ all custom attribute types defined for each type. To refer to member attributes in attribute sets or enumerations, use the extended naming with the following syntax: <attribute set / enumeration>, for example EventType.Start. To get all possible values of an enumerated custom attribute, use the following parameters: ElementTypeId, enumerated custom attribute, out Value.

External model custom attribute values are returned in the format specified in the SetProperty topic. Note that due to backwards compatibility reasons, GetProperty returns single values as opposed to arrays for attributes with multiplicity (0..*) in case there is only one value defined for the property.

 

Value: Variant for storing the value of the property returned by this function.

 

Note that the property named ParentId is available only for compatibility reasons, and its value will always be zero.

 

 

Required Rights:

 

View rights to PGModel.

 

Return Values:

Below are listed the return values that this function can return:

 

RV_SUCCESS

RV_APPLICATION_QUIT_CALLED

RV_MODEL_NOT_OPEN

RV_INVALID_PARAMETER

RV_ELEMENT_NOT_FOUND

RV_ACCESS_DENIED

RV_UNKNOWN_ERROR

 

Example Procedure:

 

iRet = PGModel.GetProperty(iElementId, "ElementTypeId", iValue)

 

Created with Help & Manual 8 and styled with Premium Pack Version 4 © by EC Software