0% found this document useful (0 votes)
4 views40 pages

ActiveX 4

Programacion en Promodel

Uploaded by

Guido Salazar S
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views40 pages

ActiveX 4

Programacion en Promodel

Uploaded by

Guido Salazar S
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 40

ProModel 89

ActiveX

TableName
Syntax: TableName
Description: Returns the name of the Table in the current data selection.
Parameters: None
Returns: The current table name, or “invalid” if the current selection is not valid.
Example: This example opens the mfg_cost.rdb, gets and displays some of the data, then closes the file.
Sub Get_Data()
Dim RDBObj As Object
Dim MyTable As String

Set RDBObj = CreateObject("RDBDataServer")


RDBObj.OpenFile("C:\ProModel 2001\Output\mfg_cost.rdb")

RDBObj.SelectData 1, 1, 1, 1, 1, 1
If RDBObj.PositionIsValid = True Then
MyTable = RDBObj.TableName
MsgBox ("Selected Table = " & MyTable)
Else
MsgBox ("Data Selection Invalid")
End If

RDBObj.CloseFile
Set RDBObj = Nothing
End Sub
90 Chapter 5:
TableName
ProModel 91
ActiveX

Appendix:
Table Definitions

ProModelData Table Definitions


To help you determine the RecordType values, the pmconst.bas file defines the constants used in the examples. The
following is a list of RecordType values, Visual Basic record type constants, and field types for all data tables.

Table Name Visual Basic Constant Value Location of Table in ProModel


Locations pmdTblLocation 1 Build > Locations
Entities pmdTblEntity 2 Build > Entities
Path Networks pmdTblPathNet 3 Build > Path Networks
Resources pmdTblResource 4 Build > Resources
Arrivals pmdTblArrival 6 Build > Arrivals
Shift Assignment pmdTblShift 7 Build > Shifts > Assign
Attributes pmdTblAttribute 8 Build > Attributes
Variables pmdTblVariable 9 Build > Variables
Arrays pmdTblArray 10 Build > Arrays
Macros pmdTblMacro 11 Build > Macros
Subroutines pmdTblSubroutine 12 Build > Subroutines
Arrival Cycles pmdTblArrivalCycle 13 Build > More Elements > Arrival Cycles
Table Functions pmdTblTableFunction 14 Build > More Elements > Table Functions
User Distributions pmdTblUserDistrib 15 Build > More Elements > User Distributions
External Files pmdTblExternalFile 16 Build > More Elements > External Files
Streams pmdTblStream 17 Build > More Elements > Streams
General Information pmdTblGenInfo 18 Build > General Information
Processing pmdTblProcessing 19 Build > Processing
Routings pmdTblRouting 20 Build > Processing
Model Parameters pmdTblModelParam 21 Simulation > Model Parameters
Scenarios pmdTblScenario 22 Simulation > Scenarios
Simulation Options pmdTblSimOption 23 Simulation > Options
Location Clock Downtimes pmdTblLocClockDT 25 Build > Locations > DTs… > Clock
Location Entry Downtimes pmdTblLocEntryDT 26 Build > Locations > DTs… > Entry
Location Usage Downtimes pmdTblLocUsageDT 27 Build > Locations > DTs… > Usage
Location Setup Downtimes pmdTblLocSetupDT 28 Build > Locations > DTs… > Setup
Resource Clock Downtimes pmdTblResClockDT 31 Build > Resources > DTs… > Clock
92
ProModelData Table Definitions

Resource Usage Downtimes pmdTblResUsageDT 32 Build > Resources > DTs… > Usage
Resource Work Search pmdTblResWorkSearch 33 Build > Resources > Search… > Work
Resource Park Search pmdTblResParkSearch 34 Build > Resources > Search… > Park
Resource Node Logic pmdTblResNodeLogic 35 Build > Resources > Logic…
Resource Points pmdTblResPoint 36 Build > Resources > Pts…
Shift Assignment Locations pmdTblShiftLocation 38 Build > Shifts > Assign > Locations
Shift Assignment Resources pmdTblShiftResource 39 Build > Shifts > Assign > Resources
Shift Assignment Files pmdTblShiftFile 40 Build > Shifts > Assign > Shift Files
Subroutine Parameters pmdTblSubRtnParam 41 Build > Subroutines > Parameters…
Arrival Cycles Values pmdTblArrivalCycData 42 Build > More Elements > Arrival Cycles > Table…
Table Functions Values pmdTblFunctionData 43 Build > More Elements > Table Functions > Table…
User Distributions Values pmdTblUserDistribData 44 Build > More Elements > User Distributions > Table…
Location Graphics pmdTblLocGraphic 45 Not Visible
Resource Graphics pmdTblResGraphic 46 Not Visible
Entity Graphics pmdTblEntGraphic 47 Not Visible
Background Graphics pmdTblBackGraphic 49 Build > Background Graphics
Model Defaults pmdTblModelDefaults 50 Simulation > Model Parameters
Path Networks Segments pmdTblPathSegment 51 Build > Path Networks > Paths…
Path Networks Interfaces pmdTblPathInterface 52 Build > Path Networks > Interfaces…
Path Networks Mapping pmdTblPathMapping 53 Build > Path Networks > Mapping…
Path Networks Nodes pmdTblPathNode 54 Build > Path Networks > Nodes…
Views pmdTblView 55 View > Views > Define
Scenario Parameters pmdTblScenParam 56 Simulation > Scenarios > (Add/Edit)
Path Networks Mapping Desti- pmdTblPathMapDest 57 Build > Path Networks > Mapping… > Dest.
nations
Work Search Locations pmdTblWorkSearchLoc 58 Build > Resources > Search… > Work > Location List
Park Search Nodes pmdTblParkNode 59 Build > Resources > Search… > Park > Parking Node
List
Variable Graphics pmdTblVarGraphic 60 Build > Variables
Queue / Conveyor Joints pmdTblQJoint 61 Build > Locations > {Right-click on Queue} > Add Joint
Routing Points 62 Build > Processing > {Right-click on Routing} > Add Joint
ProModel 93
ActiveX

Table Field Types


Key:
I = Integer
S = String
R = Real

Locations Table (1): pmdTblLocation


Field Type Constant Description or Location in ProModel
2 S pmdFldLocName Build > Locations > Name
3 S pmdFldLocCapacity Build > Locations > Capacity
4 I pmdFldLocUnits Build > Locations > Units
9 I pmdFldLocStats Build > Locations > Stats
Stats Rule
1 = None pmdStatsTypeNone
2 = Basic or Summary pmdStatsTypeBasicSum
3 = Time Series or By Unit pmdStatsTypeTSUnit
10 I pmdFldLocIncoming Build > Locations > Rules > Select Incoming Entities
Incoming Rule
1 = Oldest by priority pmdRuleInEntOldest
2 = Not usedt
3 = Least available capacity pmdRuleInEntLeastAvail
4 = Random pmdRuleInEntRandom
5 = Last selected location pmdRuleInEntLastLoc
6 = Minimum attribute value pmdRuleInEntMinAttrib
7 = Maximum attribute value pmdRuleInEntMaxAttrib
11 S pmdFldLocIncAttrib Build > Locations > Rules > Select Incoming Entities > Attribute
12 I pmdFldLocQOutput Build > Locations > Rules > Queuing For Output
Queue Rule
1 = No queuing pmdRuleQOutNone
2 = Firsit in, First out pmdRuleQOutFIFO
3 = Last in, First out pmdRuleQOutLIFO
4 = Maximum attribute value pmdRuleQOutMaxAttrib
5 = Minimum attribute value pmdRuleQOutMinAttrib
6 = By type pmdRuleQOutByType
13 S pmdFldLocQOutAttrib Build > Locations > Rules > Queuing For Output > Attribute
14 I pmdFldLocSelectUnit Build > Locations > Rules > Selecting A Unit
Unit Selection Rule
1 = Longest empty pmdRuleUSelLongestEmpty
2 = Random pmdRuleUSelRandom
3 = By turn pmdRuleUSelByTurn
4 = Most available capacity pmdRuleUSelMostAvail
5 = Fewest entries pmdRuleUSelLeastEntries
6 = First available pmdRuleUSelFirstAvail
15 S pmdFldLocNotes Build > Locations > Notes
16 S pmdFldLocCostRate Operation cost per time unit in field 20.
Build > Cost > Locations > Operation Rate
20 I pmdFldLocCostTimeUnits Build > Cost > Locations > Per
Time Units Rule
1 = Seconds pmdTimeUnitSec
2 = Minutes pmdTimeUnitMin
3 = Hours pmdTimeUnitHr
4 = Days pmdTimeUnitDay
94
ProModelData Table Definitions

Location Clock Downtimes Subtable (25): pmdTblLocClockDT

Field Type Constant Description or Location in ProModel


1 S pmdFldDTFrequency Frequency
2 S pmdFldDTFirstTime First Time
3 S pmdFldDTPriority Priority
4 I pmdFldDTScheduled Scheduled
5 S pmdFldDTLogic Logic
6 I pmdFldDTDisable Disable

Location Entry Downtimes Subtable (26): pmdTblLocEntryDT

Field Type Constant Description or Location in ProModel


1 S pmdFldDTFrequency Frequency
2 S pmdFldDTFirstTime First Time
5 S pmdFldDTLogic Logic
6 I pmdFldDTDisable Disable

Location Usage Downtimes Subtable (27): pmdTblLocUsageDT

Field Type Constant Description or Location in ProModel


1 S pmdFldDTFrequency Frequency
2 S pmdFldDTFirstTime First Time
3 S pmdFldDTPriority Priority
5 S pmdFldDTLogic Logic
6 I pmdFldDTDisable Disable

Location Setup Downtimes Subtable (28): pmdTblLocSetupDT

Field Type Constant Description or Location in ProModel


5 S pmdFldDTLogic Logic
6 I pmdFldDTDisable Disable
7 S pmdFldDTEntity Entity
8 S pmdFldDTPriorEnt Prior Entity
ProModel 95
ActiveX

Entities Table (2): pmdTblEntity


Field Type Constant Description or Location in ProModel
2 S pmdFldEntName Build > Entities > Name
3 S pmdFldEntSpeed Build > Entities > Speed
4 I pmdFldEntStats Build > Entities > Stats
Stats Rule
1 = None pmdStatsTypeNone
2 = Basic or Summary pmdStatsTypeBasicSum
3 = Time Series or By Unit pmdStatsTypeTSUnit
5 S pmdFldEntNotes Build > Entities > Notes
8 S pmdFldEntInitCost Build > Cost > Entities > Initial Cost

Path Networks (3): pmdTblPathNet


Field Type Constant Description or Location in ProModel
1 I pmdFldPathColor Build > Path Networks > Graphics > Color
2 I pmdFldPathVisible Build > Path Networks > Graphics > Visible
3 S pmdFldPathName Build > Path Networks > Name
4 I pmdFldPathType Build > Path Networks > Type
Type Rule
0 = No Passing pmdPathTypeNoPass
1 = Speed pmdPathTypePass
2 = Crane pmdPathTypeCrane
5 I pmdFldPathBasis Build > Path Networks > T/S
Basis Rule
0 = Time pmdPathBasisTime
1 = Speed & Distance pmdPathBasisSpeedDist
96
ProModelData Table Definitions

Path Segments Subtable (51): pmdTblPathSegment

Field Type Constant Description or Location in ProModel


1 S pmdFldPathSegFrom Build > Path Networks > Paths… > From
2 S pmdFldPathSegTo Build > Path Networks > Paths… > To
3 I pmdFldPathSegBiDi Build > Path Networks > Paths… > BI
4 S pmdFldPathSegSpeedFactor Build > Path Networks > Paths… >
5 S pmdFldPathSegDistance Build > Path Networks > Paths… > Distance
6 S pmdFldPathSegTime Build > Path Networks > Paths… > Time

Interfaces Subtable (52): pmdTblPathInterface

Field Type Constant Description or Location in ProModel


1 S pmdFldPathXfaceNode Build > Path Networks > Interfaces… > Node
2 S pmdFldPathXfaceLoc Build > Path Networks > Interfaces… > Location

Mappings Subtable (53): pmdTblPathMapping

Field Type Constant Description or Location in ProModel


1 S pmdFldPathMapFromNode Build > Path Networks > Mapping… > From
2 I pmdFldPathMapSegNum Not Visible (references Path Networks Segment record number)

Mapping Destinations Subtable (57): pmdTblPathMapDest

Field Type Constant Description or Location in ProModel


3 S pmdFldPathMapDestNode pmMapDestSNode

Nodes Subtable (54): pmdTblPathNode

Field Type Constant Description or Location in ProModel


1 S pmdFldPathNodeName Build > Path Networks > Nodes > Node
2 S pmdFldPathNodeCapacity Build > Path Networks > Nodes > Limit
3 I pmdFldPathNodeXPos Not Visible (number of pixels from left)
4 I pmdFldPathNodeYPos Not Visible (number of pixels from top)

Resources Table (4): pmdTblResource


Field Type Constant Description or Location in ProModel
2 S pmdFldResName Build > Resources > Name
3 S pmdFldResUnits Build > Resources > Units
6 I pmdFldResStats Build > Resources > Stats…
Stats Rule
1 = None pmdStatsTypeNone
2 = Basic or Summary pmdStatsTypeBasicSum
3 = Time Series or By Unit pmdStatsTypeTSUni
7 S pmdFldResNetwork Build > Resources > Specs… > Path Network
8 I pmdFldResSearch Build > Resources > Specs… > Resource Search
ProModel 97
ActiveX

Resource Search Rule


1 = Closest Rresource pmdResSrchClosest
2 = Longest Idle pmdResSrchLongestIdle
3 = Least Utilized pmdResSrchLeastUsed
9 I pmdFldResEntSearch Build > Resources > Specs… > Entity Search
Entity Search Rule
1 = Longest Waiting pmdEntSrchOldest
2 = Closest Entity pmdEntSrchClosest
3 = Minnimum Attribut Value pmdEntSrchMinAttrib
4 = Maximum Attribute Value pmdEntSrchMaxAttrib
10 S pmdFldResEntSrchMinAttrib Build > Resources > Specs… > Entity Search > Min Attribute
11 S pmdFldResEntSrchMaxAttrib Build > Resources > Specs… > Entity Search > Max Attribute
12 S pmdFldResSpeedEmpty Build > Resources > Specs… > Motion > Speed (Empty)
13 S pmdFldResSpeedFull Build > Resources > Specs… > Motion > Speed (Full)
14 S pmdFldResAccel Build > Resources > Specs… > Motion > Accelerate
15 S pmdFldResDecel Build > Resources > Specs… > Motion > Decelerate
16 S pmdFldResPickupTime Build > Resources > Specs… > Motion > Pick-up Time
17 S pmdFldResDepositTime Build > Resources > Specs… > Motion > Deposit Time
18 S pmdFldResHomeNode Build > Resources > Specs… > Nodes > Home
19 I pmdFldResHomeIfIdle Build > Resources > Specs… > Nodes > Return Home If Idle
20 S pmdFldResOffShiftNode Build > Resources > Specs… > Nodes > Off-Shift
21 S pmdFldResBreakNode Build > Resources > Specs… > Nodes > Break
26 S pmdFldResNotes Build > Resources > Notes
27 S pmdFldResCost Build > Cost > Resources > Regular Rate
29 S pmdFldResCostPerUse Build > Cost > Resources > Cost Per Use
30 I pmdFldResCostTimeUnit Build > Cost > Resources > Per
31 R Build > Resources > Resource Graphics > Graphic Size
98
ProModelData Table Definitions

Clock Downtimes Subtable (31): pmdTblResClockDT

Field Type Constant Description or Location in ProModel


1 S pmdFldDTFrequency Frequency
2 S pmdFldDTFirstTime First Time
3 S pmdFldDTPriority Priority
4 I pmdFldDTScheduled Scheduled
5 S pmdFldDTLogic Logic
6 I pmdFldDTDisable Disable
9 S pmdFldDTList List
10 S pmdFldDTNode Node

Usage Downtimes Subtable (32): pmdTblResUsageDT

Field Type Constant Description or Location in ProModel


1 S pmdFldDTFrequency Frequency
2 S pmdFldDTFirstTime First Time
3 S pmdFldDTPriority Priority
5 S pmdFldDTLogic Logic
6 I pmdFldDTDisable Disable
9 S pmdFldDTList List
10 S pmdFldDTNode Node

Work Search Subtable (33): pmdTblResWorkSearch

Field Type Constant Description or Location in ProModel


1 S pmdFldResWorkSrchNode Build > Resources > Search… >Work > Node
2 I pmdFldResWorkSrchType Build > Resources > Search… > Work > Type
Resource Work Search Type Rule
1 = Exclusive pmdWSrchTypeExclusive
2 = Non-Exclusive pmdWSrchTypeNonExclusv

Search Locations Subtable (58): pmdTblWorkSearchLoc

Field Type Constant Description or Location in ProModel


3 S pmdFldWorkSrchLocName Build > Resources > Search… > Work > Location List

Park Search Subtable (34): pmdTblResParkSearch

Field Type Constant Description or Location in ProModel


1 S pmdFldResParkSrchNode Build > Resources > Search… > Park > Node

Park Nodes Subtable (59):pmdTblParkNode

Field Type Constant Description or Location in ProModel


2 S pmdFldResParkNodeName Build > Resources > Search… > Park > Parking Node List
ProModel 99
ActiveX

Node Logic Subtable (35): pmdTblResNodeLogic

Field Type Constant Description or Location in ProModel


1 S pmdFldResNLogicNode Build > Resources > Logic… > Node
2 S pmdFldResNLogicEntry Build > Resources > Logic… > Entry Logic
3 S pmdFldResNLogicExit Build > Resources > Logic… > Exit Logic

Resource Points Subtable (36): pmdTblResPoint

Field Type Constant Description or Location in ProModel


1 S pmdFldPointsNode Build > Resources > Pts… > Node
2 I pmdFldPointsXPos Build > Resources > Pts… > Points (before comma)
3 I pmdFldPointsYPos Build > Resources > Pts… > Points (after comma)

Arrivals Table (6): pmdTblArrival


Field Type Constant Description or Location in ProModel
1 S pmdFldArrivalEntName Build > Arrivals > Entity…
2 S pmdFldArrivalLocName Build > Arrivals > Location…
3 S pmdFldArrivalQtyEach Build > Arrivals > Qty Each… > Quantity
4 S pmdFldArrivalCycle Build > Arrivals > Qty Each… > Arrival Cycle
5 S pmdFldArrivalFirstTime Build > Arrivals > First Time
6 S pmdFldArrivalOccur Build > Arrivals > Occurrences
7 S pmdFldArrivalFrequency Build > Arrivals > Frequency
8 S pmdFldArrivalLogic Build > Arrivals > Logic…
9 I Bool pmdFldArrivalDisable Build > Arrivals > Disable
10 I pmdFldArrivalTimeBasis Build > Arrivals > First Time > Define Arrival By
11 I pmdFldArrivalMinute Build > Arrivals > First Time > Edit Arrival Time > Min
12 I pmdFldArrivalHour Build > Arrivals > First Time > Edit Arrival Time > Hr
13 I pmdFldArrivalWeekDay Build > Arrivals > First Time > Edit Arrival Time > Day
14 I pmdFldArrivalMonthDay Build > Arrivals > First Time > Edit Arrival Time > Day
15 I pmdFldArrivalWeek Build > Arrivals > First Time > Edit Arrival Time > Week
16 I pmdFldArrivalMonth Build > Arrivals > First Time > Edit Arrival Time > Month
17 I pmdFldArrivalYear Build > Arrivals > First Time > Edit Arrival Time > Year
18 S pmdFldArrivalVariation Build > Arrivals > First Time > Scheduling Options > Variation
19 S pmdFldArrivalOffset Build > Arrivals > First Time > Scheduling Options > Offset
20 I pmdFldArrivalRepeatType Build > Arrivals > First Time > Scheduling Options > Repeat
(Daily/Weekly)
Arrival Repeat Type Rule
1 = No Selection pmdRepeatNone
2 = Repeat Daily pmdRepeatDaily
3 = Repeat Weekly pmdRepeatWeekly
100
ProModelData Table Definitions

Shift Assignment Table (7): pmdTblShift


Field Type Constant Description or Location in ProModel
1 S pmdFldShiftPriority Build > Shifts > Assign > Priorities… > Priority for ending shift
2 S pmdFldShiftOffShiftPri Build > Shifts > Assign > Priorities… > Off-shift priority
3 S pmdFldShiftStartBreakPri Build > Shifts > Assign > Priorities… > Priority for starting break
4 S pmdFldShiftBreakPri Build > Shifts > Assign > Priorities… > Break priority
5 S pmdFldShiftPreOffShiftLogic Build > Shifts > Assign > Logic > Pre-Off Shift
6 S pmdFldShiftOffShiftLogic Build > Shifts > Assign > Logic > Off Shift
7 S pmdFldShiftPreBreakLogic Build > Shifts > Assign > Logic > Pre-Break
8 S pmdFldShiftBreakLogic Build > Shifts > Assign > Logic > Break
9 I Bool pmdFldShiftDisable Build > Shifts > Assign > Disable

Location Index Subtable (38): pmdTblShiftLocation

Field Type Constant Description or Location in ProModel


10 I pmdFldShiftLocNum Build > Shifts > Assign > Locations

Resource Index Subtable (39): pmdTblShiftResource

Field Type Constant Description or Location in ProModel


11 I pmdFldShiftResNum Build > Shifts > Assign > Resources
12 S pmdFldShiftResUnits Build > Shifts > Assign > Resources > Units

Shift File Index Subtable (40): pmdTblShiftFile

Field Type Constant Description or Location in ProModel


13 I pmdFldShiftFileNum Build > Shifts > Assign > Shift Files > Selected Files
14 S pmdFldShiftStartTime Build > Shifts > Assign > Shift Files > Start

Attributes Table (8): pmdTblAttribute


Field Type Constant Description or Location in ProModel
1 S pmdFldAttribID Build > Attributes > ID
2 I pmdFldAttribType Build > Attributes > Type…
Type Rule
2 = Integer pmdDataTypeInteger
4 = Real pmdDataTypeReal
3 I pmdFldAttribClass Build > Attributes > Classification…
Classification Rule
1 = Entity pmdAttribClassEnt
2 = Location pmdAttribClassLoc
4 S pmdFldAttribNotes Build > Attributes > Notes…
ProModel 101
ActiveX

Variables Table (9): pmdTblVariable


Field Type Constant Description or Location in ProModel
2 S pmdFldVarID Build > Variables > ID
3 I pmdFldVarType Build > Variables > Type…
Type Rule
2 = Integer pmdDataTypeInteger
4 = Real pmdDataTypeReal
4 S pmdFldVarInitValue Build > Variables > Initial Value
Stats Type
1 = None pmdStatsTypeNone
2 = Basic or Summary pmdStatsTypeBasicSum
3 = Time Series or By Unit pmdStatsTypeTSUni
5 I pmdFldVarStatsType Build > Variables > Stats… > (None/Basic/Time Series)
6 I pmdFldVarStatsBasis Build > Variables > Stats… > (Time-weighted/Observation-
based)
Statistics Basis Rule
1 = Time Weighted pmdStatsBasisTime
2 = Observation Based pmdStatsBasisObserv
7 S pmdFldVarNotes Build > Variables > Notes…

Arrays Table (10): pmdTblArray


Field Type Constant Description or Location in ProModel
1 S pmdFldArrayID Build > Arrays > ID
2 S pmdFldArrayDimens Build > Arrays > Dimensions
3 I pmdFldArrayType Build > Arrays > Type…
4 S pmdFldArrayNotes Build > Arrays > Notes…
5 S pmdFldArrayImportPath Build > Arrays > Import File… > Import File
6 S pmdFldArraySheetName Build > Arrays > (Import) File… > Sheet Name
8 S pmdFldArrayStartCell Build > Arrays > (Import) File… > (Import) Start Cell
9 S pmdFldArrayEndCell Build > Arrays > (Import) File… > (Import) End Cell
10 S pmdFldArrayExportPath Build > Arrays > Export File… > Export File
11 S pmdFldArrayExSheetName Build > Arrays > (Export) File… > Sheet Name
12 S pmdFldArrayExStartCell Build > Arrays > (Export) File… > (Export) Start Cell
13 S pmdFldArrayExEndCell Build > Arrays > (Export) File… > (Export) End Cell
14 S pmdFldArrayImDBConnect Build > Arrays > (Import) File… > (Import) DB Connection String
15 S pmdFldArrayImDBQueryProc Build > Arrays > (Import) File… > (Import) DB Query or Stored
Procedure
17 I pmdFldArrayImportType Build > Arrays > (Import) File… > (Import) Type (0=Excel,
1=Database)
20 I pmdFldArrayPersistData Build > Arrays > Persist (0=Clear, 1=Keep)
21 I pmdFldArrayExportLastRep Build > Arrays > (Export) File… > Export after final replication only
(0=no, 1=yes)
22 I pmdFldArrayDisImport Build > Arrays > Disable (Import) (0=no, 1=yes)
23 I pmdFldArrayDisExport Build > Arrays > Disable (Export) (0=no, 1=yes)
102
ProModelData Table Definitions

Macros Table (11): pmdTblMacro


Field Type Constant Description or Location in ProModel
1 S pmdFldMacroID Build > Macros > ID
2 S pmdFldMacroText Build > Macros > Text…
4 I pmdFldMacroGroup Build > Macros > Options… > Resource Group
5 S pmdFldMacroRTIName Build > Macros > Options… > RTI > Define > Parameter Name
6 S pmdFldMacroRTIPrompt Build > Macros > Options… > RTI > Define > Prompt
7 S pmdFldMacroRTIMinValue Build > Macros > Options… > RTI > Define > From
8 S pmdFldMacroRTIMaxValue Build > Macros > Options… > RTI > Define > To
9 I pmdFldMacroRTIType Build > Macros > Options… > RTI > Define > (type selections)
Type Rule
2 = Range
3 = Unrestrictedr

Subroutines Table (12):pmdTblSubroutine


Field Type Constant Description or Location in ProModel
1 S pmdFldSubRtnID Build > Subroutines > ID
2 S pmdFldSubRtnLogic Build > Subroutines > Logic…
4 I pmdFldSubRtnType Build > Subroutines > Type…
Type Rule
0 = None pmdDataTypeNone
2 = Integer pmdDataTypeInteger
4 = Real pmdDataTypeReal
8 = Interactive pmdDataTypeInteract

Parameters Subtable (41): pmdTblSubRtnParam

Field Type Constant Description or Location in ProModel


5 S pmdFldSubRtnParamName Build > Subroutines > Parameters… > ID
6 I pmdFldSubRtnParamType Build > Subroutines > Parameters… > Type…
Parameter Type Rule
2 = Integer pmdDataTypeInteger
4 = Real pmdDataTypeReal

Arrival Cycles Table (13): pmdTblArrivalCycle


Field Type Constant Description or Location in ProModel
1 S pmdFldArrCycID Build > More Elements > Arrival Cycles > ID
2 I pmdFldArrCycType Build > More Elements > Arrival Cycles > Qty/%
Quantity Rule
0 = Percent pmdArvCycPercent
1 = Quantity pmdArvCycQuant
3 I pmdFldArrCycCumulative Build > More Elements > Arrival Cycles > Cumulative…
ProModel 103
ActiveX

Arrival Cycle Values Subtable (42): pmdTblArrivalCycData

Field Type Constant Description or Location in ProModel


5 S pmdFldArrCycTime Build > More Elements > Arrival Cycles > Table… > Time
6 S pmdFldArrCycQtyPercent Build > More Elements > Arrival Cycles > Table… > Qty/%

Table Functions Table (14): pmdTblTableFunction


Field Type Constant Description or Location in ProModel
1 S pmdFldTableFunID Build > More Elements > Table Functions > ID

Function Values Subtable (43): pmdTblFunctionData

Field Type Constant Description or Location in ProModel


3 S pmdFldTableFunIndepVal Build > More Elements > Table Functions > Table… > Indepen-
dent Value
4 S pmdFldTableFunDepVal Build > More Elements > Table Functions > Table… > Depen-
dent Value

User Distributions Table (15): pmdTblUserDistrib


Field Type Constant Description or Location in ProModel
1 S pmdFldUserDistID Build > More Elements > User Distributions > ID
2 I pmdFldUserDistType Build > More Elements > User Distributions > Type…
Type Rule
1 = Discrete pmdUDistDiscrete
2 = Continuous pmdUDistContinuous
3 I pmdFldUserDistCumulative Build > More Elements > User Distributions > Cumulative…

User Distributions Values Subtable (44): pmdTblUserDistribData

Field Type Constant Description or Location in ProModel


4 S pmdFldUserDistPercentage Build > More Elements > User Distributions > Table… > Percent-
age
5 S pmdFldUserDistValue Build > More Elements > User Distributions > Table… > Value

External Files Table (16): pmdTblExternalFile


Field Type Constant Description or Location in ProModel
1 S pmdFldXfilesID Build > More Elements > External Files > ID
2 I pmdFldXfilesType Build > More Elements > External Files > Type…
Type Rule
1 = General Read pmdFileTypeGenRead
2 = General Write pmdFileTypeGenWrite
3 = Entity Location pmdFileTypeEntLoc
4 = Arrival pmdFileTypeArrival
5 = Shift pmdFileTypeShift
6 = DLL pmdFileTypeDLL
7 = Excel pmdFileTypeExcel
104
ProModelData Table Definitions

3 S pmdFldXfilesPath Build > More Elements > External Files > File Name…
4 S pmdFldXfilesPrompt Build > More Elements > External Files > Prompt
5 S pmdFldXfilesNotes Build > More Elements > External Files > Notes…

Streams Table (17): pmdTblStream


Field Type Constant Description or Location in ProModel
1 I pmdFldStreamNum Build > More Elements > Streams > Stream #
2 I pmdFldStreamSeedNum Build > More Elements > Streams > Seed #
3 I pmdFldStreamReset Build > More Elements > Streams > Reset…
Reset Rule
0 = No
1 = Yes

General Information Table (18): pmdTblGenInfo


Field Type Constant Description or Location in ProModel
1 S pmdFldGenInfoTitle Build > General Information > Title
2 I pmdFldGenInfoDefTimeUnits Build > General Information > Time Units
Default Time Units Rule
1 = Seconds pmdTimeUnitSec
2 = Minutes pmdTimeUnitMin
3 = Hours pmdTimeUnitHr
4 = Days pmdTimeUnitDay

3 I pmdFldGenInfoDefDistUnits Build > General Information > Distance Units


Default Distance Units Rule
1 = Feet pmdDistUnitFeet
2 = Meters pmdDistUnitMeters
4 S pmdFldGenInfoGLibFile Build > General Information > Graphic Library File…
5 S pmdFldGenInfoInitLogic Build > General Information > Initialization Logic…
6 S pmdFldGenInfoTermLogic Build > General Information > Termination Logic…
7 S pmdFldGenInfoNotes Build > General Information > Model Notes…
8 I Has the model been modified?
Modified Rule
0 = No
1 = Yes
9 I pmdFldGenInfoModFile Path of the .MOD file.
10 R pmdFldGenInfoZoomPct Layout zoom percentage.

Process Table (19): pmdTblProcessing


Field Type Constant Description or Location in ProModel
1 S pmdFldProcEntName Build > Processing > Entity…
2 I Bool pmdFldProcPreempt Build > Processing > Entity… > Preemption Process
3 S pmdFldProcLocName Build > Processing > Location…
4 S pmdFldProcOpLogic Build > Processing > Operation…
ProModel 105
ActiveX

Routing Subtable (20): pmdTblRouting


Field Type Constant Description or Location in ProModel
6 S pmdFldRtgEntName Build > Processing > Output…
7 S pmdFldRtgLocName Build > Processing > Destination…
8 S pmdFldRtgPriority Build > Processing > Destination… > Priority
9 I pmdFldRtgNewBlock Build > Processing > Rule… > New Block
10 I pmdFldRtgNewEntity Build > Processing > Rule… > New Entity
11 S pmdFldRtgQuantity Build > Processing > Rule… > Quantity
12 I pmdFldRtgRoutingRule Build > Processing > Rule… > (choice list)
Routing Rules
1 = First Available pmdRtgFirstAvail
2 = Most Available pmdRtgMostAvailCap
3 = By Turn pmdRtgByTurn
4 = If Join Request pmdRtgJoinRequest
5 = If Load Request pmdRtgLoadRequest
6 = If Send pmdRtgIfSend
7 = Until Full pmdRtgUntilFull
8 = As Alternate pmdRtgAsAlt
9 = Probability pmdRtgProb
10 = User Condition pmdRtgCond
11 = Random pmdRtgRandom
12 = Longest Unoccupied pmdRtgLongestEmpty
13 = If Empty pmdRtgIfEmpty
14 = Continue pmdRtgContinue
15 = As Backup pmdRtgAsBackup
16 = Dependent pmdRtgDependent
13 R pmdFldRtgProbability Build > Processing > Rule… > Probability
14 S pmdFldRtgCondition Build > Processing > Rule… > User Condition
15 S pmdFldRtgMoveLogic Build > Processing > Move Logic…

Model Parameters Table (21): pmdTblModelParam


Field Type Constant Description or Location in ProModel
1 S pmdFldModParamValue Simulation > Model Parameters > Change

Scenarios Table (22): pmdTblScenario


Field Type Constant Description or Location in ProModel
1 S pmdFldScenName Simulation > Scenarios
2 I pmdFldScenDisable Simulation > Scenarios > Disable (toggles on/off for selected
record)
106
ProModelData Table Definitions

Scenario Parameter Subtable (56): pmdTblScenParam

Field Type Constant Description or Location in ProModel


1 S pmdFldScenParamValue Simulation > Scenarios > (Add/Edit) > Change

Simulation Options (23): pmdTblSimOption


Field Type Constant Description or Location in ProModel
1 S pmdFldSimOptOutPath Simulation > Options > Output Path
2 I pmdFldSimOptTimeBasis Simulation > Options > Define run length by
Time Basis Rule
0 = Time Only pmdTimeBasisTimeOnly
1 = Calendar Date pmdTimeBasisCalDate
2 = Weekly Time pmdTimeBasisWeeklyTime

Note: Values 3 & 4 are used only if Time Basis = 0.


3 S pmdFldSimOptRunHours Simulation > Options > Run Hours (Time Only)
4 S pmdFldSimOptWarmPeriod Simulation > Options > Warmup Hours (Time Only)
5 I pmdFldSimOptWarmMonCal Simulation > Options > Warmup Start > Month (Calendar)
6 I pmdFldSimOptWarmDayCal Simulation > Options > Warmup Start > Day (Calendar)
7 I pmdFldSimOptWarmYrCal Simulation > Options > Warmup Start > Year (Calendar)
8 I pmdFldSimOptWarmHr Simulation > Options > Warmup Start > Hour (Weekly, Calen-
dar)
9 I pmdFldSimOptWarmMin Simulation > Options > Warmup Start > Min (Weekly, Calendar)
10 I pmdFldSimOptBegMonCal Simulation > Options > Sim. Begin > Month (Calendar)
11 I pmdFldSimOptBegDayCal Simulation > Options > Sim. Begin > Day (Calendar)
12 I pmdFldSimOptBegYrCal Simulation > Options > Sim. Begin > Year (Calendar)
13 I pmdFldSimOptBegHr Simulation > Options > Sim. Begin > Hour (Weekly, Calendar)
14 I pmdFldSimOptBegMin Simulation > Options > Sim. Begin > Min (Weekly, Calendar)
15 I pmdFldSimOptEndMonCal Simulation > Options > Sim. End > Month (Calendar)
16 I pmdFldSimOptEndDayCal Simulation > Options > Sim. End > Day (Calendar)
17 I pmdFldSimOptEndYrCal Simulation > Options > Sim. End > Year (Calendar)
18 I pmdFldSimOptEndHr Simulation > Options > Sim. End > Hour (Weekly, Calendar)
19 I pmdFldSimOptEndMin Simulation > Options > Sim. End > Min (Weekly, Calendar)
20 I pmdFldSimOptRptMethod Simulation > Options > Output Reporting
Output Report Method Rule
0 = Standard pmdSimRptStandard
1 = Batch Mean pmdSimRptBatchMean
2 = Periodic pmdSimRptPeriodic
21 S pmdFldSimOptRptIntLength Simulation > Options > Output Reporting > Interval Length
22 S pmdFldSimOptNumReps Simulation > Options > Output Reporting > Number of Replica-
tions
23 I pmdFldSimOptClockPrecision Simulation > Options > Clock Precision > (drop-down list)
ProModel 107
ActiveX

Clock Precision Rule


0 = No Clock Precision Chosen pmdSimClockPrecNone
1=1 pmdSimClockPrec1
2 = .1 pmdSimClockPrec10
3 = .01 pmdSimClockPrec100
4 = .001 pmdSimClockPrec1000
5 = .0001 pmdSimClockPrec10000
6 = .00001 pmdSimClockPrec100000
24 I pmdFldSimOptClockPrecUnits Simulation > Options > Clock Precision > (selection list)
Clock Precision Units Rule
1 = Seconds pmdTimeUnitSec
2 = Minutes pmdTimeUnitMin
3 = Hours pmdTimeUnitHr
4 = Days pmdTimeUnitDay

25 I Bool pmdFldSimOptDisTimeSeries Simulation > Options > Disable Time Series


26 I Bool pmdFldSimOptDisAnimation Simulation > Options > Disable Animation
27 I Bool pmdFldSimOptDisCost Simulation > Options > Disable Cost
28 I Bool pmdFldSimOptPause Simulation > Options > Pause at Start
29 I Bool pmdFldSimOptDisplayNotes Simulation > Options > Display Notes
30 I Bool pmdFldSimOptEnableWarmup Simulation > Options > Warmup Period
31 I Bool pmdFldSimOptWarmDayWk Simulation > Options > Warmup Start > Day (Weekly)
32 I Bool pmdFldSimOptWarmWeekWk Simulation > Options > Warmup Start > Week (Weekly)
33 I Bool pmdFldSimOptBegDayWk Simulation > Options > Sim. Begin > Day (Weekly)
34 I Bool pmdFldSimOptBegWeekWk Simulation > Options > Sim. Begin > Week (Weekly)
35 I Bool pmdFldSimOptEndDayWk Simulation > Options > Sim. End > Day (Weekly)
36 I Bool pmdFldSimOptEndWeekWk Simulation > Options > Sim. End > Week (Weekly)
37 I Bool pmdFldSimOptDaySaveAdjust Simulation > Options > Adjust for Daylight Savings
38 I Bool pmdFldSimOptGenAniScript Simulation > Options > Generate Animation Script
39 I Bool pmdFldSimOptComRand Simulation > Options > Common Random Numbers
40 I Bool pmdFldSimOptSkipResDT Simulation > Options > Skip Resource DTs if Off-shift
41 I Bool pmdFldSimOptDisArrayExp Simulation > Options > Disable Array Export

Location Graphics (45): pmdTblLocGraphic


Graphic
Type
Field Table Constant Description or Location in ProModel
1 1 pmdGfxTypeLibrary Library
1 2 pmdGfxTypeQ Queue / Conveyor
1 3 pmdGfxTypeTank Gauge / Tank
1 4 pmdGfxTypeCounter Counter
1 5 pmdGfxTypeText Text
1 6 pmdGfxTypeStatus Status Light
1 7 pmdGfxTypeEntSpot Entity Spot
1 8 pmdGfxTypeRegion Region
108
ProModelData Table Definitions

Library Graphics (Graphic Type Table 1)

Field Type Constant Description or Location in ProModel


1 I pmdFldGfxType Graphic Type
2 I pmdFldGfxLibWidth Width
3 I pmdFldGfxLibHeight Height
4 R pmdFldGfxLibWidR Real Width (feet or meters)
5 R pmdFldGfxLibHtR Real Height (feet or meters)
6 I pmdFldGfxLibRotat Rotation
7 I pmdFldGfxLibID ID
8 I pmdFldGfxLibSpotX Hotspot X value
9 I pmdFldGfxLibSpotY Hotspot Y value
10 I pmdFldGfxLibXpos Postion X value
11 I pmdFldGfxLibYpos Postion Y value
12 I pmdFldGfxLibColor Color

Queue/Conveyor Graphics (Graphics Type Table 2)

Field Type Constant Description or Location in ProModel


1 I pmdFldGfxType Graphic Type
2 I pmdFldGfxQIsQ Conveyor?
Conveyor Rule
0 = No
1 = Yes
3 I pmdFldGfxQSpeed Speed (Conveyor Only)
4 S pmdFldGfxQLength Length (Conveyor Only)
5 S pmdFldGfxQAccum Accumulating?
Accumulating Rule
0 = No
1= Yes
6 I pmdFldGfxQEntDir Entity Orientation
Entity Orientation Rule
0 = Lengthwise
1 = Widthwise
7 I pmdFldGfxQBrdrClr Border Color
8 I pmdFldGfxQFillClr Fill Color
9 I pmdFldGfxQStyle Graphic Style
Graphic Style Rule
1 = Solid
2 = Line
3 = Roller
10 I pmdFldGfxQWidth Width
11 I pmdFldGfxQIsVis Invisible?
Invisible Rule
0 = No
1 = Yes
ProModel 109
ActiveX

Gauge/Tank Graphics (Graphics Type Table 3)

Field Type Constant Description or Location in ProModel


1 I pmdFldGfxType Graphic Type
2 I pmdFldGfxTnkLeft Left
3 I pmdFldGfxTnkTop Top
4 I pmdFldGfxTnkRight Right
5 I pmdFldGfxTnkBotm Bottom
6 I pmdFldGfxTnkBrdrClr Border Color
7 I pmdFldGfxTnkEmptyClr Empty Color
8 I pmdFldGfxTnkFillClr Fill Color
9 R pmdFldGfxTnkMinVal Minimum Value
10 R pmdFldGfxTnkMaxVal Maximum Value
11 I pmdFldGfxTnkDir Direction
Direction Rule
1 = Up
2 = Down
3 = Left
4 = Right
12 I pmdFldGfxTnkScale Show Scale?
Scale Rule
0 = No
1 = Yes
13 I pmdFldGfxTnkBrdr Show Border?
Border Rule
0 = No
1 = Yes
14 I pmdFldGfxTnkIsTank Tank?
Tank Rule
0 = No
1 = Yes

Counter Graphics (Graphics Type Table 4)

Field Type Constant Description or Location in ProModel


1 I pmdFldGfxType Graphic Type
10 I pmdFldGfxCtrLeft Left
11 I pmdFldGfxCtrTop Top
12 I pmdFldGfxCtrRight Right
13 I pmdFldGfxCtrBotm Bottom
14 I pmdFldGfxCtrFrType Frame Type
Frame Type Rule
1 = Invisible
2 = Plain
3 = Raised
4 = Recessed
5 = Shadow
6 = None
15 I pmdFldGfxCtrFrShape Frame Shape
110
ProModelData Table Definitions

Frame Shape Rule


1 = Rectangle
2 = Round Rectangle
3 = Ellipse
4 = Diamond
16 I pmdFldGfxCtrFrClr Frame Color
17 I pmdFldGfxCtrBrdrClr Frame Border Color
20 I pmdFldGfxCtrFontSize Font Size
21 S pmdFldGfxCtrFont Font Name
22 I pmdFldGfxCtrFontClr Font Color
ProModel 111
ActiveX

Text Graphics (Graphic Type Table 5)

Field Type Constant Description or Location in ProModel


1 I pmdFldGfxType Graphic Type
2 S pmdFldGfxTxtLabel Label Text
10 I pmdFldGfxTxtLeft Left
11 I pmdFldGfxTxtTop Top
12 I pmdFldGfxTxtRight Right
13 I pmdFldGfxTxtBotm Bottom
14 I pmdFldGfxTxtFrType Frame Type
Frame Type Rule
1 = Invisible
2 = Plain
3 = Raised
4 = Recessed
5 = Shadow
6 = None
15 I pmdFldGfxTxtFrShape Frame Shape
Frame Shape Rule
1 = Rectangle
2 = Round Rectangle
3 = Ellipse
4 = Diamond
16 I pmdFldGfxTxtFrClr Frame Color
17 I pmdFldGfxTxtBrdrClr Frame Border Color
20 I pmdFldGfxTxtFontSize Font Size
21 S pmdFldGfxTxtFont Font Name
22 I pmdFldGfxTxtFontClr Font Color
23 I Alignment
Allignment Rule
1 = Left
2 = Center
3 = Right
24 I Rotation
Rotation Rule
0 = None
1 = 90 degrees
2 = 180 degrees
3 = 270 degrees

Status Light Graphics (Graphic Type Table 6)

Field Type Constant Description or Location in ProModel


1 I pmdFldGfxType Graphic Type
2 I pmdFldGfxLightX X Position
3 I pmdFldGfxLightY Y Position
112
ProModelData Table Definitions

Entity Spot Graphics (Graphic Type Table 7)

Field Type Constant Description or Location in ProModel


1 I pmdFldGfxType Graphic Type
2 I pmdFldGfxSpotX X Position
3 I pmdFldGfxSpotY Y Position

Region Graphics (Graphic Type Table 8)

Field Type Constant Description or Location in ProModel


1 I pmdFldGfxType Graphic Type
2 I pmdFldGfxRgnLeft Left
3 I pmdFldGfxRgnTop Top
4 I pmdFldGfxRgnRight Right
5 I pmdFldGfxRgnBotm Bottom

Resource Graphics (46): pmdTblResGraphic


Field Type Constant Description or Location in ProModel
1 1 pmdGfxTypeLibrary Library

Entity Graphics (47): pmdTblEntGraphic


Field Type Constant Description or Location in ProModel
1 1 pmdGfxTypeLibrary Library

Background Graphics (49): pmdTblBackGraphic


Field Type Constant Description or Location in ProModel
1 I 1=Library, 6=Text
4 I Font color (RGB)
6 I Position Locked? (0 = no, 1 = yes)
8 I X-coordinate of upper left corner of graphic
9 I Y-coordinate of upper left corner of graphic
10 I X-coordinate of lower right corner of graphic
11 I Y-coordinate of lower right corner of graphic
100 S Text shown on graphic
101 I Frame type (1=invisible, 2=plain, 3=raised, 4=recessed,
5=shadow, 6=no border)
102 I Frame shape (1=rectangle, 2=rounded rectangle, 3=ellipse,
4=diamond)
103 I Frame border color (RGB)
120 I Font size (use negative number to specify point size)
121 S Font name
122 I Alignment (1=left, 2=center, 3=right)
123 I Rotation (0=0 degrees, 1=90 degrees, 2=180 degrees, 3=270
degrees
ProModel 113
ActiveX

Variable Graphics (60): pmdTblVarGraphic


Field Type Constant Description or Location in ProModel
1 4 pmdGfxTypeCounter Counter

Model Defaults Table (50): pmdTblModelDefaults


Field Type Constant Description or Location in ProModel
1 S pmdFldModDfltModPath Tools > Options > Default Folders > Models
2 S pmdFldModDfltGfxPath Tools > Options > Default Folders > Graphics Library
3 S pmdFldModDfltOutPath Tools > Options > Default Folders > Output Results
4 I Bool pmdFldModDfltSaveSet Save defaults to .INI file?
5 I Bool pmdFldModDfltShowPath Views > Show Hidden Networks
6 I Bool pmdFldModDfltShowRtg Views > Show Routings
7 I Bool pmdFldModDfltShowGrid Views > Show Grid
7 I Bool pmdFldModDfltLongMenu Tools > Options > Long Build Menu checkbox

Views Table (55): pmdTblView


Field Type Constant Description or Location in ProModel
1 S pmdFldViewName View > Views > Define > View List
2 I pmdFldViewXOffset Relative horizontal position of view
3 I pmdFldViewYOffset Relative vertical position of view
4 I pmdFldViewWidth View width in pixels
5 I pmdFldViewHeight View height in pixels

Queue/Conveyor Joints Table (61): pmdTblQJoint


Field Type Constant Description or Location in ProModel
1 I pmdFldQJointXPos (Distance, in pixels, from Left margin)
2 I pmdFldQJointYPos (Distance, in pixels, from Top margin)

Routing Points Table (62):


Field Type Constant Description or Location in ProModel
1 I (Distance, in pixels, from Left margin)
2 I (Distance, in pixels, from Top margin)
114
Runtime Table.

Runtime Table.
Table Name Visual Basic Constant Value
Locations pmrTblLocation 1
Single Capacity Locations pmrTblLocSingle 2
Multi Capacity Locations pmrTblLocMulti 3
Resources pmrTblResource 5
Resource States (by Percentage) pmrTblResState 6
Node Entries pmrTblNodeEntry 7
Failed Arrivals pmrTblFailArrival 8
Entity Activity pmrTblEntAct 9
Entity States (by Percentage) pmrTblEntState 10
Variables pmrTblVariable 12
Logs pmrTblLog 13
Location Costing pmrTblLocCost 14
Resource Costing pmrTblResCost 16
Entity Activity Costing pmrTblEntCost 17

Locations Runtime Fields (1): pmrTblLocation


Field Constant Field
1 pmrFldLocEntries Total Entries
2 pmrFldLocAvgMins Avg Min per Entry
3 pmrFldLocAvgCnt Avg Contents
4 pmrFldLocMaxCnt Max Contents
5 pmrFldLocCurCnt Cur Contents
6 pmrFldLocUtilPct Utilization %

Single Capacity Locations Runtime Fields (2): pmrTblLocSingle


Field Constant Field
1 pmrFldLocSOperPct Operation %
2 pmrFldLocSSetupPct Setup %
3 pmrFldLocSIdlePct Idle %
4 pmrFldLocSWaitPct Waiting %
5 pmrFldLocSBlkdPct Blocked %
6 pmrFldLocSDownPct Down %

Multi Capacity Locations Runtime Fields (3): pmrTblLocMulti


Field Constant Field
1 pmrFldLocMEmptyPct Empty %
2 pmrFldLocMPartFullPct Part Occupy %
3 pmrFldLocMFullPct Full %
4 pmrFldLocMDownPct Down %
ProModel 115
ActiveX

Resource Runtime Fields (5): pmrTblResource


Field Constant Field
1 pmrFldResTimesUsed # Times Used
2 pmrFldResAvgMins Avg Min per Usage
3 pmrFldResTrvl2Use Travel to Use
4 pmrFldResTrvl2Park Travel to Park
5 pmrFldResBlkdTrvlPct Blocked in Travel %
6 pmrFldResUtilPct Utilization %

Resource States (By Percentage) Runtime Fields (6): pmrTblResState


Field Constant Field
1 pmrFldResStPctUse In Use %
2 pmrFldResStPctTrvl2Use Travel to Use %
3 pmrFldResStPctTrvl2Prk Travel to Park %
4 pmrFldResStPctIdle Idle %
5 pmrFldResStPctDown Down %

Node Entries Runtime Fields (7): pmrTblNodeEntry


Field Constant Field
1 pmrFldNodeTotEntry Total Entries
2 pmrFldNodeBlkdEntry Blocked Entries

Failed Arrivals Runtime Fields (8): pmrTblFailArrival


Field Constant Field
1 pmrFldNodeTotFail Total Failed

Entity Activity Runtime Fields (9): pmrTblEntAct


Field Constant Field
1 pmrFldEntTotExit Total Exits
2 pmrFldEntCurQty Cur Qty Sys
3 pmrFldEntAvgMinSys Avg Min System
4 pmrFldEntAvgMinMove Avg Min Move Logic
5 pmrFldEntAvgWaitRes Avg Wait Res
6 pmrFldEntAvgMinOper Avg Min Operation
7 pmrFldEntAvgMinBlkd Avg Min Blocked

Entity States (By Percentage) Runtime Fields (10): pmrTblEntState


Field Constant Field
1 pmrFldEntStPctMove In Move Logic %
116
Runtime Table.

2 pmrFldEntStPctWait Wait for Res %


3 pmrFldEntStPctOper In Operation %
4 pmrFldEntStPctBlkd Blocked %

Variables Runtime Fields (12): pmrTblVariable


Field Constant Field
1 pmrFldVarTotChgs Total Changes
2 pmrFldVarAvgMinPer Avg Min Per Change
3 pmrFldVarMinVal Min Value
4 pmrFldVarMaxVal Max Value
5 pmrFldVarCurVal Current Value
6 pmrFldVarAvgVal Avg Value

Logs Runtime Fields (13): pmrTblLog


Field Constant Field
1 pmrFldLogNumObsrv # Observations
2 pmrFldLogMinVal Min Value
3 pmrFldLogMaxVal Max Value
4 pmrFldLogAvgVal Avg Value

Location Costing Runtime Fields (14): pmrTblLocCost


Field Constant Field
1 pmrFldLCostOperDlr $ Operation Cost
2 pmrFldLCostOperPct % Operation Cost
3 pmrFldLCostResDlr $ Resource Cost
4 pmrFldLCostResPct % Resource Cost
5 pmrFldLCostTotDlr $ Total Cost
6 pmrFldLCostTotPct % Total Cost

Resource Costing Runtime Fields (16): pmrTblResCost


Field Constant Field
1 pmrFldRCostNonUseDlr $ Non-use Cost
2 pmrFldRCostNonUsePct % Non-Use Cost
3 pmrFldRCostUseDlr $ Usage Cost
4 pmrFldRCostUsePct % Usage Cost
5 pmrFldRCostTotDlr $ Total Cost
6 pmrFldRCostTotPct % Total Cost
ProModel 117
ActiveX

Entity Activity Costing Runtime Fields (17): pmrTblEntCost


Field Constant Field
1 pmrFldECostTotDlr $ Total Cost
2 pmrFldECostTotPct % Total Cost
118
Result Codes (Errors)

Result Codes (Errors)


Field Constant Description of Error
0 pmdErrNoError No Error.
1 pmdErrInvalidTableNum There is no table by that number in ProModel.
2 pmdErrMethodNotApplicable Function does not apply to the selected record (e.g. - SelectMainRecord-
ByName() on the Processing Table)
3 pmdErrInvalidRecordNum Record by that name does not exist, or record has not been selected (when
using Set… or Get…)
4 pmdErrInvalidFieldNum There is no field (column) by that number in the selected table.
5 pmdErrDataTypeMismatch Set… or Get… function does not match data type (e.g. - SetStringField-
Value() used on an integer field
6 pmdErrFieldNotApplicable Field does not exist for the selected record (e.g. - trying to access the RTI
fields for non-RTI macros)
7 pmdErrNotImplemented The selected element has not been ActiveX enabled yet.
8 pmdErrGfxNotImplemented Graphic element has not been ActiveX enabled yet.
9 pmdErrValueNotApplicable Value does not apply for selected field (time units = 6. Arrivals > ent name
set to non-existing rec.)
11 pmdErrParentNotSelected The parent table has not been selected
12 pmdErrObsolete The specified ActiveX element is no longer used
13 pmdErrDataProtected The model is protected, so data can't be accessed
14 pmdErrKeyNotFound No hardware key, data can't be accessed
15 pmdErrReadOnlyField Attempting to write to a read-only field
16 pmdErrJointNotFound Attempting to delete queue/conveyor joint, when none exist (i.e. - has only
start & end points)
99 pmdErrOther Any other kind of error
ProModel 119
ActiveX

Events
Field Constant When does the event fire? Return Values
0 pmeUndefined
1 pmeQuit Just after "Save Current Model?" dialog True = Cancel
Quit
2 pmeSaveBeforeQuit "Save Current Model?" dialog True = Skip Save
dialog
3 pmeSimComplete Simulation Ends Normally True = Skip Stats
dialog
4 pmeSimUserEnd User Selects "Simulation > End Simulation" True = Skip Col-
lect Stats dialog
5 pmeSimPauseOn User Selects "Simulation > Pause Simulation"
6 pmeSimPauseOff User Selects "Simulation > Resume"
7 pmeSimAbEnd Simulation Crashes
8 pmeSimStart Simulation Start (before translation/simulation)
9 pmeTranStart Translation Start (at start of translation for each scenario)
10 pmeTranEnd Translation End (between translation & simulation)
11 pmeEditModeOn Edit Mode Entered (between simulation end and return to
build environment)
12 pmeModLoaded Model Loaded (after successful load)
15 pmeAnimOn Animation On (when animation turned on)
16 pmeAnimOff Animation Off (when animation turned off)
20 pmeMsgInfo
21 pmeMsgOK "GLB Missing" message box, other message box
22 pmeMsgOkCancel
23 pmeMsgRetryCancel
24 pmeMsgYesNo "Couldn't Get Exclusive…" message box
25 pmeMsgYesNoCancel "Save Current Model?" dialog
26 pmeMsgAbortRetryIgnore
30 pmeMsgPrompt
120
Path Colors

Path Colors
Field Constant Name
0 pmdColorBlack Black
128 pmdColorMaroon Maroon
255 pmdColorRed Red
32768 pmdColorDk_Green Dark Green
32896 pmdColorGold Gold
65280 pmdColorLt_Green Light Green
65535 pmdColorYellow Yellow
8388608 pmdColorDk_Blue Dark Blue
8388736 pmdColorPurple Purple
8421376 pmdColorTeal Teal
8421504 pmdColorDk_Gray Dark Gray
12632256 pmdColorLt_Gray Light Gray
16711680 pmdColorMed_Blue Medium Blue
16711935 pmdColorPink Pink
16776960 pmdColorCyan Cyan (Light Blue)
16777215 pmdColorWhite White
ProModel 121
ActiveX

Menu Ids
This method is defined as: MenuCommand<MenuId>,<Parameter>
For most commands, Parameter has no meaning and a zero should be passed. The following is a list of menu IDs that
have no equivalent method in the CProModel interface.

Menu ID Constant Descriptionn Window Parameter


1155 pmaMnuCost Open Cost Dialog Main
1170 pmaMnuSimOpt Open Simulation Options dialog Main
1185 pmaMnuGenInfo Open General Info Dialog Main
1500 pmaMnuFind Open Find Dialog Main
1505 pmaMnuReplace Open Replace Dialog Main
Repeat Last Search Replace
1510 pmaMnuFindNext Operation Main
2450 pmaMnuSimRun Launch SimRunner Main
2500 pmaMnuViewStats Launch Output Module Main 1 = Open Hidden
2505 pmaMnuViewTrace View Trace File Main
2600 pmaMnuGfxEdit Launch Graphic Editor Main
2605 pmaMnuShiftDef Launch Shift Editor Main
2650 pmaMnuStatFit Launch Stat::Fit Main
2754 pmaMnuShortcut View Shortcut Panel Main
2755 pmaMnuRefresh Refresh Layout Main
2850 pmaMnuViewDef Open Views Dialog Main
2861 pmaMnuView1 Set Layout to 1st View Main
2862 pmaMnuView2 Set Layout to 2nd view Main
2889 pmaMnuView29 Set Layout to 29th view Main
2906 pmaMnuSnapGrid Toggle “Snap to Grid” Main
2908 pmaMnuShowGrid Toggle Grid On/Off Main
Open Edit Table Font Selection
2910 pmaMnuFont Dialog Main
2920 pmaMnuPMOpt Open Options Dialog Main
2942 pmaMnuGridSet Ope Grid Grid Settings Dialog Main
Open Background Color Selection
2944 pmaMnuBackColor Dialog Main
2946 pmaMnuPathColor Open Routing Path Color Dialog Main
2951 pmaMnuScenarios Open Scenarios Dialog Main
2952 pmaMnuModParams Open Model Parameters Dialog Main
2980 pmaMnuResetWin Reset Window Positions Main
3000 pmaMnuAboutPM Open About box Main
3005 pmaMnuPMSupport Go To Support Page on the Web Main
122
Menu Ids

Menu ID Constant Descriptionn Window Parameter


3010 pmaMnuShowHidNet Toggle “Show Hidden Networks” Main
3015 pmaMnuShowRtgPath Toggle “Show Routing Paths” Main
3020 pmaMnuColor Open Edit Table Color Select Dialog Main
Pop Up Layout Context Menu
3200 pmaMnuCntxtMenu (general) Layout
4415 pmaMnuMakePkg Open Create Package Dialog Main
4416 pmaMnuInstallPkg Open Install Package Dialog Main
4420 pmaMnuPrint2File Open Print Text to File Dialog Main
4500 pmaMnuViewText View Text Main
4600 pmaMnuPrintLayout Open Print Layout Dialog Main
4601 pmaMnuPrntrSetup Open Print Setup Dialog Main
4602 pmaMnuPrint2Prntr Open Print Text Dialog Main
4650 pmaMnuHelpIndex Help Index Main
4655 pmaMnuHelpCntxt Context Help Main
4710 pmaMnuFile1 Open File #1 in history list Main
4714 pmaMnuFile5 Open File #5 in history list Main
4803 pmaMnuSimClock Pop Up Simulation Clock Menu Simulation
4804 pmaMnuTraceOff Trace Off Simulation
4805 pmaMnuTraceClose Trace Close Simulation
4806 pmaMnuTraceStep Trace Step Simulation
4807 pmaMnuTraceContin Trace Continuous Simulation
4808 pmaMnuTrace2Win Trace to Window Simulation
4810 pmaMnuTrace2File Trace to File Simulation
4811 pmaMnuAnimOnOff Toggle Animation On/Off Simulation
4814 pmaMnuUserPause Open User Pause Dialog Simulation
4815 pmaMnuShowLegend Show Legend Simulation
4816 pmaMnuPauseOnOff Pause Resume Simulation
4817 pmaMnuSimInfo1Loc Open Location Info Dialog Simulation
4818 pmaMnuSimInfoAll Open All Locations Info Dialog Simulation
4821 pmaMnuSimInfoVars Open Variable Info Dialog Simulation
4822 pmaMnuSimInfoArray Open Array Info Dialog Simulation
4824 pmaMnuSimDebug Open Debug Options Dialog Simulation
4825 pmaMnuSimInteract Open Interactive Subroutines Dialog Simulation
4826 pmaMnuDynPlotNew New Dynamic Plots Simulation
4827 pmaMnuDynPlotConfig Configure Dynamic Plots Simulation
4850 pmaMnuWorkSrch Resource Work Search Resources
4851 pmaMnuParkSrch Resource Park Search Resources
ProModel 123
ActiveX
124
Menu Ids
PROMODEL Innovate 125
User Guide

Index

A D

AddBackgroundBitmap 58 DeleteRecord 64
AnimSpeedChange 41
AppendEntitySpot 59
AppendGraphicIcon 60 E
AppendGraphicIconSize 61
AppendRecord 62
AppendRoutingPoint 63 EndReplication 9
Arrays Table 101 EndSimulation 10
Arrival Cycles Table 102 Entities Table 95
values subtable 103 Entity Graphics Table 112
Arrivals Table 99 Entity Spot Graphics Table 112
Attibutes Table 100 External Files Table 103

B F

Background Graphics Table 112 FieldName 79

C G

CloseFile 78 Gauge/Tank Graphics Table 109


Counter Graphics Table 109 General Information Table 104
GetAnimationSpeed 51
GetAnimationState 50
GetEventsObject 11
GetIntFieldValue 65
126

GetPositionInfo 80 N
GetRealFieldValue 66
GetRecordCount 67
GetSelectedsFromType 68
GetSimTime 12 New 20
GetStatus 13
GetStatValue 52 O
GetStringFieldValue 69
GetValue 81
GetVersion 14
OpenFile 82
OpenModule 21
I
P
InputTextPrompt 42
InsertRecord 70
Path Networks Table 95
interfaces subtable 96
L mapping destinations subtable 96
mappings subtable 96
nodes subtable 96
Library Graphics Table 108 segments subtable 96
ListSelectPrompt 44 PeriodName 83
LoadDefaults 15 PMEventsHandler 39
LoadModel 16 AnimSpeedChange 41
Location Graphics Table 107 InputTextPrompt 42
Locations Table 93 ListSelectPrompt 44
clock downtimes subtable 94 RunError 46
entry downtimes subtable 94 TranslationError 47
setup downtimes subtable 94 UserZoom 48
usage downtimes subtable 94 Populate 71
PositionIsValid 84
Process Table 104
M ProModel Application Object 8
EndReplication 9
EndSimulation 10
GetEventsObject 11
Macros Table 102
GetSimTime 12
MenuCommand 17
GetStatus 13
MergeModel 18
GetVersion 14
Model Defaults Table 113
LoadDefaults 15
Model Parameters Table 105
LoadModel 16
MsgBox 19
PROMODEL Innovate 127
User Guide

MenuCommand 17 GetAnimationState 50
MergeModel 18 GetStatValue 52
MsgBox 19 SetAnimationSpeed 55
New 20 SetAnimationState 54
OpenModule 21 SetStatValue 56
Quit 22 ProModel.CProModelData 57
RedrawLayout 23 ProModel.CRuntime 49
RedrawTables 24
RunScenarios 25
Save 26 Q
SaveAs 27
SetMacro 28
SetMenus 29 Queue/Conveyor Graphics Table 108
SetMessageMode 30 Queue/Conveyor Joints Table 113
SetPan 31 Quit 22
SetView 32
SetViewRect 33
SetWindowPos 34 R
ShowTranslationDlg 35
Simulate 36
Zoom 37 RDBDataServer Object 77
ProModel Data Object 57 CloseFile 78
AddBackgroundBitmap 58 FieldName 79
AppendEntitySpot 59 Get PositionInfo 80
AppendGraphicIcon 60 GetValue 81
AppendGraphicIconSize 61 OpenFile 82
AppendRecord 62 PeriodName 83
AppendRoutingPoint 63 PositionIsValid 84
DeleteRecord 64 RecordName 85
GetIntFieldValue 65 ReplicationNumber 86
GetRealFieldValue 66 ScenarioName 87
GetRecordCount 67 SelectData 88
GetSelectedsFromType 68 TableName 89
GetStringFieldValue 69 RecordName 85
InsertRecord 70 RedrawLayout 23
Populate 71 RedrawTables 24
SelectMainRecordByIndex 72 Region Graphics Table 112
SelectMainRecordByName 73 ReplicationNumber 86
SetIntFieldValue 74 Resource Graphics Table 108
SetRealFieldValue 75 Resources Table 96
SetStringFieldValue 76 clock downtimes subtable 98
ProModel Runtime Object 49 node logic subtable 99
GetAnimationSpeed 51 park nodes subtable 98
128

park search subtable 98 Streams Table 104


resource points subtable 99 Subroutines Table 102
search locations subtable 98 parameters subtable 102
usage downtimes subtable 98
work search subtable 98
Routing Points Table 113 T
Routing Subtable 105
RunError 46
RunScenarios 25 Table Functions Table 103
function values subtable 103
TableName 89
S Text Graphics Table 111
TranslationError 47

Save 26
SaveAs 27 U
ScenarioName 87
Scenarios Table 105
parameters subtable 106 User Distributions Table 103
SelectData 88 distributions values subtable 103
SelectMainRecordByIndex 72 UserZoom 48
SelectMainRecordByName 73
SetAnimationSpeed 55
SetAnimationState 54 V
SetIntFieldValue 74
SetMacro 28
SetMenus 29 Variable Graphics Table 113
SetMessageMode 30 Variables Table 101
SetPan 31 Views Table 113
SetRealFieldValue 75
SetStatValue 56
SetStringFieldValue 76 Z
SetView 32
SetViewRect 33
SetWindowPos 34
Zoom 37
Shift Assigment Table 100
location index subtable 100
resource index subtable 100
shift file index subtable 100
ShowTranslationDlg 35
Simulate 36
Simulation Options Table 106
Status Light Graphics Table 111

You might also like