Class Documentation COMOS DLL EnUS
Class Documentation COMOS DLL EnUS
Change list
Hierarchy Objects
COMOS constants
Change list
This chapter contains the following information:Base object instances
Hierarchy objects
COMOS constants
Hierarchy objects
COMOS constants
COMOS objects
Navigating/New objects
Methods determine the behavior of the object and influence the properties. The
state of an object is a static characteristic. As opposed to the properties,
methods determine the dynamic object behavior.
Events are messages that are received by an object and start the execution of
previously defined program code. They represent the actual interface to Windows.
Thus, for example, clicking on a control element with the mouse initiates an
OnClick event. Events are managed and processed in so-called Event Handlers.
Inheritance
An important feature of objects is the fact that they inherit information from
classes. The class hierarchy is designed beforehand by the developer. It is fixed.
Truly efficient working / programming is only possible through inheritance.
Objects are created from classes. Therefore, an object is also referred to as being
an "instance" of a class. The class itself is not an object but a template.
Thus you cannot work with classes, you require objects to do so. If you want to
create an object that you can work with, you would generally search for a suitable
class with the ProgID, call "CreateNew", and then you would already have an object.
Using objects
COMOS objects
COMOS objects own methods and properties. However, COMOS objects do not react to
events.
It is thus not possible to view a list of events made available by the operating
system and then to react to these events by controlling the objects accordingly.
Instead, scripts are made available. Some of these scripts have names similar to
those of operating system events. For example, there is a script block called
"OnClick" on the specifications, which sounds similar to an operating system event
such as "DoubleClick", for example.
Such similarities of names arise because the scripts themselves react to operating
system events, and the names of the scripts already explain which events trigger
the script blocks. However, the similarity of names does not change the following
statement: you cannot react to events within COMOS objects. Instead, scripts are
made available.
You can find more information on this topic in the "COMOS Platform Administration"
manual, keyword "Reference of the script blocks at attributes and base objects".
Inheritance
COMOS uses the inheritance in classes. Therefore the classes are divided into two
groups:
Independent classes
Classes that are so special that no inheritance is required. The instances of these
classes are also called "administration objects".
In COMOS there is only one object that is allowed to be created directly out of a
class: workset. And this object may only be created exactly once (per session).
Instead, you must exactly specify where the new object is to be created, find the
(future) owner, and then call a method at the owner that creates the new object.
In other words, you first need to control the object model used in COMOS. With the
help of this object model you can see which objects are allowed and where. You then
write a code in which you navigate to a specific location in the database (the
object must exist already) and then create a new child object in one of the
collections of this object.
Navigating/New objects
As already stated above, you are not allowed to "freely" create objects within
Comos. Instead you must find an existing object, i.e. navigate to an object. At
this object you can then create the permitted objects.
The starting point of the hierarchy is the workset, see IComosDWorkset. Underneath
the workset there are three classes: the projects, the users and the UserGroups.
The users and user groups are located underneath the workset because they are
intended to be able to operate across projects. For that reason you cannot append
the users and user groups underneath the project.
GetAllProjects
GetAllUserGroups
GetAllUsers
You can find the subsequent class hierarchy in section 6.1: OwnCollections.
Example: the fact that base objects (CDevices), engineering objects (devices) and
documents are located underneath the project is not surprising. However, the
graphic also shows that run cases (Cases) are located directly underneath the
project. If you want to insert or delete a run case, you must then call up the
project object, detect the collection of run cases there, and then edit this
collection.
Case-sensitive/ Case-insensitive
IComosBaseObject
IComosDCase
IComosDCDevice
IComosDCLink
IComosDConnector
IComosDConnectorAttributeItem
IComosDCSpecificationSet
IComosDDevice
IComosDDevSymbol
IComosDDocObj
IComosDDocument
IComosDDocumentType
IComosDLanguage
IComosDLocation
IComosDNumberRangeGenerator
IComosDObjectHistoryEntries
IComosDObjectHistoryEntry
IComosDObjectRevision
IComosDPhysUnit
IComosDPhysUnitGroup
IComosDProgressBarHider
IComosDProject
IComosDRight
IComosDSpecification
IComosDSpecificationSet
IComosDStandardTable
IComosDStandardValue
IComosDTimestamp
IComosDUnit
IComosDUser
IComosDUserGroup
IComosDWorkingOverlay
IPLTBinObjectArchive
IPLTPickList
IPLTPickListEntrys
IPLTVarstorage
IPLTXValueArrayEntry
Old interfaces
Several additional interfaces are available in the IPLT version as well as in the
IComosD version. These interfaces are only documented in the IComosD version.
Case-sensitive/ Case-insensitive
IComosBaseObject
AcceptUpdateData
AddToErrorObjects
AliasFullLabel
AliasFullLabelWithoutFolder
AliasRelativLabel
AliasRelativeLabelWithoutFolder
AliasSignedLabel
AllBackPointerSpecificationsWithLinkObject)
AllBackPointerSpecificationsWithLinkObjectAndName
AllowWritingWhileSecurityLocked
Assign
AssignIgnoreReferences
BackPointerSpecificationsWithLinkObject
BackPointerSpecificationsWithLinkObjectAndName
Backup
CalculateLinkedSpecifications
Check
CheckAll
CheckAndCorrectObjects
CheckDelete
CheckForPaste
CheckLayer
CheckLinkedSpecifications
CheckMerge
CheckObject
CopyAll
CopyFromMode
CopyInOtherProject
CrossProjectCopy
CS
DeleteAll
DeleteErrorObjects
Description
DiscardUpdateData
Dispatch
ForcedRelease
FullLabel
FullLabelWithoutFolder
FullName
GetBackPointerRightsWithReference
GetDeleteFlag
GetHashCode
GetInternationalDescription
GetInternationalLabel
GetNextTextFromNumberRangeGenerator
GetObjectByPathFullName
GetObjectOverlayBehavior
GetObjectRights
GetOwnInternationalDescription
GetSavedAndDeleted
GetScriptEngine
GetShadowCollection
GetSoftDeleteFlag
GetStatusBase
GetSystemStatus
GetUserRights
HexAddress
Histories
InfoText
InheritCheckIn
InheritMode
InheritParent
InheritStatus
Invalid
IsAdminLocked
IsAlias
IsChanged
IsChangedAll
IsExpandable
IsFolder
IsInheritCheckInEnabled
IsLocked
IsOwnAdminLocked
IsOwnExpandable
IsOwnSysLocked
IsOwnSystemRelevant
IsSameCheckedInObject
IsSaved
IsShadowObject
IsSysLocked
IsSystemRelevant
IsVirtual
IsXObjLoaded
Label
LoadAll
LoggedDeleteAll
MatchScan
Merge
Name
ObjectCanBeCopiedOrMovedToNewOwnerWithNRG
ObjectHistoryEntries
Owner
OwnerByClass
OwnerByClassificationKey
OwnerCollection
OwnXMLString
OwnXObjExist
Paste
Paste2
PathFullName
Project
RecalculateHierarchyInformation
RelativLabel
RelativLabel2
RelativLabelWithoutFolder
RemoveFromWorkingOverlay
Restore
RestoreFromHigherWorkingOverlay
RS
Save
SaveAll
ScanDevices
ScanDevicesWithCObject
ScanDevicesWithCObjectX
ScanDevicesWithDeleted
ScanDevicesX
ScanDocuments
ScanObjects
ScanObjectsByClass
ScriptEngine
SetAdminLocked
SetChanged
SetExpandable
SetInternationalDescription
SetInvisibleOnMerge
SetObjectOverlayBehavior
SetOwnInternationalDescription
SetSysLocked
SetSystemRelevant
ShutDownXObj
SignedLabel
SingleCheckDelete
Spec
Specs
SystemFullName
SystemRefCount
SystemRO
SystemTemporary
SystemType
SystemTypeName
SystemUID
TextIsProvidedByNumberRangeGenerator
ThisObj
Undo
UndoAll
UndoDelete
Workset
XMLGet
XMLSet
XMLString
XObj
XObjEquals
XObjExist
IComosBaseObject
The basic and most primary COMOS object class, from which almost all other classes
inherit methods and properties.
Exceptions
AcceptUpdateData
AcceptUpdateData ( ByVal Recursive as Boolean )
Always: The status is applied in the update layer for the current object. The
status in the customer layer is overwritten.
In addition, if recursive = true: The status is applied in the update layer for all
child objects.
AddToErrorObjects
AliasFullLabel
AliasFullLabel() As String
Returns the label of the object, including all owners, both in its own branch and
in the alias branch. Only superior folder objects are not considered. The alias
evaluation is only carried out if WorkSet.UseAliasForLabelFunctions is set to True.
AliasFullLabelWithoutFolder
AliasFullLabelWithoutFolder() As String
Returns the Label of the object, including all owners, both in its own branch and
in the alias branch. No folder objects are considered. The alias evaluation is only
carried out if WorkSet.UseAliasForLabelFunctions is set to True.
AliasRelativLabel
The same as for RelativLabel, including the alias branch. The alias evaluation is
only carried out if WorkSet.UseAliasForLabelFunctions is set to True.
AliasRelativeLabelWithoutFolder
AliasSignedLabel
AliasSignedLabel() as String
The same as for SignedLabel, including the alias branch. The alias evaluation is
only carried out if WorkSet.UseAliasForLabelFunctions is set to True.
AllBackPointerSpecificationsWithLinkObject)
AllBackPointerSpecificationsWithLinkObject() As IComosDCollection
Note This function can take a great deal of time, depending on the size of the
database, and should be used with caution.
AllBackPointerSpecificationsWithLinkObjectAndName
AllBackPointerSpecificationsWithLinkObjectAndName(ByVal Name as String) as
IComosDCollection
AllowWritingWhileSecurityLocked
AllowWritingWhileSecurityLocked ( ) as Boolean
True: The write rights are only missing at the current object due to the
"AdminLock" or "SysLock" flag.
If the write rights at an object are only missing due to the "AdminLock" or
"SysLock" flag, this method supplies "true". In all other cases, "false" is
supplied. If write rights exist at the current object, the result of this method
has no meaning.
There are exceptions when an object can be changed even if the "AdminLock" or
"SysLock" flag is set. Example: Change only affects the property "Description". If
there is such an exception and the method "AllowWritingWhileSecurityLocked"
indicates that no other reasons are present for write protection, the change is
saved.
Assign
Assign(source_obj as Object, newrootobjects as Object, otherprojectpointer as
Boolean)
AssignIgnoreReferences
Copies the transferred source object (parameter source) via the current object
(this). New root objects that are created during the copy process are pasted into
the transferred TempCollection newRootObjects. Unlike the Assign method, in this
case references which point from the current one are ignored.
BackPointerSpecificationsWithLinkObject
BackPointerSpecificationsWithLinkObject() As IComosDCollection
Groups objects of the IComosDSpecification class from the current project, the
LinkObject pointer of which refers to the current object in a collection.
Note This function can take a great deal of time, depending on the size of the
database, and should be used with caution.
BackPointerSpecificationsWithLinkObjectAndName
Backup
Backup() as Object
Backup creates a temporary copy of an object that can be written back to the object
later by using Restore (it is better to use Save and Undo).
CalculateLinkedSpecifications()
Check
Check() as Long
Return values
no error
no set name
Name is not unique (an object with the name already exists
4
No set owner (object is not located in any structure)
Object is virtual
200
201
202
Application example
If ObjectCheck= 0 then
ObjectSave
else
Endif
CheckAll() as Long
Checks the object structure of the relevant object and all secondary objects in the
hierarchy, in the case of objects that are new or have been changed.
CheckAndCorrectObjects
CheckAndCorrectObjects() as Long
Checks the object and all secondary objects in the hierarchy for errors in their
structure and corrects them as much as possible. Defective objects are entered into
the error list of the project.
CheckDelete
CheckDelete() as Long
This function reacts to the script block CheckDelete on the CDevice. If the script
block CheckDelete does not return an empty string, the result 8
(PROPERTY_ERROR_ON_CHECK) is returned, and the return value string from the script
is set on the workset as LastErrorText.
In Section Instructions Examples Basics History Extra
CheckForPaste
CheckLayer
Checks the layers (defined working areas) of the object against the specified ones
and those of the user.
CheckLinkedSpecifications
CheckLinkedSpecifications() as IComosDCollection
Returns a list with all the specifications of the object that would be changed by
static linking.
Static linking:
Dynamic linking:
CheckMerge
This method checks if two objects may be merged with each other via Merge():
Checking the write rights and delete rights for the respective objects or
subobjects
Parameters
slaveObject as IComosBaseObject
fastCheck as Boolean
Determines whether the check is stopped at the first problem, or whether all
problems are identified.
CheckObject
CheckObject() as Long
Same as Check, but also for objects that have not been changed.
CopyAll
CopyAll() as Object
CopyFromMode() as Boolean
Only for objects from the Copy-Tree (Copy structure). New Reference := False
CopyInOtherProject
Special function for object matcher and cross-project copying. Subsequently brings
references into the target project.
CrossProjectCopy
This method can be used to copy the current object (this) to another project. The
new, copied object is added below the transferred owner. If the copy operation
creates additional new root objects (e.g. as a result of references), then these
are inserted in the transferred collection newRootObjects.
CS
CS() as IComosDTimestamp
Returns the timestamp (creation stamp) at the time of the first save action.
DeleteAll
DeleteAll() as Long
Deletes objects including their hierarchical substructure. Does not delete any data
in the database; instead, only sets the DeleteFlag of the objects to True. Before
DeleteAll, CheckDelete must be called.
DeleteErrorObjects
DeleteErrorObjects() as IComosDObjectCollection
Description
Description() as String
DiscardUpdateData
True: All objects below the current object are discarded in the consolidation
layer.
Always: The status is discarded in the update layer for the current object. The
status in the customer layer is retained.
In addition, if recursive = true: The status is retained in the customer layer for
all child objects.
Dispatch
Dispatch() as Object
ForcedRelease
ForcedRelease() as Boolean
Sets a flag at the object which, in the case of True, allows the object to be
deleted from the cache by means of ReleaseObjects, as a matter of priority.
FullLabel
FullLabel() as String
Returns the Label of the object including all owners. Superior folder objects are
not considered.
FullLabelWithoutFolder
FullLabelWithoutFolder() as String
Returns the Label of the object including all owners. Folder objects are not
considered.
FullName
FullName() as String
Name of the object including all owners. Superior folder objects are not
considered.
GetBackPointerRightsWithReference
IComosDOwnCollection GetBackPointerRightsWithReference()
Returns a collection with all rights objects which use the current object (this) as
a reference.
Return value: Collection with rights objects (type IComosDRight) which point to the
current object.
GetDeleteFlag
GetDeleteFlag() as Boolean
Boolean value for DeleteFlag of the object. True in the case of deleted objects.
GetHashCode
long GetHashCode()
Returns a 32-bit hash value that uniquely identifies the current object. The
special feature of this method is that it can be used even if the object has
already been deleted.
Return value: 32-bit integer value which uniquely identifies the current object.
In Section Instructions Examples Basics History Extra
GetInternationalDescription
Returns the description of the current object (this) in the language specified by
the index.
GetInternationalLabel
Localized (foreign-language) text for the label. The number in the index of the
project languages is used as the parameter. As of COMOS version 8.1, only the label
of physical units is translated.
GetNextTextFromNumberRangeGenerator
NumberRangeGeneratorSelectedPropertyName
NumberRangeGeneratorSelectedPropertyLabel
The method provides the next text supplied by the NumberRangeGenerator for the
specified property. If the permitted range in the NumberRangeGenerator is
exhausted, an empty string is supplied.
GetObjectByPathFullName
GetObjectOverlayBehavior
Method from the working layer environment. States the behavior of an object in the
working layer environment:
Type ObjectOverlayBehaviour_Release
Response in case of release: Should this object be released? Default = yes.
Type ObjectOverlayBehaviour_Relevant
Should this object be included in a layer in the event of a change? Default = yes.
GetObjectRights
GetObjectRights() As Long
The effective COMOS rights of the object for the current user. Rights: Read, Write,
Create, Delete, Revision rights (3x), Rights allocation.
GetOwnInternationalDescription
The object’s own description text in the language specified by the parameter.
GetSavedAndDeleted() As Boolean
GetScriptEngine
GetShadowCollection
OwnSpecifications
OwnConnectors
OwnCConnectors
OwnDevSymbols
CLinks
DocObjects
Forms a collection of objects. The collection is visible when you are logged in the
respective working layer. The GetShadowCollection method is an auxiliary method in
connection with the database update.
GetSoftDeleteFlag
GetSoftDeleteFlag() As Boolean
Method from the working layer environment. Shows if an object was deleted in a
layer. These are not removed from the object model, but instead are marked as
deleted with the SoftDelete-Flag. The objects exist in the object model, depending
on the SoftDeleteFilter (see Workset.SoftDeleteFilter). Objects with SoftDelete-
Flag are Read-Only.
GetStatusBase
Returns the status of the object specified via the index parameter. There are 13
different statuses, meaning that index may be in the range between 1 and 13. The
result of the method is a value between 0 and 3. The special feature of this method
is that all system types except for Device use the new query-based status
maintenance feature (provided this is activated on the current project).
GetSystemStatus
Determines various items of status information for the object regarding working
layers. This information is called in the working layers and history display or for
the object status on the interfaces, for example. The following constants can be
used for type :
System_Status_Overlay (100)
Returns the status for the working layer display on the interface. This status is
determined from the individual statuses listed below.
System_Status_ObjectRevision (101)
Returns the change status of the object for the comparison time, which is set with
Workset.SetCompareTimestamp . This status is used for the history display in the
interface.
System_Status_Overlay_Object (102)
Returns the processing status of the object in the layer: [unchanged, new, changed,
deleted in the layer, contained in another layer].
System_Status_Overlay_Structure (103)
The return value states whether there is at least one secondary object in the layer
that is new or has been changed.
System_Status_Overlay_SubObjects (104)
The return value states whether there is at least one mapped object in the layer
that is new or has been changed.
System_Status_Overlay_Collision (105)
The return value states whether a collision was noted at the object.
System_Status_Overlay_Collision_In_SubObjects (106)
The return value states whether there is at least one changed or newly-mapped
object with a collision in the layer.
System_Status_Overlay_Collision_In_Structure (107)
The return value states whether there is at least one changed or newly-secondary
object with a collision in the layer.
System_Status_Overlay_Collision_Delete_In_SubObjects (108)
The return value states whether there is at least one deleted mapped object with a
collision in the layer (hard delete from the released area).
System_Status_Overlay_Collision_Delete_In_Structure (109)
The return value states whether there is at least one deleted secondary object with
a collision in the layer (hard delete from the released area).
System_Status_Overlay_SoftDelete_In_Structure (110)
The return value states whether there is at least one deleted secondary object in
the layer.
System_Status_Overlay_SoftDelete_In_SubObjects (111)
The return value states whether there is at least one deleted mapped object in the
layer.
System_Status_Overlay_Collision_SoftDelete_In_Structure (112)
The return value states whether there is at least one deleted secondary object with
a collision in the layer.
System_Status_Overlay_Collision_SoftDelete_In_SubObjects (113)
The return value states whether there is at least one deleted mapped object with a
collision in the layer.
System_Status_Overlay_Do_Not_Release_Object (114)
The return value states whether the object is not to be taken into consideration in
the case of a release.
System_Status_Overlay_Object_Not_OverlayRelevant (115)
System_Status_Overlay_ID (116)
The return value is the ID of the layer from which the object currently originates.
GetUserRights
HexAddress
HexAddress() As String
Returns a unique identifier for a COMOS object. This ID remains constant for each
COMOS session. By contrast, the COMOS SystemUID for inherited objects, or for
objects that have been checked into working layers, does not remain constant for
each session.
However, the HexAddress may not be saved in archives or similar, since the COMOS
object will be given a different HexAddress in the next COMOS session.
Histories
Historys() As IComosDHistorys
Returns a set of IComosDHistory entries for an object. These contain the values
that this object previously had in the released area (object history).
InfoText
InfoText() As String
InheritCheckIn
InheritCheckIn()
Example
Dev.Specifications.Count = 3
Dev.OwnSpecifications.Count = 0
These 3 specifications are SystemTemporary (i.e. read-only) and they first have to
be checked in before they can be edited. This is carried out using the
InheritCheckIn instruction. (Sp1.InheritCheckIn)
Dev.Specifications.Count = 3
Dev.OwnSpecifications.Count = 1
InheritMode
InheritMode() As Long
Mode for the behavior of this object when inheriting. There are currently three
modes (and three constants of the InheritMode).
active
inactive
InheritParent
InheritParent() As Object
Object from which properties are inherited. The inherited information is calculated
when a property at the object is queried for the first time.
InheritStatus
InheritStatus() As String
This object was initially inherited and then checked in. By checking in, the object
was also added to the OwnCollection.
Invalid
Invalid ( ) as Boolean
True: The current object is invalid or outdated and must be reloaded. Examples why
an object can be invalid:
IsAdminLocked
IsAdminLocked ( ) as Boolean
IsAlias
IsAlias() As Boolean
Checks whether an object is in the Alias tree; i.e. in the unit view or location
view under @Alias.
IsChanged
IsChanged() As Boolean
Checks whether the object has been changed since the last save.
IsChangedAll
IsChanged() As Boolean
Checks whether the object has been changed since the last save.
IsExpandable
IsExpandable ( ) as Boolean
True: Object is locked with "AdminLock" or "SysLock" and child objects may be
created.
Returns the status of the "Expandable" flag. The "Expandable" flag specifies if
additional objects can be created below an object locked with "AdminLock" or
"SysLock". This flag has no meaning for unlocked objects.
In Section Instructions Examples Basics History Extra
IsFolder
IsFolder() As Boolean
Folder property; the Boolean value is evaluated for FullName, FullLabel, etc.
IsInheritCheckInEnabled
IsInheritCheckInEnabled() As Boolean
IsLocked
IsLocked() As Boolean
Displays whether the object was locked with the aid of the Properties Lock or
SystemLock in order to prevent changes. (Lock = True, SystemLock > 0)
IsOwnAdminLocked ( ) as Long
Difference to "IsAdminLocked" flag: The "IsAdminLocked" flag returns the status set
at the object as well as an inherited status.
IsOwnExpandable
IsOwnExpandable ( ) as Long
IsOwnSysLocked
IsOwnSysLocked ( ) as Long
Returns the status of the "SysLock" flag set at the object. Difference to
"IsSysLocked" flag: The "IsSysLocked" flag returns the status set at the object as
well as an inherited status.
IsOwnSystemRelevant
IsOwnSystemRelevant ( ) as Long
Return value: long
Returns the status of the "SystemRelevant" flag set at the object. Difference to
"IsSystemRelevant" flag: The "IsSystemRelevant" flag returns the status set at the
object as well as an inherited status.
IsSameCheckedInObject
Checks whether both objects would produce the same object on checking in (no longer
necessary with the current inheritance mechanism).
IsSaved
IsSaved() As Boolean
IsShadowObject
IsShadowObject ( ) as Boolean
IsSysLocked
IsSysLocked ( ) as Boolean
IsSystemRelevant
IsSystemRelevant ( ) as Boolean
IsVirtual
IsVirtual() As Boolean
IsXObjLoaded
Returns TRUE if the current COMOS object owns an XObject and this has already been
loaded in the memory. FALSE is returned for COMOS objects that do not own an
XObject or whose XObject has not yet been loaded in the memory.
Label() As String
Label, generally available for objects of the classes: CDevice, Device, Document,
PhysUnit, PhysUnitGroup. Also available for all others in read-only status; instead
returns the name of the object.
LoadAll
LoadAll()
Loads objects together with their substructure (as with copying) and, at the end,
shows a message containing the number of objects found and the time required.
LoggedDeleteAll
This method cannot be used any more for technical reasons and may be removed in a
future version. A warning will be displayed if it is called.
MatchScan
MatchScan(Val as Object) as Boolean
Checks whether the object matches the search carried out via Workset.Scan. In the
same way as for the function pair in ScanDevices in connection with
MatchScanDevices, but in this case without any object restriction (not only for
device).
Merge
Merges two objects of the same object type. CheckMerge is performed prior to the
merge operation to check the preconditions. See section CheckMerge.
You can find additional information on this topic in the "COMOS Platform
Administration" manual, section "Merging objects", keyword "Methods in the
COMOS.dll".
Parameters
slaveObject as IComosBaseObject
mergeMode as Long
Name
Name() as String
The object name must be unique throughout the collection of the owner. However, for
Devices the OwnerCollection has to be unique in addition to the FullName.
ObjectCanBeCopiedOrMovedToNewOwnerWithNRG
The NumberRangeGenerator were also responsible for the object to be copied or moved
ObjectHistoryEntries
ObjectHistoryEntries
Returns the history entries of an object. The history entries of an object are
sorted by layer (the released area first) and in ascending order by the period of
validity.
WithRecursion
WithRecursion = FALSE
WithRecursion = TRUE
The history entries of the object and all objects located below it are determined.
Note With this variation, all objects of the layer must be checked. The runtime is
therefore proportional to number of objects in the layer.
WithStackUp
WithStackUp = FALSE
Only history entries of the current layer of the object are determined.
WithStackUp = TRUE
The history entries of all layers that are part of the overlay are determined.
Superordinate layers come first in the collection.
In Section Instructions Examples Basics History Extra
Owner
Owner() as Object
OwnerByClass
Returns the first superordinate object of the hierarchy from one of the stated
classes.
If the class passed as parameter is identical to the class of the object at which
the function is called: Returns the object.
OwnerByClassificationKey
Parameter searchKey
Index of classification type in which search is to take place. Constants see Module
ClassificationTypes or keyword "classificationIndex".
Notice
Parameter searchClassification
Searched classification
0 - Hierarchical classification
1 - Functional classification
This method searches the chain of owners starting at the current object.
Abort conditions:
The end of the object hierarchy has been reached (no additional child object
exists). NULL is returned in this case.
Example:
Separator
OwnerCollection
OwnerCollection() as Object
OwnXMLString
OwnXMLString() as String
Own-Property to IComosBaseObject.XMLString.
OwnXObjExist
Paste
Instruction to paste the specified objects underneath the current object and to
save them if required. The first parameter can be either a IComosBaseObject or a
IComosDCollection (TempCollection), depending on whether one or more objects are to
be pasted.
The new owner is the current object at which the function was called.
The Save parameter defines whether saving should be carried out immediately after
executing the function.
Save should be set to FALSE in cases where the option to undo or cancel is
required, since otherwise the database will be directly updated when the function
is run. The Paste function already includes a call for the CheckForPaste function,
meaning that a prior CheckForPaste function call is only required in cases that
require interaction and/or a separate evaluation of the result of the CheckForPaste
action.
In Section Instructions Examples Basics History Extra
Paste2
Paste2() owns a restricted parameter list that allows the function to be used in
scripts.
When the Paste() function is executed and the save parameter is used to specify
whether to save immediately after executing the function, saving will not be
carried out immediately in the case of Paste2().
PathFullName
Unique FullName (includes the names and classes of the owner objects) relative to
the specified object.
Project
Project ( ) as IComosDProject
RecalculateHierarchyInformation
void RecalculateHierarchyInformation()
Recalculates the working layer display, starting at the current object (this),
including all subobjects.
RelativLabel
Searches the shared owner of the object and the parameter object and outputs the
labels from this point up to the object.
Example:
Label(Unit2)|Label(Device_B) .
With FullLabel, the entire path name is output as one item, so that no prefix is
used. With RelativLabel, only parts of the path name are output. If you were to
"assemble" a FullLabel from multiple RelativLabel , then in theory the setting of
the prefix would have an effect.
Definition
The addition of the hierarchical RelativLabel must result in the same text as a
FullLabel . For that reason, the prefix is not evaluated in RelativLabel and only
the delimiter is used.
RelativLabel2
Checks whether the object transferred as parameter val1 is the direct owner of the
object for which the method is called.
If yes, the labels are concatenated up to that object, with the exception of the
val1 label.
Parameter consideralias:
RelativLabelWithoutFolder
Returns the RelativLabel of the object including all owners. No folder objects are
considered.
RemoveFromWorkingOverlay
Removes the current object and (as an option) all objects located underneath it
(recursive = TRUE) from the current working layer.
If the permissions for removal from the working layer are missing for one or more
objects in the set to be removed, then no object is removed. All objects for which
there are no permissions are listed in the returned IComosDCollection.
Restore
Restore(Val as Object)
Restore restores an object to the state created during the backup process (it is
better to use Save and Undo).
RestoreFromHigherWorkingOverlay
RestoreFromHigherWorkingOverlay() as Boolean
Method from the working layer environment. Removes the object from the current
layer. This function only restores the object on which the function was called.
Caution: This is not a COMOS delete action. When deleting is carried out in COMOS,
the SoftDeleteFlag is set (see IcomosBaseObject.GetSoftDeleteFlag).
RS
RS() as IComosDTimestamp
Save
Save() as Long
Saves the current object. Use this in conjunction with Check! Example: see Check
SaveAll
SaveAll() as Long
Saves the current object, including the complete substructure; use this in
conjunction with CheckAll! Example: see CheckAll
ScanDevices
Searches the subordinate structure for objects of the specified classes and
collects them in a list, also inherited objects. Parameter: Classes to be searched
(DeviceClass).
Empty string: All classes. In other words, all Device in the collection are
returned.
N* : Search and return objects of class N and continue to search and return below.
N : Search and return objects of class N and then stop. (Children of the Device
with class N are not searched anymore).
<String>: With the exception of the classes referred to in the string.
Note The inversion "-" cannot be used alone or mixed with other parameters (e.g.
"*"). It is only possible to invert the entire string with "-".
ScanDevices
ScanDevicesWithCObject
ScanDevicesWithCObjectX
ScanDevicesX
Main advantages
Scan is faster and provides more control options. All ScanDevices functions
continue to be supported, however.
ScanDevicesWithCObject
ScanDevices
ScanDevicesWithCObject
ScanDevicesWithCObjectX
ScanDevicesX
Main advantages:
Scan is faster and provides more control options. All ScanDevices functions
continue to be supported, however.
ScanDevicesWithCObjectX
List of classes that are to be output; see also the explanation provided for
ScanDevices.
Val2: CDevice
Limiting the search set: Val2 checks for inheritance from the specified CDevice and
collects the corresponding objects in a list. Without this parameter this function
is processed like ScanDevicesX.
You can use Val3 to specify the classes where the search is terminated. If any
objects of the specified classes are found, then no further searching is carried
out in the relevant hierarchical substructure. The classes are specified in string
form, in accordance with DeviceClass. It is possible to specify multiple classes
simultaneously. No class delimiter is required for this purpose (classes can be
written one after the other directly, without inserting a space character).
"#" = ScanDevicesStopDocobj
Technical background:
DocObj references are also retraced during the search. If the search moves
underneath a document and a position is placed on this document, for example, then
a DocObj for this position is located underneath the document. The search finds the
DocObj and then searches for the corresponding system type Device of class
Position.
The "#" option above means that the references will not be retraced and the placed
position will not, therefore, be found.
ScanDevices
ScanDevicesWithCObject
ScanDevicesWithCObjectX
ScanDevicesX
Main advantages:
Scan is faster and provides more control options. All ScanDevices functions
continue to be supported, however.
ScanDevicesWithDeleted
ScanDevicesX
Val1 : List of classes that are to be output; see also the explanation provided for
ScanDevices.
Val2 specifies classes at which the search terminates. If any objects of the
specified classes are found, then no further searching is carried out in the
relevant hierarchical substructure. The classes are specified in string form, in
accordance with DeviceClass. It is possible to specify multiple classes
simultaneously. No class delimiter is required for this purpose (classes can be
written one after the other directly, without inserting a space character).
However, the workset currently provides a better function: Scan.
ScanDevices
ScanDevicesWithCObject
ScanDevicesWithCObjectX
ScanDevicesX
Main advantages:
Scan is faster and provides more control options. All ScanDevices functions
continue to be supported, however. See also Chapter Scan.
"#" = ScanDevicesStopDocobj
Technical background: DocObj references are also retraced during the search. If the
search moves underneath a document and a position is placed on this document, for
example, then a DocObj for this position is located underneath the document. The
search finds the DocObj and then searches for the corresponding system type Device
of class Position.
The "#" option above means that the references will not be retraced and the placed
position will not, therefore, be found.
ScanDocuments
1: no TIFF documents
2: all
ScanObjects
Example
ScanObjects("Connector|Specification")
ScanObjectsByClass
Specialized Scan method which searches for all objects of the specified type,
starting from the current object (this).
Return value: A collection of type IComosDCollection which contains all the objects
found.
Parameter objectType: Specifies which object types will be searched for. The
following values are supported:
CDevice
Device
Document
ScriptEngine
ScriptEngine() as Object
Example
SetAdminLocked
SetAdminLocked ( ByVal adminLocked as Long )
In this case the inheritance source specifies if the object is locked. If there is
no preceding object in the inheritance chain, the default value applies: off.
Sets the status of the "AdminLock" flag. Only users with the "Administrator" status
may changes this value.
SetChanged
SetChanged()
SetExpandable
In this case the inheritance source specifies if the object is expandable. If there
is no preceding object in the inheritance chain, the default value applies: off.
Sets the status of the "Expandable" flag. The flag specifies if additional objects
can be created below an object locked with "AdminLock" or "SysLock". The
"Expandable" flag cannot be changed for unlocked objects.
SetInternationalDescription
Sets the object's own description text (parameter 2) for the specified object to
the language specified by parameter 1.
SetInvisibleOnMerge
SetInvisibleOnMerge ( )
SetObjectOverlayBehavior
method SetObjectOverlayBehaviour
Allows you to set the behavior of an object in the working layer environment:
Type ObjectOverlayBehaviour_Release
SetOwnInternationalDescription
Sets the object's own description text (parameter 2) for the specified object to
the language specified by parameter 1.
In Section Instructions Examples Basics History Extra
SetSysLocked
In this case the inheritance source specifies if the object is locked. If there is
no preceding object in the inheritance chain, the default value applies: off.
Sets the status of the "SysLock" flag. Only users with the "Administrator" status
may changes this value.
SetSystemRelevant
In this case the inheritance source specifies if the object is system relevant. If
there is no preceding object in the inheritance chain, the default value applies:
off.
Sets the status of the "SystemRelevant" flag. The flag classifies the object as
"Important for the functionality of the COMOS system". Only users with the
"Administrator" right and the "System" license can edit this flag.
ShutDownXObj
ShutDownXObj()
SignedLabel
SignedLabel() as String
SingleCheckDelete
SingleCheckDelete() As Long
Similar function to CheckDelete. However, it only checks the root object and not
those lying underneath it. This is a special function that can be used, for
example, to quickly disable the "DELETE" popup menu item.
Spec
Example
Specifications.Item("x").Specifications.Item("y")
Specs
Specs() as Object
SystemFullName
SystemFullName() as String
Full object name including all owners; pipe characters used as separators ( | ).
SystemRefCount
SystemRefCount() as Long
Integer value for the number of references for the relevant object.
SystemRO
SystemRO() as Boolean
No write rights
Object inherited
SystemTemporary
SystemTemporary() as Boolean
SystemType
SystemType() as Long
Returns the class of the relevant object. Possible values: see SystemType
SystemTypeName
SystemTypeName() as String
Similar to SystemType; an old variant and slower than SystemType due to the string
operations.
SystemUID
SystemUID() as String
TextIsProvidedByNumberRangeGenerator
1: Name
2: Label
Output value
If the return value is true: transfers the current value of the
NumberRangeGenerator
True: A NumberRangeGenerator exists for the current object and the specified
property.
Example: The property "Name" is checked for the current object. COMOS then checks:
A NumberRangeGenerator exists for the current objects which sets the name.
If a value is generated simultaneously for the name and the label by means of the
number range, the same number is generated for both properties.
ThisObj
ThisObj() as Object
Undo
Undo()
UndoAll
UndoAll()
Returns objects to the state when they were last saved, including the complete
substructure.
UndoDelete
UndoDelete()
Workset
Workset() as IComosDWorkset
XMLGet
Reads a XML property or a section according to XML conventions. The property or the
section is stated via xPath and the value/content is returned.
In Section Instructions Examples Basics History Extra
XMLSet
XMLString
XMLString() as String
Subnode:
User (for free user entries) underneath always a node per subject.
Note Depending on the object, this Property can also be used by the system for
filing important information. So that you do not lose this information, you may
only work in your own node (e.g. .../COMOS/User/MyNode).
The other areas of the XML string must not be changed or deleted; in particular,
everything under .../COMOS/System.
XObj
XObj() as Object
Extended Binary object. Binary object for user-specific extensions. Used for
queries, for example.
XObjEquals
Conducts a binary comparison of two XObjects. The XObject of the current COMOS
object and the XObject of the transferred COMOS object (parameter 'other') are
compared. If both XObjects are identical according to binary standards, the method
returns TRUE; otherwise, it returns FALSE. If neither COMOS object owns an
XObject , then TRUE is also returned in this case. If only one COMOS object owns an
XObject, then FALSE is returned.
XObjExist
XObjExist() as Boolean
Shows whether an object owns an XObj without loading it immediately. This allows a
significant improvement in performance to be achieved when carrying out checks for
the presence of ( ..if XObj is not nothing ..) in the script.
IComosDCase
Type
IComosDCase
Type
Type() as Long
IComosDCDevice
Active
AllBackPointerDevices
AllBackPointerObjects
AllCConnectors
AllCDevices
AllDeletedBackPointerObjects
AllRealCDevices
AllSpecifications
BackPointerCDevices
BackPointerCLinks
BackPointerDevices
BackPointerObjects
CConnectors
CDeviceConnectString
CDevice
CDevices
CheckCDevice
Class
ClearStatus
CLinks
CObject
CompOrderNr
CompOrderText
ControlProperties
ControlType
CreateOption
DeletedBackPointerObjects
Dereference
DescriptionBlocked
DescriptionBlockedInherited
DescriptionGenerator
DescriptionGeneratorWithIndex
DetailClass
DetailType
DeviceCreateMode
DeviceGroup
DevSymbols
Documents
Elements
EnObs
GetBackpointerBehaviour
GetChildForCDevice
GetClassification
GetElementsByClassification
GetElementsByClassifications
GetFirstElementByClassification
GetFirstElementByClassifications
GetFreeProperty
GetGRSpec
GetImplementationBehaviour
GetOwnBackpointerBehaviour
GetOwnClassification
GetOwnImplementationBehaviour
GetOwnProductRequestBehaviour
GetOwnReferenceBehaviour
GetOwnScriptBlock
GetOwnStatus
GetProductRequestBehaviour
GetReferenceBehaviour
GetScriptBlock
GetStatus
GRSpecCount
GRSpecsInherited
IconFileName
InheritCDevices
IsElement
IsInheritSuccessorFrom
IsRequest
IsRequestInherited
IsSuccessorFrom
LabelBlocked
LabelBlockedInherited
LabelGenerator
LabelGeneratorWithIndex
Layers
Level
NameBlocked
NameBlockedInherited
NameGenerator
NameGeneratorWithIndex
Number
OrderNr
OrderText
OwnActive
OwnCConnectors
OwnClass
OwnControlProperties
OwnControlType
OwnCreateOption
OwnDescription
OwnDetailClass
OwnDeviceCreateMode
OwnDeviceGroup
OwnDevSymbols
OwnDocuments
OwnElements
OwnIconFileName
OwnLabel
OwnLayers
OwnNumber
OwnOrderNr
OwnOrderText
OwnRevisionType
OwnRIClass
OwnScript
OwnSpecifications
OwnVirtual
Prefix
ProjectDevices
ProjectInstance
RealCDevices
RealElements
RegisterForReleaseStaticCollections
RemoveFreeProperty
ResetOwnUniqueLabel
RevisionType
RIClass
RIType
Script
SetBackpointerBehaviour
SetClassification
SetFreeProperty
SetGRSpec
SetImplementationBehaviour
SetOwnClassification
SetOwnScriptBlock
SetProductRequestBehaviour
SetReferenceBehaviour
SetScriptBlock
SetStatus
Specifications
UniqueLabel
UniqueLabelInherited
UniqueLabelIsOwn
UseCases
Virtual
VirtualElements
Visible
In Section Instructions Examples Basics History Extra
IComosDCDevice
Active
Active() as Long
Constants:
Active_Mode_Normal
Active_Mode_Inactive
AllBackPointerDevices
AllBackPointerDevices() as IComosDCollection
Collects all objects of class Device that have a Pointer to the current object,
from all the projects in the database in a collection. Caution: Depending on the
size of the database, this function may take a great deal of time and should be
used with caution.
In Section Instructions Examples Basics History Extra
AllBackPointerObjects
Collection of all objects of the system type specified in the parameter, from all
projects that have a Pointer to the current object.
AllCConnectors
AllCConnectors() as IComosDCollection
AllCDevices
AllCDevices() as IComosDCollection
AllDeletedBackPointerObjects
AllRealCDevices
AllRealCDevices() as IComosDCollection
AllSpecifications
AllSpecifications() as IComosDCollection
Collection of own attributes, possibly including any inherited ones, and the
attributes of the own elements.
In Section Instructions Examples Basics History Extra
BackPointerCDevices
BackPointerCDevices() as IComosDOwnCollection
BackPointerCLinks
BackPointerCLinks() as IComosDOwnCollection
BackPointerDevices
BackPointerDevices() as IComosDCollection
BackPointerObjects
Collection of all objects of the system type specified with the parameter that own
pointers to the current object. Restricted to the current project.
CConnectors
CConnectors() as IComosDCollection
CDeviceConnectString
CDeviceConnectString() as String
CDevice
CDevice() as IComosDCDevice
CDevices
CDevices() as IComosDOwnCollection
CheckCDevice
Class() as String
ClearStatus
ClearStatus()
CLinks
CLinks() as IComosDOwnCollection
CObject
CObject() as IComosDCDevice
CompOrderNr
CompOrderNr() as String
Assembled order number made up of the object and all its owners.
CompOrderText
CompOrderText() as String
Assembled order text made up of the object and all its owners
ControlProperties
ControlProperties() as String
The configuration data for the engineering object properties mask is managed in
this Property. On the user interface, the data is changed on the "Configuration"
tab.
ControlType
ControlType() as String
ProgId of the control that is to be used for the properties mask of engineering
objects.
CreateOption
CreateOption() as Long
DeletedBackPointerObjects
Dereference
Dereference() as Boolean
If Dereference = True then the CDevice Pointer is set to another CDevice, and this
results in the referenced CDevice being used when creating an object with the
current CDevice. (Functionality for structuring within a user-defined labeling
system)
DescriptionBlocked
DescriptionBlocked() as Boolean
DescriptionBlockedInherited
DescriptionBlockedInherited() as Boolean
Read:
displays if DescriptionBlocked was inherited. (True = inherited)
Write:
DescriptionGenerator
DescriptionGenerator() as Object
DescriptionGeneratorWithIndex
Returns the TextGenerator of the current base object, which is responsible for the
description and the naming scheme specified by schemaIndex.
Parameter schemaIndex: 0 to use the default scheme, otherwise an index > 0 which
specifies the desired naming scheme.
DetailClass() as String
Further detail classification, for COMOS constants. See also Chapter DetailClass.
DetailType
DetailType() as String
Returns the detail type of the CDevice; the DetailType of the owner is specified
for a DeviceClassElement without its own CDevice. An old functionality for further
distinction in the Detail area. It is better to use Detail-Class than Property.
DeviceCreateMode
DeviceCreateMode() as Long
DeviceGroup() as IComosDDevice
Pointer to a Device (assembly) within an own project. This is used for the
preconfiguration of complete Device units. These are then created instead of the
base object.
DevSymbols
DevSymbols() as IComosDCollection
Documents
Documents() as IComosDCollection
Elements
Elements() as IComosDCollection
EnObs
Filters the elements collection for objects of the classes specified in the
parameter. See DeviceClass for valid parameter values.
Examples
GetBackpointerBehaviour
GetBackpointerBehaviour() as Long
Checks whether the object is under the CDevice specified as the parameter (this
also takes Clinks into consideration).
GetClassification
GetElementsByClassification
Index of classification type in which search is to take place. Constants see Module
ClassificationTypes or keyword "classificationIndex".
GetElementsByClassifications
An empty string must be entered for each classification that is not to be checked.
Filters the elements below the current CDevices and returns only those elements
that match the specified classification.
Index of classification type in which search is to take place. Constants see Module
ClassificationTypes or keyword "classificationIndex".
Returns the first element below the current CDevices which matches the specified
classification.
GetFirstElementByClassifications
An empty string must be entered for each classification that is not to be checked.
Returns the first element below the current CDevices which matches one of the
specified classifications.
GetFreeProperty
Returns the FreeProperty value for the current object (this), which is specified by
the name that is transferred.
Parameter propertyName: Specifies the FreeProperty from which the value should be
returned. The name must always consist of two parts: the name of the FreeProperty
group (which is also reflected in the table name: FP_<GroupName>) and the name of
the Property itself (in the column name database). The two parts must be separated
by a dot. Example: OPTIONS.PROP1 activates access to table FP_OPTIONS and column
PROP1.
GetGRSpec
GetImplementationBehaviour
GetImplementationBehaviour() as Long
GetOwnBackpointerBehaviour
GetOwnBackpointerBehaviour() as Long
Returns the property indicating whether back pointers are to be considered in the
Navigator display, as an own Property. Further information is provided at
SetBackpointerBehaviour.
GetOwnClassification
GetOwnImplementationBehaviour
GetOwnImplementationBehaviour() as Long
Returns the "Implement requests" property as an own Property. See also Chapter
SetImplementationBehaviour.
GetOwnProductRequestBehaviour
GetOwnProductRequestBehaviour() as Long
Returns the "Product data: comparison method" property as an own Property. See also
Chapter SetProductRequestBehaviour.
GetOwnReferenceBehaviour
Returns the "Allowed links" property as an own Property. See also Chapter
SetReferenceBehaviour.
In Section Instructions Examples Basics History Extra
GetOwnScriptBlock
Returns the object's own script block specified by the parameter. Currently only
Block(0) is used. See also ScriptBlock functions.
GetOwnStatus
GetProductRequestBehaviour
GetProductRequestBehaviour() as Long
Returns the "Product data: comparison method" property. See also Chapter
SetProductRequestBehaviour.
In Section Instructions Examples Basics History Extra
GetReferenceBehaviour
GetScriptBlock
Returns the object’s own or inherited script block as specified with the parameter.
Currently only Block(0) is used. See also Chapter ScriptBlock.
GetStatus
Gets the value of the status specified by the index. There are 13 different
statuses each having values of 0 - 3.
GRSpecCount() as Long
GRSpecsInherited
GRSpecsInherited() as Boolean
Shows whether the graphically relevant specification is its own or inherited. True
= inherited!
IconFileName
IconFileName() as String
InheritCDevices
InheritCDevices(withclinks as Boolean) as IComosDCollection
Boolean = False: CDevices from the OwnCollection without own CDevicePointer and
BackpointerCDevices
Boolean = True: As above, but also all that are referenced by CLink.
IsElement
IsElement() as Boolean
Shows whether the current CDevice can be found in the OwnElements collection of its
owner.
IsInheritSuccessorFrom
Shows whether the current CDevice inherits from the specified CDevice. This
considers all possible inheritance routes (owners, CDevice pointers, back pointer
CLinks).
IsRequest() as Boolean
IsRequestInherited
IsRequestInherited() as Boolean
IsSuccessorFrom
Checks whether the current object in the hierarchy is located underneath the object
specified by the parameter; BackPointerClinks is considered as part of this. True =
underneath.
LabelBlocked() as Boolean
LabelBlockedInherited
LabelBlockedInherited() as Boolean
LabelGenerator
LabelGenerator() as Object
LabelGeneratorWithIndex
IComosDTextGenerator LabelGeneratorWithIndex([in] long schemaIndex)
Returns the TextGenerator of the current base object, which is responsible for the
label and the naming scheme specified by schemaIndex.
Parameter schemaIndex: 0 to use the default scheme, otherwise an index > 0 which
specifies the desired naming scheme.
Layers
Layers() as String
See also
Device (Layers),
Document (Layers),
Specification (Layers),
User (Layers).
Level() as Long
NameBlocked
NameBlocked() as Boolean
NameBlockedInherited
NameBlockedInherited() as Boolean
NameGenerator
NameGenerator() as Object
NameGeneratorWithIndex
Returns the TextGenerator of the current base object, which is responsible for the
name and the naming scheme specified by schemaIndex.
Parameter schemaIndex: 0 to use the default scheme, otherwise an index > 0 which
specifies the desired naming scheme.
Number
Number() as Double
Integer value for the number, quantity of the object. (e.g. for DeviceClass "Cost"
or "Time")
OrderNr() as String
OrderText
OrderText() as String
OwnActive
OwnActive As Long
OwnCConnectors
OwnCConnectors() as IComosDOwnCollection
OwnClass
OwnClass() as String
OwnControlProperties
OwnControlProperties() as String
OwnControlType
OwnControlType() as String
The object's own ProgId of the control that is to be used for the properties mask
for the Device.
OwnCreateOption
OwnCreateOption() as Long
OwnDescription
OwnDescription() as String
OwnDetailClass
OwnDetailClass() as String
OwnDeviceCreateMode
OwnDeviceCreateMode() as Long
The object's own creation mode, COMOS constants. See also Chapter DeviceCreateMode.
OwnDeviceGroup
OwnDeviceGroup() as IComosDDevice
OwnDevSymbols
OwnDevSymbols() as IComosDOwnCollection
OwnDocuments() as IComosDOwnCollection
OwnElements
OwnElements() as IComosDOwnCollection
OwnIconFileName
OwnIconFileName() as String
OwnLabel
OwnLabel() as String
OwnLayers
OwnLayers() as String
The object’s own working areas permit rights administration at the object level.
OwnNumber
OwnNumber() as Double
OwnOrderNr
OwnOrderNr() as String
OwnOrderText
OwnOrderText() as String
OwnRevisionType
OwnRevisionType() as String
The object’s own setting for allocation to a revision cycle. This setting
determines which base object is to be used for carrying out a revision on the
document or a document group. The name of the base object located under "A50
Revision" is evaluated.
OwnRIClass
OwnRIClass() as String
OwnScript
OwnScript() as String
OwnSpecifications
OwnSpecifications() as IComosDOwnCollection
OwnVirtual
OwnVirtual() as Long
Prefix() as String
ProjectDevices
ProjectDevices() as IComosDCollection
ProjectInstance
ProjectInstance() as Boolean
RealCDevices
RealCDevices() as IComosDCollection
RealElements
RealElements() as IComosDCollection
RegisterForReleaseStaticCollections
Method that logs base objects in/out for the updating of static Collections (see
also ReleaseStaticCollections). After logging in the kernel monitors whether
actions occur that require an updating.
RegisterForReleaseStaticCollectionsModeRegister: Login
RegisterForReleaseStaticCollectionsModeExecute: Execute
RemoveFreeProperty
Removes the specified FreeProperty at the current object (this). Any subsequent
instances of accessing the specified FreeProperty will now only return the result
VT_EMPTY.
ResetOwnUniqueLabel
ResetOwnUniqueLabel()
RevisionType
RevisionType() as String
RIClass
RIClass() as String
No longer a Property, only read access is possible. See also Chapter RIClass.
RIType
RIType() as String
Old variation for the further P&ID classification. It is better to use the P&ID
class!
Script
Script() as String
Read:
Write:
Sets ScriptBlock(..)
SetBackpointerBehaviour
SetBackpointerBehaviour(newVal as Long)
BackPointer_Behaviour_Not_Relevant
BackPointer_Behaviour_Show
SetClassification
SetFreeProperty
Parameter propertyValue: The new value of the FreeProperty as Variant. The type in
Variant must match the column in the database; otherwise, you can expect an error
message from the database when the current object is saved.
SetGRSpec
SetImplementationBehaviour
SetImplementationBehaviour(newVal as Long)
Sets the "Implement request" property, i.e., the mode for the implementation.
Implementation_Behaviour_Replace
Implementation_Behaviour_No_Replace
Implementation_Behaviour_Use_Project_Settings
SetOwnClassification
SetOwnScriptBlock
SetProductRequestBehaviour(newVal as Long)
Sets the "Product data: comparison method" property, in other words, the mode for
the search procedure in the case of product data (recursive / not recursive).
ProductRequest_Behaviour_Normal
ProductRequest_Behaviour_Recursive
SetReferenceBehaviour
Sets the "Permitted references" property. The first parameter specifies which
reference is involved (unit, location, implementation); the second parameter
specifies whether or not references are permitted.
Input:
Reference_Behaviour_For_Unit ,
Reference_Behaviour_For_Location ,
Reference_Behaviour_For_Implementation
Returned values:
Reference_Behaviour_No_Pointer_Valid ,
Reference_Behaviour_Some_Pointer_Valid
SetScriptBlock
SetStatus
Sets the status specified with the index to the value newVal.
IComosDCLink
Comos-Verweisobjekt
IComosDCLink: Property
Specifications() as IComosDCollection
UniqueLabel
UniqueLabel() as Boolean
If UniqueLabel is set to True, the label must be unique on the Device side.
UniqueLabelInherited
UniqueLabelInherited() As Boolean
UniqueLabelIsOwn
UniqueLabelIsOwn() as Boolean
Shows whether the UniqueLabel of the current object is its own or inherited. True =
own.
UseCases
UseCases() as Boolean
Virtual
Virtual() as Long
Functionality for elements. Virtual elements are not inherited but instead can be
generated in the creation modes "Create", "Create N" or "Default".
"Create"
"Default"
"Create N"
COMOS constant InfiniteVirtuals
VirtualElements
VirtualElements() as IComosDCollection
Visible
Visible() as Boolean
IComosDCLink
Reference
UseForInheritance
In Section Instructions Examples Basics History Extra
IComosDCLink
Reference
Reference() as Object
UseForInheritance
UseForInheritance() as Boolean
Shows whether inheritance is to be carried out in the base object tree by means of
this Clink.
BackPointerCLinks
BackPointerDocObjs
Cable
CableIndex
Category
CConnector
CheckForSameSignal
CheckWire
CLinks
Colour
Connect
ConnectedCategory
ConnectedWith
ConnectionLength
Connectors
ConnectorAttributesCount
CrossSection
Disconnect
Document
GetConnectorAttribute
GetConnectorAttributeItem
GetLabelMode
GetNetConnectors
GetOwnConnectorAttribute
GetOwnConnectorAttributeItemByIndex
GetOwnConnectorAttributeItemByName
GetOwnLabelMode
InternalConnection
InternalConnectionAsConnector
IO
IOInfo
IsConnected
IsConnectorConsistent
IsIntrinsicalSafety
Layer
Number
OwnCable
OwnCableIndex
OwnCategorie
OwnColour
OwnConnectionLength
OwnConnectorAttributesCount
OwnCrossSection
OwnDescription
OwnInternalConnection
OwnIO
OwnLabel
OwnLayer
OwnNumber
OwnPotential
OwnSignal
OwnSignalMode
OwnType
OwnTypeInfo
OwnWire
Potential
SetConnectorAttribute
SetConnectorAttributeStandardTable
SetLabelMode
Signal
SignalMode
SignalNot
SignalNotInherited
Type
TypeInfo
Wire
IComosDConnector
BackPointerCLinks
BackPointerCLinks() as IComosDOwnCollection
BackPointerDocObjs
BackPointerDocObjs() as IComosDOwnCollection
Cable
Cable() as IComosDDevice
CableIndex
CableIndex() as String
The cable designation, Cable and CableIndex together provide the wire information
Category
Categorie() as String
CConnector
CConnector() as IComosDConnector
The Connector from the base object path from which properties are inherited.
CheckForSameSignal
CheckForSameSignal() as Boolean
Checks whether the same signal would be valid for the Connector and the Connector
connected to it if the connection did not exist.
In Section Instructions Examples Basics History Extra
CheckWire
Checks whether the specified object (Device) of type Wire may be created as a wire.
Each Wire is used by precisely two connectors that are connected to one another by
these wires.
CLinks
CLinks() as IComosDOwnCollection
Colour
Colour() as Long
Color of the connection; access takes place via a predefined standard table,
synchronized on connected connectors.
In Section Instructions Examples Basics History Extra
Connect
Connect(Val as Object)
ConnectedCategory
ConnectedCategorie() as String
Returns the valid Categorie. Uses the same rules as for the tracking of potentials
and signals.
ConnectedWith
ConnectedWith() as IComosDConnector
ConnectionLength
ConnectionLength() as Double
This property is only evaluated for certain types of diagrams. In most cases, the
actual concrete length of a connection does not matter at all. In that case two
connectors that belong to one another are synchronized automatically.
Connectors
Connectors() as IComosDCollection
Old variant! Returns a collection of connected connectors but contains only one
element, since only unique connections are possible.
ConnectorAttributesCount
ConnectorAttributesCount() As Long
Connector attributes are free texts (meaning they are not objects of type
IComosDSpecification). They are managed as pairs (key, value).
CrossSection
CrossSection() as Long
Disconnect
Disconnect(Val as Object)
Undoes the connection of the current connector with the specified connector.
Document
Document() as IcomosDDocument
Pointer to the relevant document. This property is used in the P&ID area to set
whether connections are first linked in the report or in the Navigator.
If the connections were first connected in the report (Document = COMOSDocument),
then the settings of the report connectors have priority over the settings of the
COMOS connectors.
If the connections are first linked in the database (Document = NOTHING), the
reverse applies.
GetConnectorAttribute
Connector attributes are free texts (meaning they are not objects of type
IComosDSpecification). They are managed as pairs (key, value).
This Get method returns the value of a key (if there is a value).
GetConnectorAttributeItem
Connector attributes are free texts (meaning they are not objects of type
IComosDSpecification). They are managed as pairs (key, value).
GetLabelMode
GetLabelMode() as Long
GetNetConnectors
Returns a collection containing all connected connectors, starting with the current
connector. Possible methods for performing this search:
Feed-through connections
Connection partners
Auxiliary connectors
Return value: Collection containing all connectors connected to the current
connector.
Parameter ignoreBridges:
If this parameter is set to true, all bridge connections are ignored in the search.
Bridge connections are entered in the "Strip" tab and from there applied in the
properties of the connection in the "Cable index" field. The available bridge types
are taken from the following standard table: "Y10M41N00001 Bridge types"
GetOwnConnectorAttribute
GetOwnConnectorAttributeItemByIndex
Returns the object of type IComosDConnectorAttributeItem, with the Index index. The
index begins at 1. If no item with the transferred index is available, Nothing is
returned.
In Section Instructions Examples Basics History Extra
GetOwnConnectorAttributeItemByName
GetOwnLabelMode
GetOwnLabelMode() as Long
InternalConnection
InternalConnection() as String
The internal connection of connectors for potential and signal tracking (the name
of the connector that is connected is entered here). In the case of terminals, this
property can also be used to define a connector as signal-separating or potential-
separating.
Path detail
Starting point:
Always the owner of the connection for which the feed-through connection is set.
This means that old details (such as CP2) remain valid for connectors underneath
the same Device.
Navigation:
Use ".." to move up one level and specify a name to select the designated Device or
connector.
All name components of the path must be separated with the pipe symbol "|".
Example:
..|..|DevA|DevA1|CP1
With this path detail, you would move up two levels, select Device DevA, then
Device DevA1 below it and finally connector CP1 of the Devices DevA1.
For terminals
The connections can be defined as signal or potential separating. For this purpose,
the following constants are entered for the Property InternalConnection:
InternalConnection_SeparateSignal(= "@SepS")
InternalConnection_SeparatePotential(= "@SepP")
InternalConnectionAsConnector
InternalConnectionAsConnector() as IComosDConnector
IO
IO() as String
IOInfo
IOInfo() as String
Only the actual IO proportion of this property is returned with this method.
Permitted constants:
ConnectorConstantsIOInput
ConnectorConstantsIOOutput
ConnectorConstantsIONeutral
ConnectorConstantsIOInput
ConnectorConstantsIOOutput
ConnectorConstantsIONeutral
ConnectorConstantsIOIntrinsicalSafety
ConnectorConstantsIOInputAndIntrinsicalSafety
ConnectorConstantsIOOutputAndIntrinsicalSafety
IsConnected
IsConnected(Val as Object) as Boolean
IsConnectorConsistent
Checks for the specified type of connector how the linked objects of this connector
and its CorrespondingConnector (see there) relate to one another.
Conector_IsConsistent_Consistent
Conector_IsConsistent_InConsistent
Conector_IsConsistent_Empty
IsIntrinsicalSafety
IsIntrinsicalSafety() as Boolean
ConnectorConstantsIOIntrinsicalSafety
ConnectorConstantsIOInputAndIntrinsicalSafety
ConnectorConstantsIOOutputAndIntrinsicalSafety
ConnectorConstantsIOInput
ConnectorConstantsIOOutput
ConnectorConstantsIONeutral
ConnectorConstantsIOIntrinsicalSafety
ConnectorConstantsIOInputAndIntrinsicalSafety
ConnectorConstantsIOOutputAndIntrinsicalSafety
Layer
Layer() as String
Number
Number() as Long
OwnCable
OwnCable() as IComosDDevice
The object's own pointer to the associated cable. See also Chapter Cable.
OwnCableIndex
OwnCableIndex() as String
The object's own wire label, Cable and CableIndex together provide the wire
information. See also Chapter CableIndex.
OwnCategorie() as String
The object’s own SubType, for further differentiation of the type. See also Chapter
Category.
OwnColour
OwnColour() as Long
OwnConnectionLength
OwnConnectionLength() as Double
OwnConnectorAttributesCount
OwnConnectorAttributesCount() as Long
OwnCrossSection
OwnCrossSection() as Long
OwnDescription
OwnDescription() as String
OwnInternalConnection
OwnInternalConnection() as String
The object’s own internal connection of connectors for tracking of the potentials
and signals (the name of the connector that is joined is input here).
OwnIO
OwnIO() as String
ConnectorConstants
IO
OwnLabel
OwnLabel() as String
OwnLayer
OwnLayer() as String
Object's own Layer. In the case of connectors, Layer corresponds to to the type.
See also Chapter Layer.
OwnNumber
OwnNumber() as Long
OwnPotential
OwnPotential() as IComosDDevice
Returns the object’s own logical potential. See also Chapter Potential.
OwnSignal
OwnSignal() as IComosDDevice
OwnSignalMode
OwnSignalMode() As Long
OwnType
OwnType() as String
OwnTypeInfo
OwnTypeInfo() as Long
OwnWire
OwnWire() as IComosDDevice
The object’s own wire pointer. This information is made up of OwnCable and
OwnCableIndex. See also Chapter Wire.
Potential
Potential() as IComosDDevice
Returns the logical potential. Searches across all connected connectors and
terminals for a potential.
SetConnectorAttribute
Connector attributes are free texts (meaning they are not objects of type
IComosDSpecification). They are managed as pairs (key, value).
With this Set method, you set the value for a key.
See also Chapter GetConnectorAttribute.
SetConnectorAttributeStandardTable
SetLabelMode
SetLabelMode(Val as Long)
Sets the LabelMode for the connector. See also Chapter GetLabelMode:
ConnectorConstants.
Signal
Signal() as IComosDDevice
SignalMode
SignalMode() As Long
SignalNot
SignalNot() As Boolean
SignalNotInherited
SignalNotInherited() as Boolean
Type
Type() as String
TypeInfo
TypeInfo() as Long
Wire
Wire() as IComosDDevice
IComosDConnectorAttributeItem
Equals
Name
StandardTable
Synchronize
Value
IComosDConnectorAttributeItem
New.
See also
IComosDConnector
GetConnectorAttribute
SetConnectorAttribute
In Section Instructions Examples Basics History Extra
Equals
Returns TRUE if the transferred object on all Properties has the same value as the
object on which the method was called; otherwise FALSE.
Name
Name() As String
StandardTable
IComosDStandardTable StandardTable
Synchronize
Synchronize() As Boolean
Value
Value() As String
IComosDCSpecificationSet
BackPointerCLinks
BackPointerSpecificationSets
CLinks
CSpecificationSets
Level
OwnSpecifications
Specifications
IComosDCSpecificationSet
BackPointerCLinks
BackPointerCLinks() as IComosDOwnCollection
BackPointerSpecificationSets
BackPointerSpecificationSets() as IComosDCollection
CLinks
CLinks() as IComosDOwnCollection
Collection of CLinks.
CSpecificationSets
CSpecificationSets() as IComosDOwnCollection
Level
Level() as Long
OwnSpecifications
OwnSpecifications() as IComosDOwnCollection
Specifications
Specifications() as IComosDCollection
IComosDDevice
ActivateChangeLog
AddNumberRangeGeneratorAssignment
Alias
AliasLabel
AliasNestedLabel
AliasNestedLabel2
AliasULFullLabel
AllConnectors
AllSpecifications
BackPointerCDevices
BackPointerConnectors
BackPointerDevicesWithImplementation
BackPointerDevicesWithLocation
BackPointerDevicesWithUnit
BackPointerDocObjs
BackPointerDocsWithLocation
BackPointerDocsWithUnit
CDevice
CDeviceConnectString
CDeviceMode
CheckDeviceCreateMode
CheckLabel
CheckVirtualElements
Class
ClassificationExists
CObject
Connectors
ConnectorsWhichUsePotential
ConnectorsWhichUseSignal
CountStillCreatableVirtualElements
CreateD3
CreateDefaultElements
D3
DetailClass
DetailType
DeleteD3
Devices
Documents
Elements
EnObs
GeneralObject
GetCurrentCase
GetElementsByClassification
GetElementsByClassifications
GetFirstElementByClassification
GetFirstElementByClassifications
GetFreeProperty
GetGRSpec
GetNumberRangeGeneratorAssignment
GetNumberRangeGeneratorAssignmentCount
GetOwnCurrentCase
GetPropertiesFromCDevice
GetStatus
GetAllConnectorsRecursively
GLocation
GPosition
GUnit
Implementation
IsElement
IsImplementationValid
IsInLocationTree
IsInUnitTree
IsLocationValid
IsNameSystemDocumentGroup
IsPlaced
IsProjectDocumentGroup
IsRequest
IsRevisionReleased
IsUnitValid
LabelExist
Layers
Location
Lock
MainDevice
MatchScanDevices
NestedLabel
NestedName
NestedRelativLabel
NextLabel
NextName
Number
OldAliasFullLabel
OwnConnectors
OwnDescription
OwnDocuments
OwnElements
OwnLabel
OwnLayers
OwnNumber
OwnSpecifications
Position
RemoveFreeProperty
RemoveNumberRangeGeneratorAssignment
ReverseLoggedChanges
RevisionCDevice
RIClass
SetCurrentCase
SetCurrentTimestampForRevision
SetDocObjsStatus
SetFreeProperty
SetStatus
Specifications
SystemLock
Unit
ULFullLabel
ULFullName
IComosDDevice
ActivateChangeLog
ActivateChangeLog ()
Activates ChangeLogging and defines the current Device as a target for the protocol
or ChangeLog. DeactivateChangeLog
DeactivateChangeLog ()
AddNumberRangeGeneratorAssignment
Generates a new assignment for the current object using the specified
NumberRangeGenerator and Rank value.
Alias
Alias ( ) as IComosDDevice
AliasLabel
AliasLabel() As String
If an alias exists, this function returns the label of the alias object, otherwise
its own label.
AliasNestedLabel
AliasNestedLabel ( ) as String
AliasNestedLabel2
AliasNestedLabel2 ( ) as String
The function returns its own label and the labels of all superordinate Devices in
the object structure (iteratively ascending). Aborts if the Device class is
changed. The name appears if no labels have been allocated. Includes alias
evaluation if Workset.UseAliasforLabelFunctions is set to TRUE.
Background:
With AliasFullLabel, the entire path name is output as one item, so that no prefix
is used. In the case of AliasNestedLabel, only parts of the path name are output;
therefore, the prefix setting is also taken into consideration.
If the prefix and delimiter are set differently, the result is that a combination
of hierarchical AliasNestedLabel does not produce the same text as AliasFullLabel ,
but differs according to the prefix and delimiter.
Definition AliasNestedLabel2:
AliasULFullLabel
AliasULFullLabel ( ) as String
AllConnectors
AllConnectors ( ) as IComosDCollection
Searches the object tree recursively, starting at the current object, and returns
all connectors of the elements found.
AllSpecifications ( ) as IComosDCollection
BackPointerCDevices
BackPointerCDevices ( ) as IComosDCollection
BackPointerConnectors
BackPointerConnectors ( ) as IComosDCollection
Returns all objects of class Connector that have Cable pointers to the current
object.
BackPointerDevicesWithImplementation
BackPointerDevicesWithImplementation ( ) as IComosDOwnCollection
Returns all Devices whose Implementation pointers point to the current object.
BackPointerDevicesWithLocation
BackPointerDevicesWithLocation ( ) as IComosDOwnCollection
Returns all Devices whose Location pointers point to the current object.
BackPointerDevicesWithUnit
BackPointerDevicesWithUnit ( ) as IComosDOwnCollection
Returns all Devices whose Unit pointers point to the current object.
BackPointerDocObjs
BackPointerDocObjs ( ) as IComosDOwnCollection
Returns all objects of class DocObj that have Reference pointers to the current
object.
BackPointerDocsWithLocation
BackPointerDocsWithLocation ( ) as IComosDOwnCollection
Returns all documents whose Location pointers point to the current object.
BackPointerDocsWithUnit
BackPointerDocsWithUnit ( ) as IComosDOwnCollection
Returns all documents whose Unit pointers point to the current object.
CDevice
CDevice ( ) as IComosDCDevice
CDeviceConnectString
CDeviceConnectString ( ) as String
CDeviceMode
CDeviceMode ( ) as Long
Mode dictating how attributes are to be handled at the Device (no longer used).
CheckDeviceCreateMode
CheckLabel
CheckLabel ( ) as Boolean
Checks whether a Device with the same label already exists in the OwnerCollection.
CheckVirtualElements
Checks whether there are fewer elements with the name of the CDevice as the prefix
in the OwnElements collection than were specified in the CDevice.Virtual property.
Class
Class ( ) as String
Valid parameters
DeviceClass
ClassificationExists
CObject
CObject ( ) as IComosDCDevice
Connectors
Connectors ( ) as IComosDCollection
Returns a collection with own connectors and inherited connectors.
ConnectorsWhichUsePotential
ConnectorsWhichUsePotential ( ) as IComosDCollection
Returns all connectors for which this Device is valid as a potential. Evaluates the
project parameter for the potential tracking.
ConnectorsWhichUseSignal
ConnectorsWhichUseSignal ( ) as IComosDCollection
Returns all connectors for which this Device is valid as a signal. Evaluates the
project parameter for the signal tracking.
CountStillCreatableVirtualElements
CreateD3
CreateD3 ( ) as Object
CreateDefaultElements
CreateDefaultElements ( )
Creates elements that are created in the base data view as default elements.
D3
D3 ( ) as Object
This method offers access to the associated 3D object in the Viper environment; the
return value is of type I3DObject (transition between COMOS and the 3D world). The
information is saved on the database side at the Device.
DetailClass
DetailClass ( ) as String
Further detail classification, e.g. terminal, terminal strip, wire, etc. COMOS
constants DetailClass
DetailType
DetailType ( ) as String
Returns the detail type of the CDevice; the DetailType of the owner is specified
for a DeviceClassElement without its own CDevice.
DeleteD3
DeleteD3 ( )
Deletes the associated 3D object.
Devices
Devices ( ) as IComosDOwnCollection
Documents
Documents ( ) as IComosDOwnCollection
Elements
Elements ( ) as IComosDCollection
EnObs
GeneralObject
This method runs through the owner chain, starting at the current Device, and
returns the first Device with the class "General" or DeviceClassTopLevel
(constant). Is no such object exists in the owner chain, then NULL or Nothing is
returned.
GetCurrentCase
GetCurrentCase ( ) as IComosDCase
Returns the applicable case for the current object.
GetElementsByClassification
Filters the elements below the current device and returns only those elements that
match the searched classification.
GetElementsByClassifications
Filters the elements below the current device and returns only those elements that
match the specified classifications.
GetFirstElementByClassification
Filters the elements below the current device and returns the first element with
the searched classification.
In Section Instructions Examples Basics History Extra
GetFirstElementByClassifications
An empty string must be entered for each classification that is not to be checked.
Returns the first element below the current device which matches one of the
specified classifications.
GetFreeProperty
Returns the FreeProperty value for the current object (this), which is specified by
the name that is transferred.
Return value: Value of the FreeProperty as VARIANT. If no FreeProperty with the
specified name exists, the returned variant will contain Variant VT_EMPTY.
Parameter propertyName specifies the FreeProperty from which the value should be
returned. The name must always consist of two parts: the name of the FreeProperty
group (which is also reflected in the table name: "FP_<GroupName>") and the name of
the Property itself (in the column name database). The two parts must be separated
by a dot. Example: OPTIONS.PROP1 activates access to table "FP_OPTIONS" and column
"PROP1".
GetGRSpec
GetNumberRangeGeneratorAssignment
long GetNumberRangeGeneratorAssignmentCount()
GetOwnCurrentCase
GetOwnCurrentCase ( ) as IComosDCase
GetPropertiesFromCDevice
Adopts Name, Description, Number, Label, Class, RIClass, DetailClass and CDevice
Pointer from the specified CDevice.
GetStatus
GetStatus ( ) as Long
GetAllConnectorsRecursively
IComosDCollection GetAllConnectorsRecursively ( )
Unlike AllConnectors, however, the search does not stop at documents. This means
that additional elements located below documents are found and processed as well.
The method also works faster than AllConnectors, but the sequence of the returned
elements is not identical to the sequence returned by AllConnectors.
Return value: A collection of the IComosDCollection type which contains all the
connectors (IComosDConnector) found.
GLocation
GLocation ( ) as Object
GPosition
GPosition ( ) as Object
GUnit
GUnit ( ) as Object
Implementation
Implementation ( ) as IComosDDevice
Implementation reference (implementation pointer)
This functionality does not work if the implementation pointer is set in scripts.
However, if that is precisely what is to be done through the scripted function,
then use a function from the library instead of simple referencing of the pointer:
<Target object>
Optionally, a third parameter can be passed to the function that sends a message if
an object is "replaced" during the implementation.
IsElement
IsElement ( ) as Boolean
IsImplementationValid
Object deleted, no current project set, Device not from the current project, no
editing rights, script function IsImplementationValid, object from the wrong
project.
IsInLocationTree
IsInLocationTree ( ) as Boolean
The function searches iteratively for a location or a unit on the level of the
current object and in the hierarchical superstructure without considering pointers,
and stops when it finds the first object of these classes. The return value is True
if a location has been found.
IsInUnitTree
IsInUnitTree ( ) as Boolean
The function searches iteratively for a location or a unit on the level of the
current object and in the hierarchical superstructure without considering pointers,
and stops when it finds the first object of these classes. The return value is True
if a unit has been found.
IsLocationValid
IsLocationValid ( Val as Object ) as Boolean
Returns information on whether the specified object is valid as a location for this
Device and whether you are permitted to set the object at the Device.
Object deleted, no current project set, Device not from the current project, no
editing rights, script function IsLocationValid, object from the wrong project,
object is not a location.
IsNameSystemDocumentGroup
IsNameSystemDocumentGroup ( ) as Boolean
Shows whether this involves a document group from the relevant @NameSystem branch.
IsPlaced
Checks whether the Device for the specified diagram type is placed. The string must
correspond exactly to the diagram type or symbol type.
Checks whether the device is placed in 3D. The COMOS constant IsPlacedD3, IsPlaced
is used for this purpose.
IsProjectDocumentGroup
IsProjectDocumentGroup ( ) as Boolean
IsRequest
IsRequest ( ) as Boolean
See CDevice.IsRequest.
IsRevisionReleased
bool IsRevisionReleased()
In the case of revisions, specifies whether the revision has already been released.
For Devices that are not a revision, FALSE is returned.
IsUnitValid
Returns information on whether the specified object is valid as a unit for this
Device and whether you are permitted to set the object at the Device.
Object deleted, no current project set, Device not from the current project, no
editing rights, script function IsUnitValid, object from the wrong project, object
is not a unit.
LabelExist
Checks whether there is a Device with the specified label in the OwnerCollection.
Layers
Layers ( ) as String
See also
CDevice (Layers)
Document (Layers),
Specification (Layers)
User (Layers)
Location
Location
Location ( ) as Object
Lock
Lock ( ) as Boolean
With this property the current document is locked from being changed or deleted.
The lock can only be removed by those users who were also authorized to set this
lock.
MainDevice
MainDevice ( ) as IComosDDevice
MatchScanDevices
The prerequisite for running this function is that ScanDevicesWithCObject had been
called beforehand. See also Chapter ScanDevicesWithCObject.
MatchScanDevices checks whether the relevant object is still located in the scan
set of the parameter 1 object and inherits from the CDevice specified with
parameter 2.
NestedLabel
NestedLabel ( ) as String
The function returns its own label and the labels of all superordinate Devices in
the object structure (iteratively ascending). Aborts if the Device class is
changed.
The name appears if no labels have been allocated. The labels of Devices which have
set the property "Folder" are skipped.
NestedName
NestedName ( ) as String
The function returns its own name and the names of all superordinate Devices in the
object structure (iteratively ascending). Aborts if the Device class is changed.
NestedRelativLabel
Returns the next valid label (evaluates CDevice.LabelGenerator for this purpose).
NextName
Returns the next free name within the collection in which the object is located,
taking into account the presettings made in the properties mask.
Number
Number ( ) as Double
Integer value for the number, set (e.g. for DeviceClass "Cost" or "Time").
OldAliasFullLabel
OldAliasFullLabel ( ) as String
OwnConnectors
OwnConnectors ( ) as IComosDOwnCollection
OwnDescription
OwnDescription ( ) as String
OwnDocuments
OwnDocuments ( ) as IComosDOwnCollection
Same content as Documents. Only use Documents to avoid any risk of confusion.
OwnDocuments may cease to be used in future.
OwnElements
OwnElements ( ) as IComosDOwnCollection
OwnLabel
OwnLabel ( ) as String
OwnLayers
OwnLayers ( ) as String
The object’s own working areas permit rights administration at the object level.
In Section Instructions Examples Basics History Extra
OwnNumber
OwnNumber ( ) as Double
The object’s own integer value for number, set. (e.g. for DeviceClass "Cost" or
"Time")
OwnSpecifications
OwnSpecifications ( ) as IComosDOwnCollection
Position
Position ( ) as Object
Removes the specified FreeProperty at the current object (this). Any subsequent
instances of accessing the specified FreeProperty will now only return the result
VT_EMPTY.
RemoveNumberRangeGeneratorAssignment
ReverseLoggedChanges
ReverseLoggedChanges ()
A protocol or ChangeLog stored on the current Device is processed and all recorded
changes are reversed.
In Section Instructions Examples Basics History Extra
RevisionCDevice
RevisionCDevice ( ) as IComosDCDevice
Returns the base object (revision object) used for the revision, depending on the
setting of the RevisionType at the base object.
RIClass
RIClass ( ) as String
SetCurrentCase
SetCurrentTimestampForRevision ()
Sets the creation stamp on the current timestamp for the Device of the revision
class.
SetDocObjsStatus
all BackPointerDocObjs
All owners of these, iteratively ascending, up to a Device whose owner class is not
DeviceClassDevice.
SetFreeProperty
Parameter propertyValue: The new value of the FreeProperty as Variant. The type in
Variant must match the column in the database; otherwise, you can expect error
messages from the database when the current object is saved.
SetStatus
Sets the status information for the Device (evaluates IComosDStatusManager as part
of this).
Specifications
Specifications ( ) as IComosDCollection
SystemLock
SystemLock ( ) as Long
This property is used to lock the current document against changes or deletion.
Counter that specifies the number of locks set. Changes to the document only become
possible again once the counter = 0.
Unit
Unit ( ) as Object
Unit reference (unit pointer), can be of class "Unit" or "Device" with DeviceClass
"Unit" or "Position".
ULFullLabel
ULFullLabel ( ) as String
See also
GUnit
GLocation
ULFullName ( ) as String
See also
GUnit
GLocation
IComosDDevSymbol
Filename
OwnDescription
OwnScript
Script
IComosDDevSymbol
Graphical symbol for display in the corresponding documents.
Filename
Filename ( ) as String
Relative file name to the file that is to be used for the symbol if no script was
set.
OwnDescription
OwnDescription ( ) as String
OwnScript
OwnScript ( ) as String
The object’s own graphic information in script form that is evaluated by the GEO
engine.
In Section Instructions Examples Basics History Extra
Script
Script ( ) as String
IComosDDocObj
CopyMode
DBStatus
ElNr
Par1
Reference
Reference2
ReferenceConnectString
UseType
XQuadrant
YQuadrant
In Section Instructions Examples Basics History Extra
IComosDDocObj
CopyMode
CopyMode ( ) as Long
DocObjCopyMode(0): WithDevice
DocObjCopyMode(1): Delete
DocObj is deleted
DocObjCopyMode(2): OldReference
DBStatus
DBStatus ( ) as String
ElNr
ElNr ( ) as Long
Par1
Par1 ( ) as String
Reference
Reference ( ) as Object
Pointer to a placed COMOS object.
Reference2
Reference2 ( ) as Object
Free reference pointer, used in strip technology, for example, to enable references
to documents.
ReferenceConnectString
ReferenceConnectString ( ) as String
UseType
UseType ( ) as String
X ( ) as Double
X-coordinate
XQuadrant
XQuadrant ( ) as String
X-quadrant
Y ( ) as Double
Y-coordinate.
YQuadrant ( ) as String
Y-quadrant.
IComosDDocument
AddNumberRangeGeneratorAssignment
AllBackPointerDocuments
BackPointerCLinks
BackPointerDocuments
BackPointerDocumentsWithOrgDocument
CalculateDirectory
CalculateDirectoryAndMoveFile
ClearDrawingInUse
CDocumentConnectString
Case
CDocument
CheckVirtualElements
ClassificationExists
CLinks
CObject
CObjectConnectString
CountStillCreatableVirtualElements
CreateRevision
Description2
Devices
DocObjs
Documents
DocumentType
DocumentTypeConnectString
EnObs
ErrorFlags
FileNameWithoutDirectories
Filename
FirstPage
FullFileName
GeneralObject
GetBackPointerDocObjs
GetClassification
GetDocObjForDeviceNameMode
GetFileExistsInOverlay
GetFileExistsInOverlayEx
GetFreeProperty
GetInternationalDescription2
GetInternationalDescription3
GetOwnClassification
GLocation
GetNumberRangeGeneratorAssignment
GetNumberRangeGeneratorAssignmentCount
GPosition
GUnit
IsCheckedOutInOtherOverlay
IsDdmContainer
IsDdmDocument
IsDdmPackage
IsDdmVersion
IsInCDeviceTree
IsInDocumentGroupTree
IsInLocationTree
IsInUnitTree
IsLocationValid
IsMasterDocument
IsNameSystemReference
IsProjectReference
IsUnitValid
LastCreatedRevision
LastReleasedRevision
Layers
Location
Lock
MatchScanDocuments
Mode
NameSystemReference
NestedName
NextLabel
NextName
OpenRevision
OrgDocument
OwnLabel
OwnSpecifications
PageCount
PreLoadDevices
ProjectReference
RealCDocument
RemoveFreeProperty
RemoveNumberRangeGeneratorAssignment
RemoveRevisionFromAllOverlays
Report
ReportObject
ResetFileExistsInOverlay
RevisionCDevice
RevisionOf
Revisions
SetClassification
SetDrawingInUse
SetFileExistsInOverlay
SetFreeProperty
SetInternationalDescription2
SetInternationalDescription3
SetOwnClassification
SetSymbolType
ShutDownIReport
Specifications
SpecificationSets
SystemLock
SymbolType
Type
ULFullName
Unit
UseTimeStamp
In Section Instructions Examples Basics History Extra
IComosDDocument
AddNumberRangeGeneratorAssignment
Generates a new assignment for the current object using the specified
NumberRangeGenerator and Rank value.
AllBackPointerDocuments
AllBackPointerDocuments ( ) as IComosDCollection
BackPointerCLinks
BackPointerCLinks ( ) as IComosDOwnCollection
BackPointerDocuments
BackPointerDocuments ( ) as IComosDCollection
Returns the set of document objects that have a CDocument pointer to the current
object (only the current project).
BackPointerDocumentsWithOrgDocument
BackPointerDocumentsWithOrgDocument ( ) as IComosDCollection
CalculateDirectory
CalculateDirectory ( )
Checks for report documents to see whether the file is to be saved in a sub-
directory. This method is used just once with new reports and internally sets the
sub-directory for these documents. This method is used likewise when copying
documents.
Note Sub-directories are only created from document version 7.0 onwards.
CalculateDirectoryAndMoveFile
CalculateDirectoryAndMoveFile ( ) as Long
Is used to allocate files to the new directory structure. The function calculates
the corresponding directory for report documents in accordance with the conventions
of CalculateDirectory and copies the file there.
ClearDrawingInUse ( )
CDocumentConnectString
CDocumentConnectString ( ) as String
Case
Case ( ) as IComosDCase
CDocument
CDocument ( ) as IComosDDocument
CheckVirtualElements
ClassificationExists
Separator
CLinks
CLinks ( ) as IComosDOwnCollection
CObject
CObject ( ) as IComosDCDevice
CObjectConnectString
CObjectConnectString ( ) as String
CountStillCreatableVirtualElements
Returns the number of elements of the specified base object that can still be
created below the current object. To do so, the "Virtual" setting at the base
object is evaluated and compared with the number of elements already created.
CreateRevision
Function for creating revision objects and elements outside the COMOS rights
administration system.
Description2
Description2 ( ) as String
Additional description.
Devices
Devices ( ) as IComosDOwnCollection
DocObjs
DocObjs ( ) as IComosDOwnCollection
Documents
Documents ( ) as IComosDOwnCollection
DocumentType
DocumentType ( ) as IComosDDocumentType
Document type reference for the type of document, must be set for each document.
In Section Instructions Examples Basics History Extra
DocumentTypeConnectString
DocumentTypeConnectString ( ) as String
EnObs
Filters the Elements Collection with the specified class parameters. Valid
parameter values DeviceClass
Examples
ErrorFlags
long ErrorFlags
Property of type long. Saves the document status (in terms of evaluation). Possible
values and constants: See also Chapter DocError_.
FileNameWithoutDirectories
FileNameWithoutDirectories ( ) As String
Returns the FileName of the document, without the working layer and subdirectory
("AA" - "ZZ").
Filename
Filename ( ) as String
Name of the file belonging to the document. Whether a file is required for the
document is specified at the DocumentType object.
FirstPage
FirstPage ( ) as Long
FullFileName
FullFileName ( ) as String
GeneralObject
GetBackPointerDocObjs
IComosDOwnCollection GetBackPointerDocObjs()
Returns a Collection with all DocObjs which point to the current document (this).
This method replaces the previous method BackPointerDocObjs. The function remains
the same, but the new method works faster.
Return value: Collection with all DocObjs which point to the current document.
GetClassification
Returns the classification for the specified classification type of the current
document taking inheritance into consideration.
GetDocObjForDeviceNameMode
DocObj GetDocObjForDeviceNameMode()
This method is intended for Device whose label must contain the name of the
document on which the Device is placed. It returns the DocObj underneath the
document which must be used to form the label. For Device with a specific
DetailClass, the document is never used to form the label. For the following
DetailClasses, NULL is thus always returned as a return value:
Plug
Potential
LogPotential
Terminal
Wire
For the DeviceClasses PlugStrip and TerminalStrip, the first placed Plug/Terminal
is searched and this Device is then used to determine the correct DocObj.
Device with the DeviceClasses Cable, PlugStrip and TerminalStrip must own a
specific classification ("SP"), otherwise the document will not be used for label
formation and this method will return NULL as a return value.
Return value: The DocObj underneath the document which must be used for label
formation. NULL if no document needs to be used for label formation in the case of
the current Device.
GetFileExistsInOverlay
GetFileExistsInOverlay ( ) as Boolean
GetFileExistsInOverlayEx
GetFileExistsInOverlayEx(long workingLayerID, /*[out, retval]*/ VARIANT_BOOL*
retval);
GetFreeProperty
Specifies the FreeProperty from which the value should be returned. The name must
consist of two parts:
The two parts must be separated by a dot. Example: OPTIONS.PROP1 activates access
to table "FP_OPTIONS" and column "PROP1".
Return value
If no FreeProperty with the specified name exists, the returned variant will
contain VT_EMPTY.
Returns the value of the specified FreeProperty for the current object (this).
GetInternationalDescription2
Fetches the localized (foreign-language) text for Description2. The number in the
index of the project languages is used as the parameter.
GetInternationalDescription3
Fetches the localized (foreign-language) text for Description3. The number in the
index of the project languages is used as the parameter.
GetOwnClassification
Returns the classification for the specified classification type of the current
document (without inheritance). Note: Only report templates can have a
classification.
GLocation
GLocation ( ) as Object
GetNumberRangeGeneratorAssignment
GetNumberRangeGeneratorAssignmentCount
long GetNumberRangeGeneratorAssignmentCount()
GPosition
GPosition ( ) as Object
GUnit
GUnit ( ) as Object
IsCheckedOutInOtherOverlay
Output parameter
Includes the working layer in which the version is already checked out with return
value DDMVersionResultAlreadyCheckedOut.
Output parameter
Includes the timestamp of the version already checked out with return value
DDMVersionResultAlreadyCheckedOut.
This method only works with version documents. The method determines if this
version is already checked out in another working layer. Return value corresponds
to one of the constants from module ComosSystemConstants, DDMVersionResult*.
IsDdmContainer
bool IsDdmContainer()
Determines whether the current document (this) is a container document from the PQM
environment.
IsDdmDocument
bool IsDdmDocument()
Determines whether the current document (this) is a document from the PQM
environment. Package documents as well as container and version documents are
considered DDM documents, and this method returns "true" for all three types.
IsDdmPackage
bool IsDdmPackage()
Determines whether the current document (this) is a Package document from the PQM
environment.
IsDdmVersion
bool IsDdmVersion()
Determines whether the current document (this) is a version document from the PQM
environment.
IsInCDeviceTree
IsInCDeviceTree ( ) as Boolean
Returns whether the document is located in the base data. This is the case if there
is a CDevice in the owner Hierarchy.
IsInDocumentGroupTree
IsInDocumentGroupTree ( ) as Boolean
Checks whether the Document is part of the document group view; in other words,
whether the last owner underneath the project is a document group.
IsInLocationTree
IsInLocationTree ( ) as Boolean
IsInUnitTree
IsInUnitTree ( ) as Boolean
IsLocationValid
Returns information on whether the specified object is valid as a location for this
Document and whether you are permitted to set the object at the Document.
Possible reasons for invalidity:
Object deleted, no current project set, Document not from the current project, no
editing rights, script function IsLocationValid, object from the wrong project,
object is not a location.
IsMasterDocument
IsMasterDocument ( ) as Boolean
IsNameSystemReference
IsNameSystemReference ( ) as Boolean
Checks whether the current document is a reference document from the @NameSystem
branch.
In Section Instructions Examples Basics History Extra
IsProjectReference
IsProjectReference ( ) as Boolean
IsUnitValid
Returns information on whether the specified object is valid as a unit for this
Document and whether you are permitted to set the object at the Document.
Object deleted, no current project set, Document not from the current project, no
editing rights, script function IsUnitValid, object from the wrong project, object
is not a unit.
LastCreatedRevision
LastCreatedRevision ( ) As Object
LastReleasedRevision
LastReleasedRevision ( ) As IComosDDevice
Layers
Layers ( ) as String
See also:
CDevice (Layers)
Device (Layers)
Specification (Layers)
User (Layers)
Location ( ) as Object
Location reference (Location pointer), can be of the class Location or Device with
DeviceClass Location
Lock
Lock ( ) as Boolean
With this property the current document is locked from being changed or deleted.
The lock can only be removed by those users who were also authorized to set this
lock.
MatchScanDocuments
Mode ( ) as Long
For documents in the base object tree. Mode = 1 means that the documents are copied
in when creating a Device.
NameSystemReference
NameSystemReference ( ) as IComosDDocument
NestedName
NestedName ( ) as String
The function returns the own name and the names of all superordinate documents in
the object structure (iteratively ascending).
NextLabel
NextLabel (Val as String) as String
Generates the next free Label; same as the Device.NextLabel method. See also
Chapter (NextLabel).
NextName
Returns the next valid name for the current document. Also evaluates the mask of
the base object.
OpenRevision
OpenRevision ( ) As IComosDDevice
OrgDocument
OrgDocument ( ) as IComosDDocument
OwnLabel
OwnLabel ( ) as String
OwnSpecifications
OwnSpecifications ( ) as IComosDOwnCollection
PageCount
PageCount ( ) as Long
PreLoadDevices
PreLoadDevices ( ) as Long
Loads all objects placed on a document (Devices referenced via DocObj) in one
operation to achieve improved performance when opening the document.
ProjectReference
ProjectReference ( ) as IComosDDocument
RealCDocument
RealCDocument ( ) as IComosDDocument
Original CDocument pointer (i.e. not the one created by means of project-specific
overlay).
In Section Instructions Examples Basics History Extra
RemoveFreeProperty
Specifies which FreeProperty should be removed. For the naming convention, see the
description of GetFreeProperty.
Removes the specified FreeProperty at the current object (this). Any subsequent
instances of accessing the specified FreeProperty will now only return the result
VT_EMPTY.
RemoveNumberRangeGeneratorAssignment
RemoveRevisionFromAllOverlays
RemoveRevisionFromAllOverlays (Name as String) as Boolean
Removes all unit revisions of this document with the specified name from all
layers.
Report
Report ( ) as Object
Returns the direct access to the report object itself for documents of types
Report, Interactive report, Report template and Interactive report template, from
COMOS (transition between COMOS and the report view). The return value is of data
type IReport.
Examples:
ReportObject
ReportObject as Object
Property you can use to set and read the report object for this document. The
report object is the reference object for COMOS reports (see Manual).
The Property provides the established COMOS functionality, which from version 8.2
onwards is defined centrally by means of the comos.dll and is to be used as
standard.
In Section Instructions Examples Basics History Extra
ResetFileExistsInOverlay
ResetFileExistsInOverlay ( )
Resets the information that a file exists for this document in the working layer.
Status after calling this method: No file in the layer.
RevisionCDevice
RevisionCDevice ( ) as IComosDCDevice
Returns the base object (revision object) used for the revision, depending on the
setting of the RevisionType at the base object.
RevisionOf
Returns the last revision of the specified object that is newer than the last
(newest) change of the object. If there is not a newer one, the last revision is
investigated:
No elements:
Revisions
Revisions ( ) as IComosDCollection
SetClassification
SetDrawingInUse
SetDrawingInUse ( )
Sets the current timestamp in UseTimeStamp. This shows that the document is being
edited.
SetFileExistsInOverlay
SetFileExistsInOverlay ( )
Has to be called if the file belonging to this document has been changed and
therefore needs to be fetched into the layer (i.e. only to be called upon first
change).
SetFreeProperty
SetFreeProperty ( ByVal propertyName as String, ByVal propertyValue as Variant )
Specifies which FreeProperty should be changed. For the naming convention, see the
description of GetFreeProperty.
The new value of the FreeProperty as variant. The type in the variant must match
the column in the database; otherwise, you can expect error messages from the
database when the current object is saved.
SetInternationalDescription2
Sets the localized (foreign-language) text for Description2. The number in the
index of the project languages is used as parameter 1. Parameter 2 is the new text.
SetInternationalDescription3
Sets the localized (foreign-language) text for Description2. The number in the
index of the project languages is used as parameter 1. Parameter 2 is the new text.
In Section Instructions Examples Basics History Extra
SetOwnClassification
Sets the specified classification to the specified value at the current document.
Note: Only report templates can have a classification.
SetSymbolType
ShutDownIReport ( )
Calls the ShutDown function at IReport and then releases the IReport.
Specifications
Specifications ( ) as IComosDCollection
SpecificationSets
SpecificationSets ( ) as IComosDOwnCollection
SystemLock
SystemLock ( ) as Long
This property is used to lock the current document against changes or deletion.
Counter that specifies the number of locks set. Changes to the document only become
possible again once the counter = 0.
SymbolType
SymbolType ( ) as String
Type
Type ( ) as Long
Internal distinction
ULFullName
ULFullName ( ) as String
See also
GUnit
GLocation
Unit
Unit ( ) as Object
Unit reference (unit pointer), can be of the class Unit or Device with
DeviceClassUnit or DeviceClassPosition.
UseTimeStamp
UseTimeStamp ( ) as IComosDTimestamp
Extension
Group
Mode
ProgramName
RunMode
TabType
IComosDDocumentType
Extension
Extension ( ) as String
Grouping of document types. All document types with the same Group value belong in
the same group.
Mode
Mode ( ) as Long
DocTypeMode (0 ): ExternalFile
ProgramName
ProgramName ( ) as String
RunMode
RunMode ( ) as String
TabType
TabType ( ) as String
Table name of the extension table for this document type (no longer in use).
IComosDLanguage
CharSet
CountryCode
DecimalDelimiter
GroupDelimiter
IsProjectRelevant
LCID
IComosDLanguage
CharSet
CharSet ( ) as Long
CharSet returns the Windows CharSet for this language. The CountryCode will also be
shown on the CharSet.
CountryCode
CountryCode ( ) as Long
Country code to determine the language display. No sorting by country code is done.
DecimalDelimiter
DecimalDelimiter ( ) as Long
GroupDelimiter
GroupDelimiter ( ) as String
IsProjectRelevant
bool IsProjectRelevant
Property of the type bool; indicates whether or not the current language is
relevant to the project (to the owner of that language object). The purpose of this
Property is that languages which are not required in the current project are marked
accordingly and can thereby be hidden in the interface.
LCID
LCID ( ) as Long
IComosDLocation
BackPointerDevices
BackPointerDocuments
CObject
CObjectConnectString
Devices
Documents
EnObs
GetObjectByLevel
Locations
OwnSpecifications
Specifications
SpecificationSets
IComosDLocation
BackPointerDevices
BackPointerDevices ( ) as IComosDOwnCollection
BackPointerDocuments
BackPointerDocuments ( ) as IComosDOwnCollection
Returns the set of Document objects that have a Location pointer to the current
object.
In Section Instructions Examples Basics History Extra
CObject
CObject ( ) as IComosDCDevice
CObjectConnectString
CObjectConnectString ( ) as String
Devices
Devices ( ) as IComosDOwnCollection
Documents ( ) as IComosDOwnCollection
EnObs
Filters the elements collection for objects of the classes specified in the
parameter. Valid parameter values: See also chapter DeviceClass.
Examples
GetObjectByLevel
Locations
Locations ( ) as IComosDOwnCollection
OwnSpecifications
OwnSpecifications ( ) as IComosDOwnCollection
Specifications
Specifications ( ) as IComosDCollection
SpecificationSets ( ) as IComosDOwnCollection
IComosDNumberRangeGenerator
Alphabet
CDevice
CheckEndValue
CheckStartValue
EndValue
GetLastUsedValue
GetNextValue
GetNumberRangeGeneratorAssignment
GetNumberRangeGeneratorAssignmentCount
Increment
IsAlreadyInUse
Postfix
Prefix
SelectedProperties
StartValue
In Section Instructions Examples Basics History Extra
IComosDNumberRangeGenerator
Note INumberRangeGenerator
Alphabet
string Alphabet
Property of the type string that logs the characters used to form
names/identifiers. The sequence of the characters determines the order used (e.g
"0123456789" defines the natural order of numbers).
In Section Instructions Examples Basics History Extra
CDevice
IComosDCDevice CDevice
Property of the type IComosDCDevice. Pointer to a base object. Only the objects
using the specified base object can use this generator for generation. An object or
object tree may be assigned several NumberRangeGenerators. Which one of these will
actually be used to generate new objects in this tree is primarily determined by
means of the CDevice that has been assigned.
CheckEndValue
Start value of the NumberRangeGenerator and thus the first permitted value of the
number range.
When a new value is generated, the value generated last is incremented by the value
Increment.
1
-1
The method checks the transferred values for validity regarding the currently used
NumberRangeGenerator and the currently used end value. The return value indicates
if the value combination is valid or which error was found. Constants see Module
ComosSystemConstants, values "NRGCheck...".
CheckStartValue
Start value of the NumberRangeGenerator and thus the first permitted value of the
number range.
When a new value is generated, the value generated last is incremented by the value
Increment.
-1
The method checks the transferred values for validity regarding the currently used
NumberRangeGenerator and the currently used start value. The return value indicates
if the value combination is valid or which error was found. Constants see Module
ComosSystemConstants, values "NRGCheck...".
EndValue
string EndValue
Property of the type string; contains the highest value to be generated. As soon as
this value has been reached, the generator cannot generate any further values and
is out of resources.
GetLastUsedValue
string GetLastUsedValue()
Returns the value of type string, which was the last one produced by the generator.
GetNextValue
GetNextValue ( ) as String
GetNumberRangeGeneratorAssignment
GetNumberRangeGeneratorAssignmentCount
long GetNumberRangeGeneratorAssignmentCount()
Increment
long Increment
Property of type long; defines the increment for value generation. Only the values
1 and -1 are currently allowed, which means that either the direct predecessor or
direct successor is used; greater steps are currently not allowed.
IsAlreadyInUse
bool IsAlreadyInUse
Postfix
string Postfix
Prefix
string Prefix
Property of type string; takes a prefix that leads all names/identifiers generated.
SelectedProperties
long SelectedProperties
Property of type long; defines the properties for which the NumberRangeGenerator is
to be used. The Long value is interpreted as bit array, with each bit representing
a property. Constants are available for the properties that can be used:
NumberRangeGeneratorSelectedPropertyName
NumberRangeGeneratorSelectedPropertyLabel
StartValue
string StartValue
Property of type string; contains the first value to be generated. This string may
only consist of characters that are also part of the alphabet.
IComosDObjectHistoryEntries
This chapter contains the following information:IComosDObjectHistoryEntries
Count
Item
IComosDObjectHistoryEntries
This Collection contains the history entries of an object for one or more layers.
Count
Count ( ) As Long
Item
IComosDObjectHistoryEntry
CreatedBy
NextEntry
Object
PreviousEntry
Remark
ValidFrom
ValidTo
IComosDObjectHistoryEntry
An object of this class contains a history entry, which had been created by the
history monitoring, plus the associated history information.
CreatedBy
CreatedBy ( ) As Object
Returns the user whose change operation created this history entry.
NextEntry
NextEntry ( ) As IComosDObjectHistoryEntry
Returns the history entry directly following this history entry in the
chronological order of the history.
Object
Object ( ) As Object
PreviousEntry
PreviousEntry ( ) As IComosDObjectHistoryEntry
Returns the history entry directly preceding this history entry in the
chronological order of the history.
Remark
Remark ( ) As String
Returns a remark that corresponds to the at which the history entry was created.
The remark may come from either the HistoryRemark ( ) function at the Workset or
the description of a release.
ValidFrom
ValidFrom ( ) As String
Returns the point in time from which the object with these contents was valid in
the database.
ValidTo
ValidTo ( ) As String
Returns the point in time up to which the object with these contents was valid.
IComosDObjectRevision
IComosDObjectRevision
Saves the history entry that is created when a working layer is released into the
released layer.
IComosDPhysUnit
AddTerm
AllBackPointerSpecifications
BackPointerSpecifications
CalcFrom
DINLabel
Factor
FactorReciprocal
IsD3Unit
IsDefaultUnit
IsSIUnit
Precision
IComosDPhysUnit
AddTerm
Main statement
AddTerm() as Double
Example:
PhysUnit
Factor
AddTerm
Meter
Kilometer
0.001
Centimeter
100
Kelvin
Celsius
273
AllBackPointerSpecifications
AllBackPointerSpecifications() as IComosDCollection
Returns a TempCollection with all Specifications that use this unit (PhysUnit).
BackPointerSpecifications
BackPointerSpecifications() as IComosDCollection
CalcFrom
Converts the value (val2) of a PhysUnit (val1) into the PhysUnit that was called.
The parameter Val2 may not be specified with any group delimiters.
Example
DINLabel ( ) as String
Factor
Factor() as Double
Multiplicative constants for the conversion of physical units. See also Chapter
AddTerm.
FactorReciprocal
FactorReciprocal() as Boolean
IsD3Unit
IsD3Unit() As Boolean
Shows whether this unit is the 3D unit of the unit group (see PhysD3Unit from
IComosDPhysUnitGroup).
IsDefaultUnit
IsDefaultUnit() as Boolean
Result is TRUE if the default Unit of the superordinate group is the same as the
PhysUnit that was called.
IsSIUnit
IsSIUnit() as Boolean
Result is TRUE if the SI-Unit of the superordinate group is the same as the
PhysUnit that was called.
Precision
Precision() as Long
IComosDPhysUnitGroup
AllBackPointerSpecifications
BackPointerSpecifications
PhysD3Unit
PhysDefaultUnit
PhysDefaultUnit1
PhysDefaultUnit2
PhysDefaultUnit3
PhysDefaultUnit4
PhysDefaultUnit5
PhysSIUnit
PhysUnits
IComosDPhysUnitGroup
COMOS object groups of physical units.
AllBackPointerSpecifications
AllBackPointerSpecifications() as IComosDCollection
Returns a TempCollection with all Specifications that use this unit group
PhysUnitGroup.
BackPointerSpecifications
BackPointerSpecifications() as IComosDCollection
PhysD3Unit
PhysD3Unit() As IComosDPhysUnit
Property for the 3D unit.
PhysDefaultUnit
PhysDefaultUnit() as IComosDPhysUnit
PhysDefaultUnit1
PhysDefaultUnit1() As IComosDPhysUnit
PhysDefaultUnit2
PhysDefaultUnit2() As IComosDPhysUnit
PhysDefaultUnit3
PhysDefaultUnit3() As IComosDPhysUnit
PhysDefaultUnit4
PhysDefaultUnit4() As IComosDPhysUnit
PhysDefaultUnit5
PhysDefaultUnit5() As IComosDPhysUnit
PhysSIUnit() as IComosDPhysUnit
PhysUnits
PhysUnits() as IComosDOwnCollection
IComosDProgressBarHider
IComosDProject
This chapter contains the following information:IComosDProject
ActualErrorObjectsCount
AddNumberRangeGeneratorAssignment
AllCDevices
AllCDevicesWithScript
AllDevices
AllDocumentGroups
AllDocuments
AllDocumentsWithDocumentType
AllLocations
AllStandardTables
AllUnits
Cases
CDevices
CDeviceSystem
CheckAndWriteLogFile
CheckDocumentDirectory
CheckPreLoadSpecs
CheckVirtualElements
CObject
CompressDatabaseAndDBDirectory
CompressDatabaseAndDBDirectoryTimestamp
ConnectorPrefix
ConnectWithCDeviceSystem
ConnectWithUserSystem
CopyDataFromSystemProject
CountStillCreatableVirtualElements
CSpecificationSets
CurrentCharSet
CurrentLanguage
CurrentObjectRevision
CurrentPhysUnitGroup
CurrentWorkingOverlay
DBCopy
DBCopyWithoutRevisions
DBDelete
DBStatus
DBStatusErrorText
Description2
Description3
DevicePrefix
Devices
DisconnectFromCDeviceSystem
DisconnectFromUserSystem
DisconnectStatus
DocumentPrefix
Documents
DocumentTypes
EnObs
ErrorObjectsCount
ErrorObjectsDescription
ErrorObjectsErrorCode
ErrorObjectsItem
ErrorObjectsMode
ErrorObjectsRemove
GetCDeviceBySystemFullname
GetCDeviceSeparator
GetConsolidationShadowObject
GetCSpecificationSetSeparator
GetCurrentCase
GetDBCurrentLanguage
GetDocumentDirectory
GetFunctionRights
GetHierarchyObjectByName
GetImportUID
GetInternationalDescription2
GetInternationalDescription3
GetNumberRangeGeneratorAssignment
GetNumberRangeGeneratorAssignmentCount
GetParametersFromCDeviceSystem
GetShadowObject
GetWorkingOverlay
GlobalTestForCurrentOverlay
ImportOverlay
IsIDBProject
IsQueryStatusActive
Languages
LoadObjectsInBoundingBox
LocationPrefix
Locations
ObjectRevisions
OverlayAdministrationRights
OwnDocumentTypes
OwnParameters
OwnPhysUnitGroups
OwnSpecifications
OwnStandardTables
Parameters
Params
PhysDir
PhysUnitGroups
PickLists
PositionPrefix
PrimaryLanguage
PreLoadSpecs
ProjectSpecifications
Put_ConnectedBaseWorkingOverlay
RecalculateWorkingLayerHierarchy
RefreshLabelSigns
RefreshQueryStatus
ReleaseObjectsFromOtherProjects
RelevantLanguages
RemoveNumberRangeGeneratorAssignment
Rights
SaveErrorObjects
SavePickList
SetCurrentCase
SetCurrentLanguageForSession
SetImportUID
SetInternationalDescription2
SetInternationalDescription3
SetProjectForMixedCollections
Specifications
SpecificationSets
StandardTables
SwitchCDeviceSystemProject
Type
Units
UnitPrefix
UseLanguages
UserSystem
WorkingOverlays
IComosDProject
The COMOS project object is located in the object hierarchy at the uppermost point
directly under the Workset.
ActualErrorObjectsCount
ActualErrorObjectsCount() As Long
Returns the number of objects of the error list that currently cannot be saved
(i.e., check <> 0). Toggles the "lightning" icon in the status line.
AddNumberRangeGeneratorAssignment
void AddNumberRangeGeneratorAssignment(IComosDNumberRangeGenerator generator, long
rank)
Generates a new assignment for the current object using the specified
NumberRangeGenerator and Rank value.
AllCDevices
AllCDevices() as IComosDCollection
AllCDevicesWithScript
AllCDevicesWithScript() as IComosDCollection
AllDevices
AllDevices() as IComosDCollection
Collection of all Devices in the relevant project.
AllDocumentGroups
AllDocumentGroups() as IComosDCollection
Collection of all Devices with the class DocumentGroup in the relevant project.
AllDocuments
AllDocuments() as IComosDCollection
AllDocumentsWithDocumentType
Collection of all Document objects and the DocumentType stipulated by the parameter
in the relevant project.
In Section Instructions Examples Basics History Extra
AllLocations
AllLocations() as IComosDCollection
Collection of all Locations and all Devices of class Location in the relevant
project.
AllStandardTables
AllStandardTables() as IComosDCollection
AllUnits
AllUnits() as IComosDCollection
Collection of all units (Units) and all Devices of class Unit in the relevant
project.
In Section Instructions Examples Basics History Extra
Cases
Cases() as IComosDOwnCollection
CDevices
CDevices() as IComosDOwnCollection
CDeviceSystem
CDeviceSystem() as IComosDProject
Checks and corrects the specified project in the database and creates an error
list.
CheckDocumentDirectory
CheckDocumentDirectory()
CheckPreLoadSpecs
CheckVirtualElements
Checks whether there are fewer elements with the name of the CDevices as the prefix
in the OwnElements collection than were specified in the CDevice.Virtual property.
Checks directly under the current project.
CObject
CObject() as IComosDCDevice
The CDevice that is valid for the project. It is saved as CObject at the
SpecificationSet with the name System. This method is only used for easier access.
CompressDatabaseAndDBDirectory
CompressDatabaseAndDBDirectory()
CompressDatabaseAndDBDirectoryTimestamp
Removes deleted objects from the database that are older than the transferred point
in time and removes document files associated with deleted documents.
Parameter oleDate: Only objects that are older than this point in time will be
removed from the database. In the case of document files to be deleted, this point
in time is not evaluated. All files associated with deleted documents are deleted.
ConnectorPrefix
ConnectorPrefix() as String
ConnectWithCDeviceSystem
ConnectWithCDeviceSystem() as IComosDCollection
Connects the specified project to the base data project. This is necessary when
changing the base project or after sourcing out projects. The returned Collection
contains all objects that could not be allocated properly.
ConnectWithUserSystem
ConnectWithUserSystem() as IComosDCollection
Connects the specified project to the template project. This may be necessary after
sourcing out projects. The returned Collection contains all objects that could not
be allocated properly.
CopyDataFromSystemProject
CopyDataFromSystemProject()
Copies the CDevice structure from the system project into the current project.
CountStillCreatableVirtualElements
"Virtual" setting
Return value is the number of elements of the specified base object that can still
be created below the current object.
CSpecificationSets
CSpecificationSets() as IComosDOwnCollection
CurrentCharSet
CurrentCharSet() as Long
CurrentLanguage
CurrentLanguage() as IComosDLanguage
CurrentObjectRevision
CurrentObjectRevision() as IComosDObjectRevision
CurrentPhysUnitGroup
Property for the current unit system (metric, British, alternative system 1- 3).
CurrentWorkingOverlay() as IComosDWorkingOverlay
Current WorkingOverlay
DBCopy
DBCopy()
DBCopyWithoutRevisions
DBCopyWithoutRevisions()
Copies the project without copying the revisions as well (no revision objects, no
revision documents).
DBDelete()
Deletes the relevant project from the database; this also requires reinitialization
of the Workset to prevent access to old data.
Note This operation does not mark the objects under the current project as deleted
(delete flag), but instead genuinely deletes all specified objects from the
database!
DBStatus
DBStatus() as Boolean
Returns the validity status of the project. This status is set to valid provided it
was possible to carry out the database operation in full and without errors
(applies to all database operations that lead to the creation of a new project
(such as copying, importing, exporting)).
DBStatusErrorText
DBStatusErrorText() as String
The text includes the action that led to the error, together with the user and the
date of the action.
In Section Instructions Examples Basics History Extra
Description2
Description2() as String
Additional description.
Description3
Description3() as String
Additional description.
DevicePrefix
DevicePrefix() as String
Devices() as IComosDOwnCollection
DisconnectFromCDeviceSystem
DisconnectFromCDeviceSystem() as Boolean
Disconnects the relevant project from the system project and resets all pointers to
"symbolic information" (ConnectStrings), in order to allow subsequent reconnection
to another system project to be carried out without any problems.
DisconnectFromUserSystem
DisconnectFromUserSystem() as Boolean
Disconnects the relevant project from the template project and resets all pointers
to "symbolic information" (ConnectStrings), in order to allow subsequent
reconnection to another template project to be carried out without any problems.
Displays the connection status of the projects specified by the parameter. Valid
parameters: See also Chapter Project.
DocumentPrefix
DocumentPrefix() as String
Documents
Documents() as IComosDOwnCollection
DocumentTypes
DocumentTypes() as IComosDCollection
Collection of document types from OwnDocumentTypes of the relevant project and the
system project.
EnObs
Filters the elements collection for objects of the classes specified in the
parameter. Valid parameter values: See also chapter DeviceClass.
Examples
ErrorObjectsCount
ErrorObjectsCount() as Long
Number of entries in the error list. These entries are managed for each user and
for each project. The entries consist of:
Mode ErrorObjectsMode
Code
Comos-Cbject
Description
ErrorObjectsDescription
ErrorObjectsErrorCode
ErrorObjectsItem
ErrorObjectsItem(Val as Long) as Object
ErrorObjectsMode
ErrorObjectsRemove
ErrorObjectsRemove(index as Long)
GetCDeviceBySystemFullname
Searches for a CDevice which owns the specified SystemFullName. The CDevice can be
found both in the current engineering project and in the base project in use.
The mode parameter is used to determine the projects in which the search will be
carried out, and in what order. Note that local base objects located below a base
object from SO1 are considered to be base objects from SO1 for the purposes of this
search method. Only if the complete owner chain is part of the engineering object
does the object belong to the engineering project for the purposes of the search.
This means: If two base objects with the same name are located in the same position
but in different projects (engineering project and base project), both objects are
considered to be part of the base project and only one of them is returned as
return value. The object from the base project has precedence in the default
setting.
Parameters
systemFullName
mode
CDevice is first searched for in the base project in use. If it is not found there,
the current engineering project is searched.
If the CDevice is present in the base project and in the engineering project, the
mode parameter determines which of the two objects is found.
GetCDeviceSeparator
GetCDeviceSeparator() as String
GetConsolidationShadowObject
1: Update
In this case, the object that is used during the comparison on transferred. The
"Delta" working layer is created as the comparison result. The object can originate
in the "Update collection" working layer or in the "Major release area" working
layer.
2: Delta layer
Transfers the corresponding counterpart for the specified object in the specified
working layer.
GetCSpecificationSetSeparator
GetCSpecificationSetSeparator() as String
GetCurrentCase
GetCurrentCase() as Object
GetDBCurrentLanguage() as IComosDLanguage
GetDocumentDirectory
GetDocumentDirectory() as String
Returns the complete path for the documents directory of the project.
GetFunctionRights
Returns the user and project-related interface function rights; i.e. rights that
use specific functions of the software interface.
Note Up until now, these have only been created in the base object tree for the
purpose of editing specifications, but in theory they could be used for any
functions.
GetImportUID
A method that is no longer used for displaying UIDs for imports. In future there
will be no more support for this method!
GetInternationalDescription2
Fetches the localized (foreign-language) text for Description2. The number in the
index of the project languages is used as the parameter.
In Section Instructions Examples Basics History Extra
GetInternationalDescription3
Fetches the localized (foreign-language) text for Description3. The number in the
index of the project languages is used as the parameter.
GetNumberRangeGeneratorAssignment
GetNumberRangeGeneratorAssignmentCount
long GetNumberRangeGeneratorAssignmentCount()
GetParametersFromCDeviceSystem
GetParametersFromCDeviceSystem()
Checks parameters from the base project into the current project. The following
rule applies: If the parameter in the base project owns a value and if the
parameter in the current project was inherited, then the value is taken from the
base project.
GetShadowObject
GetWorkingOverlay
GlobalTestForCurrentOverlay
long GlobalTestForCurrentOverlay()
Performs the global test for the current project (this), but only objects which are
checked into the current layer are considered. Otherwise, the same checks are run
here as in the case of normal global checks.
ImportOverlay
Imports the working layers that had been exported in an Access database created by
ExportOverlay with the associated document directory.
IsIDBProject
IsIDBProject ( ) as Boolean
True: The current project is part of an iDB and supports iDB updates. Example: Base
project of an iDB.
IsQueryStatusActive
Checks whether the status transferred as a parameter is a query status for Device
or the default status for Device.
Parameter val:
Background:
Languages
Languages() as IComosDOwnCollection
LoadObjectsInBoundingBox
This function forms a kind of interface between the 3D world of Viper and the COMOS
object world. This enables you to access COMOS objects directly via the object
coordinates without having to take the route via the object hierarchy in COMOS.
Note: Ensure that the x, y and z values of the two points differ when selecting the
points, otherwise it will not be possible to create a cube.
LocationPrefix
LocationPrefix() as String
Locations
Locations() as IComosDOwnCollection
ObjectRevisions
ObjectRevisions() as IComosDOwnCollection
OverlayAdministrationRights
Returns whether you have the rights to manage the specified layer (release, restore
in the layer, create new layers underneath it, etc.).
The mode modenew specifies whether the rights are for the level itself (modenew =
FALSE) or for creation on the next level (modenew = TRUE).
You can obtain modenew rights for the first level by specifying NULL as the first
parameter.
In practice, there is precisely one command which targets not the layer itself but
instead the next layer, and this is: the "New" command. The above-mentioned
function is thus used to work accordingly with the "New" command.
OwnDocumentTypes() as IComosDOwnCollection
OwnParameters
OwnParameters() as IComosDOwnCollection
OwnPhysUnitGroups
OwnPhysUnitGroups() as IComosDOwnCollection
OwnSpecifications
OwnSpecifications() as IComosDOwnCollection
No project attributes, only attributes from the attribute catalog "@40 @Y".
OwnStandardTables
OwnStandardTables() as IComosDOwnCollection
Parameters
Parameters() as IComosDCollection
Collection with project parameter objects as elements. The project parameters are
created and preset (among other things) in the COMOS system project and can be
modified on a project-specific basis using the "Options" and "More options" project
tabs.
Params
Params() as Object
PhysDir
PhysDir() as String
Directory name of the specified project. The full path is returned via
GetDocumentDirectory. See also Chapter GetDocumentDirectory.
PhysUnitGroups
PhysUnitGroups() as IComosDCollection
Collection with PhysUnitGroup objects from the specified project, the base project
and the system project as elements.
PickLists
PickLists() as IComosDOwnCollection
PositionPrefix
PositionPrefix() as String
PrimaryLanguage
PrimaryLanguage() as Long
Primary language: Only changes in this language make the other language entries
invalid.
PreLoadSpecs
Load function for attributes. The attributes are addressed by their name, and a
check is performed to determine whether they belong to the set specified with
owner. This function is used for bulk access instances to attributes with the same
NestedName (e.g. in Queries).
ProjectSpecifications
ProjectSpecifications() as IComosDCollection
Put_ConnectedBaseWorkingOverlay
put_ConnectedBaseWorkingOverlay(/*[in]*/IComosDWorkingOverlay *newVal);
A new functionality for working layers. Connects an engineering project fixed with
a working layer of the base data project. (previously you could only see the
released area of a base data project). Therefore base data can also be evaluated
prior to the release. The same functionality applies to working layers of the
engineering project.
RecalculateWorkingLayerHierarchy
RecalculateWorkingLayerHierarchy ( ) as Boolean
Triggers a recalculation of the status of the objects in the working layer display.
RefreshLabelSigns
RefreshLabelSigns()
Updates the prefixes and delimiters temporarily stored in COMOS for naming, as
stipulated in the project parameters.
RefreshQueryStatus
RefreshQueryStatus(val as Long)
ReleaseObjectsFromOtherProjects
ReleaseObjectsFromOtherProjects()
As with Workset.ReleaseObjects. All objects that are not referenced any longer are
removed from the cache. This method does not check the number of maximum loaded
objects (Workset.MaxLoadedObjects); instead, all objects that do not originate from
the specified project are removed.
RelevantLanguages
IComosDCollection RelevantLanguages()
Returns a collection of type IComosDColletion that contains all languages that are
relevant to the current project (i.e., all languages for which the
"IsProjectRelevant" flag is set to TRUE).
RemoveNumberRangeGeneratorAssignment
Rights
Rights() as IComosDOwnCollection
Hierarchically-subordinate Collection with rights objects.
SaveErrorObjects
SaveErrorObjects()
SavePickList
SavePickList(Val as String)
SetCurrentCase
SetCurrentCase(Val as Object)
SetCurrentLanguageForSession
SetCurrentLanguageForSession(Val as Object)
Sets the language specified by the parameter as the current language for the
session in progress (but not in the database).
SetImportUID
No longer state of the art! In future there will be no more support for this
method!
SetInternationalDescription2
Sets the localized (foreign-language) text for Description2. The number in the
index of the project languages is used as parameter 1. Parameter 2 is the new text.
Sets the localized (foreign language) text for Description3. The number in the
index of the project languages is used as parameter 1. Parameter 2 is the new text.
SetProjectForMixedCollections
SetProjectForMixedCollections()
Specifications
Specifications() as IComosDCollection
No project attributes, only attributes from the attribute catalog "@40 @Y".
SpecificationSets() as IComosDOwnCollection
StandardTables
StandardTables() as IComosDCollection
Collection with standard table objects from the specified project, the base project
and the system project.
SwitchCDeviceSystemProject
Switches the base project to the specified one. (Quicker than disconnecting from an
old base project and connecting to a new one.)
Type
Type() as String
Units
Units() as IComosDOwnCollection
UnitPrefix
UnitPrefix() as String
UseLanguages
UseLanguages() as Boolean
UserSystem
UserSystem() as IComosDProject
Template project.
WorkingOverlays
WorkingOverlays() as IComosDOwnCollection
IComosDRight
Layers
IsFunctionRight
ReadOnlyLayers
Reference
Rights
User
IComosDRight
FunctionRights
FunctionRights() as Long
Layers
string Layers
IsFunctionRight
IsFunctionRight() as Boolean
ReadOnlyLayers
string ReadOnlyLayers
Reference
Reference() as Object
Rights
Rights() as Long
Rights for the access to objects. Valid parameters: See also Chapter Rights.
User
User() as Object
IComosDSpecification
AcceptStaticLinkValues
BackPointerSpecifications
CalcFrom
CalcTo
CalcToEx
CalculateStaticLinkXValue
CaseValueArray
CheckProductRequest
CheckValid
CheckXValid
ClearProperties
ClearXValues
ControlProperties
ControlType
CreateLinkInfo
CreateLinkInfoObject
CreateLocalStandardTable
CSpecification
D3Mode
DeleteLinkInfo
DeleteLinkInfoObject
DetachFromStaticLink
DetachXValueFromStaticLink
DeviceStatus
DeviceStatusValue
DisplayValue
Format
FormattingDigits
FreePropertyGroupName
FreePropertyName
FullFileName
GetFormattedValue
GetDisplayXValue
GetHelpText
GetInternationalDisplayValue
GetInternationalDisplayXValue
GetInternationalValue
GetInternationalXValue
GetLinkedSpecification
GetLinkInfoObject
GetOwnHelpText
GetOwnInternationalValue
GetOwnInternationalXValue
GetOwnLinkInfoObject
GetOwnScriptBlock
GetOwnXValue
GetPhysUnit
GetScriptBlock
GetSIXValue
GetSpecOwner
GetStaticLinkedSpecification
GetStaticXLinkedSpecification
GetValueBlocked
GetValueByCase
GetValueFromStandardValueDescription
GetValueRSByCase
GetXLinkedSpecification
GetXValue
GetXValueFromStandardValueDescription
GetXValueRS
GetXValueRSByCase
HelpTextCount
Inheritance
IsLinkObjectValid
IsLockable
IsMandatoryTab
IsRange
IsStaticLinkXValueAccepted
IsValueValid
IsValueValidEx
IsViewMandatoryTab
IsWorkflowReference
IsXValueDetachedFromStaticLink
Item
Layers
Length
LinkCache
LinkInfo
LinkObject
LinkObjectConnectString
LValue
LXValue
MakeVisible
MappingTable
MaxLinkedXValueCount
MaxStaticLinkedXValueCount
NestedName
OldIsRange
OwnControlProperties
OwnControlType
OwnCSpecification
OwnD3Mode
OwnDescription
OwnDeviceStatus
OwnDeviceStatusValue
OwnFormat
OwnFreePropertyGroupName
OwnFreePropertyName
OwnHelpTextCount
OwnInheritance
OwnIsLockable
OwnLayers
OwnLength
OwnLinkInfo
OwnLinkObject
OwnPrecision
OwnProductRequest
OwnRangeCheckMode
OwnRangeType
OwnScript
OwnSection
OwnSpecifications
OwnStandardTable
OwnTabIndex
OwnType
OwnUnit
OwnValue
PhysUnitLabel
Precision
ProductRequest
ProductUnit
ProductValue
RangeCheckMode
RangeType
RealStandardTable
RefreshUnit
Script
Section
SetAcceptStaticLinkXValue
SetHelpText
SetInternationalValue
SetInternationalXValue
SetMandatoryTab
SetOwnInternationalValue
SetOwnInternationalXValue
SetOwnScriptBlock
SetScriptBlock
SetSIXValue
SetUnitWithoutValueConversion
SetViewMandatoryTab
SetWorkflowReference
SetXValue
SIValue
Specifications
StandardTable
StandardTableConnectString
StandardValue
StandardValueDescription
StandardXValueDescription
StaticLinkDisplayValue
StaticLinkDisplayXValue
StaticLinkValue
StaticLinkXValue
TabIndex
Type
Unit
UseCases
UseCasesInherited
Value
ValueBlocked
View
ViewInherited
XValueArray
XValueByCase
IComosDSpecification
AcceptStaticLinkValues
AcceptStaticLinkValues() as Boolean
When this function is run the differences in the changing values of a static link
are accepted on a one-time basis. In this case the background color switching is
reset, the status evaluation is not affected, and no values are taken over. Each
time the static link values are changed again, this leads to normal behavior (such
as color switching, status changes, etc.).
BackPointerSpecifications
BackPointerSpecifications() as IComosDCollection
Returns the set of Specification objects that have a CSpecification pointer to the
current object; database-supported BackPointerDocuments.
CalcFrom
Converts the value transferred in Value from the unit transferred in parameter
other_unit to the unit currently set for the attribute.
Other_unit: specifies the unit of the value transferred in the Value parameter.
The parameter transfers the name of the unit as defined in the physical unit group
to which the unit belongs. E.g. "M01.05" for the unit "meters" from the physical
unit group "M01" (length).
Return value:
The Value converted from the unit Other_unit to the current unit of the attribute
as Double.
Example:
Special case:
The current unit of the specification is used. No conversion takes place in this
case. However, since the return value of the function is of type Double, the
conversion function may still be useful. Therefore, you can use the function to
convert a string variable into a numerical value, which can then be used to carry
out arithmetic operations.
CalcTo
Must not be specified with group delimiters. Owns the unit currently set in the
specification.
Other_unit: The unit to which the Value is to be converted.
The parameter transfers the name of the unit as defined in the physical unit group
to which the unit belongs. E.g. "M01.05" for the unit "meters" from the physical
unit group "M01" (length).
Return value:
The Value converted from the unit currently set in the specification to the unit
transferred in Other_unit, as Double.
Value : 1000
Special case:
The current unit of the specification is used. No conversion takes place in this
case. However, since the return value of the function is of type Double, the
conversion function may still be useful. Therefore, you can use the function to
convert a string variable into a numerical value, which can then be used to carry
out arithmetic operations.
CalcToEx
CalcToEx(Other_unit As String, Value As String, Precision As Long) as String
Similar function to CalcTo, but in this case the evaluation is restricted to the
number of decimal places specified by parameter Precision.
The parameter Value must not be specified with any group delimiters.
CalculateStaticLinkXValue
CalculateStaticLinkXValue(Val as Long)
Accepts the value of the statically-linked attribute for the XValue stipulated by
the specified index. Same as CalculateLinkedSpecifications.
CaseValueArray
CaseValueArray() as String
All existing cases are always returned. If an attribute does not own a case, then
an empty string is returned.
<useCaseId_1>$<useCaseValue>|...|<useCaseId_n>$<useCaseValue>
The indices of the single cases can occur in any sequence.
Example
For three cases (name "Min", Id 1; name "Std", Id 2; name "Max", Id 3) the string
would have the following appearance, for example:
"2$7,5|1$5|3$10,9"
CheckProductRequest
Used for product request combination attributes. Checks whether the request matches
the product specification in terms of the set operator. Is also evaluated by
Spec.CheckValid.
CheckValid
CheckValid() as Boolean
Checks Range attributes to determine whether the conditions min <= value and max >=
value have been violated and evaluates all the static links required for comparison
purposes.
CheckXValid
CheckXValid(Val as Long) as Boolean
Checks the validity of the XValue and StaticLinkXValue specified by the parameters
according to the rules for static links. Similar function to CheckValid, but for
XValues.
ClearProperties
ClearProperties()
Resets all Properties that can be inherited. This is required, for example, if you
use a catalog attribute and wish to ensure that all possible information is
retrieved from this catalog attribute.
ClearXValues
This method can be used to delete an entire area of XValues for an attribute.
Parameter startIndex:
Type Integer; specifies the starting point (index) from which XValues should be
deleted (this includes the starting point).
Parameter endIndex:
Type Integer; specifies the index up to which XValues should be deleted (this
includes the index specified).
Examples:
Example
ClearXValues 10.20
ClearXValues 80
ClearXValues ,50
ClearXValues
ControlProperties
ControlProperties() as String
A String that contains all layout properties of an attribute as well as the display
sizes and coordinate information.
In Section Instructions Examples Basics History Extra
ControlType
ControlType() as String
CreateLinkInfo
CreateLinkInfo()
CreateLinkInfoObject
CreateLinkInfoObject(Val as Long)
CreateLocalStandardTable() as Boolean
Creates a local standard table and sets it at the attribute. The standard table can
only be used for this attribute. It is created in the StandardTables tree under
@Local. The return value is a boolean value that specifies whether the creation
process was successful.
CSpecification
CSpecification() as IComosDSpecification
Short form for catalog Specification; an attribute from the base project, generally
from the "@40 @Y" branch. All properties that are not defined at the relevant
attribute are taken from this attribute.
D3Mode
D3Mode() as Long
A property that determines whether the attribute is 3D-relevant. Valid values: See
also Chapter SpecD3Mode.
DeleteLinkInfo()
DeleteLinkInfoObject
DeleteLinkInfoObject(Val as Long)
DetachFromStaticLink
DetachFromStaticLink() as Boolean
DetachXValueFromStaticLink
DetachXValueFromStaticLink([in] VARIANT_BOOL detach, [in] long xValueIndex)
In the case of a static link, you can use this method to detach a particular XValue
from the source entirely. This means that a switch to orange highlighting can never
be activated for this XValue, since differing values are always accepted (until
detaching is deactivated).
The detach parameter is used to control whether the XValue should be attached or
detached. The xValueIndex parameter is used to specify the XValue parameter to be
used.
DeviceStatus
DeviceStatus() as Long
Shows the DeviceStatus for which this attribute is responsible (currently 1-6 are
possible).
DeviceStatusValue
DeviceStatusValue() as Long
Specifies the Value to which the status of the Device is to be set, if CheckValid
has not been completed (value 0 - 3).
DisplayValue() as String
Format
Format() as String
In the special case "Sort text" in the properties of a tab, the sort text
corresponds to the Format.
FormattingDigits
FreePropertyGroupName
string FreePropertyGroupName
Property of type String. Saves the name of the FreeProperty group, also called
"Extended Properties" in the interface, to which the value of this specification is
to be written.
If the edit mode of the current specification is not set to FreeProperty, this
Property is completely ignored.
Inheritance is used with this Property if the current specification does not have
its own value.
FreePropertyName
string FreePropertyName
Property of type String. Saves the name of the FreeProperty to which the value of
this specification is to be written.
If the edit mode of the current specification is not set to FreeProperty, this
Property is completely ignored.
Inheritance is used with this Property if the current specification does not have
its own value.
FullFileName
FullFileName() as String
GetFormattedValue
A common kept method to format numeric values. Different settings can be applied to
influence the output.
Optional parameter; if it is left out, then the Value of the current attribute is
used.
Optional parameter; if it is left out, the number of decimal places in the original
number is not changed.
States if not existing decimal points should be replaced with zeros. Example:
Number "11.2" should be formatted with two decimal places. If zeroizeDecimalPlaces
is set to TRUE the result is "11.20", otherwise it is "11.2".
States if and when the exponential notation is allowed. If this parameter is set to
ScientificNotation_SuppressAlways (constant), the numbers in the exponential
notation are formatted into the normal display, no matter how large they are. If
the parameter is set to ScientificNotation_SuppressNotZero (constant), a number is
only transferred to the normal display if it is not rounded to zero by means of the
remaining formatting specifications (example: "0.001" is supposed to be formatted
with 2 decimal places). The result after rounding would be "0.00". In this case a
switch to exponential display would occur and the result would be "1E-3". If the
parameter is set to ScientificNotation_SuppressNever (constant), the display
remains unchanged.
Name of a unit to be used. The unit is only used to collect the amount of decimal
places. Therefore, if a valid unit is specified, the parameter decimalPlaces has no
effect since it is overwritten by the settings for the unit.
Optional parameter; if it is left out the name is put to an empty string and
therefore no unit is used.
Delimiter for decimal places; states which character should be used as a decimal
divider.
Optional parameter; if it is left out the number is formatted without a divider for
thousands.
In Section Instructions Examples Basics History Extra
GetDisplayXValue
GetHelpText
Returns the help text specified with Parameter1 in the language specified with
Parameter2.
GetInternationalDisplayValue
Method which works in a similar way to DisplayValue, but can return the result in a
certain language (if a corresponding value exists for the specified language).
Return value: The DisplayValue of the current attribute (this), in the language
specified by the parameter languageIndex or an empty string if no value exists for
the specified language.
Parameter languageIndex: Defines the language in which the DisplayValue is to be
returned. 1 corresponds to the first language defined in the project, 2 the second,
etc.
GetInternationalDisplayXValue
Method which works in a similar way to GetDisplayXValue, but can return the result
in a certain language (if a corresponding value exists for the specified language).
Return value: The DisplayXValue of the current attribute (this), in the language
specified by the parameter languageIndex or an empty string if no value exists for
the specified language.
GetInternationalValue
Returns the value of the relevant attribute in the language specified by the
parameter; only attribute values of type "Text" are translated. See also Chapter
SpecificationType.
In Section Instructions Examples Basics History Extra
GetInternationalXValue
GetLinkedSpecification
GetLinkedSpecification() as IComosDSpecification
GetLinkInfoObject
Returns the link object for the XValue specified by the parameter.
In Section Instructions Examples Basics History Extra
GetOwnHelpText
GetOwnInternationalValue
Returns the object's own value of the relevant attribute in the language specified
by the parameter; only attribute values of type Text are translated. See also
Chapter SpecificationType.
GetOwnInternationalXValue
GetOwnLinkInfoObject
Returns the object's own link object for the XValue specified by the parameter.
GetOwnScriptBlock
Returns the object’s own script block specified with the parameter. See also
Chapter GetScriptBlock.
GetOwnXValue
Returns the object's own XValue with the identified parameter in string form.
Returns the PhysUnit specified by the parameter; the PhysUnit of the current object
is returned if no parameter has been set.
GetScriptBlock
GetSIXValue
See SIValue. In this case, for XValues. The index to be specified is the index of
the XValues.
GetSpecOwner
GetSpecOwner() as Object
Returns the first owner of an attribute, which is neither of type Specification nor
of type SpecificationSet.
GetStaticLinkedSpecification
GetStaticLinkedSpecification() as IComosDSpecification
GetStaticXLinkedSpecification
Returns the source attribute of the static link for the specified Index.
GetValueBlocked
GetValueBlocked(Val as Long) as Boolean
Shows whether editing the XValue identified by the parameter is permitted. Possible
reasons for preventing editing:
Layer
Inheritance-Mode
Rights
Link
other project
GetValueByCase
Returns the value for the case specified with the parameter.
GetValueFromStandardValueDescription
For attributes with standard tables. Performs the conversion back from a
description of a StandardValue to the Value which has to be written to the
attribute.
GetValueRSByCase
Returns the timestamp of the value for the case parameterized with other_case.
GetXLinkedSpecification
Returns the source attribute of the link for the specified Index.
GetXValue
GetXValueFromStandardValueDescription
Does not return the Value of the StandardValue object found using the Description,
but instead the XValue specified by means of the Index.
GetXValueRS
GetXValueRSByCase
Returns the timestamp of the XValue identified by index for the case specified by
other_case.
In Section Instructions Examples Basics History Extra
HelpTextCount
HelpTextCount() as Long
Inheritance
Inheritance() as Long
Mode for editing behavior. Valid parameters: See also Chapter SpecInheritance.
IsLinkObjectValid
Object deleted, no current project set, Specification not from the current project,
no editing rights, script function IsLinkObjectValid, object from the wrong
project.
In Section Instructions Examples Basics History Extra
IsLockable
IsLockable() as Long
Property of the type long which determines whether or not the current specification
can be locked on the engineering side.
1 Specification is lockable
IsMandatoryTab
IsMandatoryTab ( ) as Long
The mandatory tab also has a second tab called ViewMandatoryTab. This second tab is
read-only and is set with the function SetViewMandatoryTab and queried with
IsViewMandatoryTab.
In Section Instructions Examples Basics History Extra
IsRange
IsRange() as Long
IsStaticLinkXValueAccepted
Returns TRUE or FALSE, depending on whether the current value of the XValues
specified by the parameter xValueIndex was accepted. In the case of static links, a
value that differs from the link source can be accepted via the interface, i.e.
switching to orange highlighting is no longer activated. Therefore, you can use
this method to check the XValue for which this was applied. However, the concrete
value of the XValue at the time it was accepted is stored, meaning that a newly-
entered value is not automatically accepted.
IsValueValid
Checks whether the specified value is valid for this attribute. Performs a test for
numeric type attributes to determine whether the value is numerical, and checks it
against the IsValueValid script function (if available).
IsValueValidEx
Checks whether the specified value is valid for this attribute. Performs a test for
numeric type attributes to determine whether the value is numerical. The mode
parameter can be used to determine whether the script function IsValueValid (which
may be present) is to be evaluated:
IsValueValidExNormal
IsValueValidExNoScript
IsViewMandatoryTab
IsViewMandatoryTab ( ) as Long
Reads the Flag that is used to declare a tab as read-only copy of a mandatory tab.
This functionality is part of PQM. The SetMandatoryTab method is used in COMOS 10.1
in connection with the database type iDB to declare a tab as a mandatory tab.
The mandatory tab has a copy called ViewMandatoryTab. This copy is read-only and is
set with the function SetViewMandatoryTab and queried with IsViewMandatoryTab.
In Section Instructions Examples Basics History Extra
IsWorkflowReference
IsWorkflowReference ( ) as Long
2: The inherited status is valid. The status of the owner determines whether or not
the attribute is part of a workflow.
Reads the Flag whether or not an attribute is part of Workflows. Attributes with
this labeling are monitored by COMOS.
IsXValueDetachedFromStaticLink
In the case of a static link for an XValue, it is possible to not only accept one
particular differing value, but also always accept generally differing values. You
can use this method to check whether this is the case. It returns TRUE if the
XValue specified by the parameter xValueIndex is completely detached; otherwise, it
returns FALSE.
In Section Instructions Examples Basics History Extra
Item
Layers
Layers() as String
See also
CDevice (Layers)
Device (Layers)
Document (Layers)
User (Layers)
Length() as Long
LinkCache
LinkCache() as Object
Method for turning the Viewpointer caching on and off (only used to improve
performance in the case of View attributes).
LinkInfo
LinkInfo() as IComosDLinkInfo
LinkObject
LinkObject() as Object
Pointer for link attributes, under which attributes are searched for using the link
object if they are linked.
LinkObjectConnectString
LinkObjectConnectString() as String
LValue
LValue() as String
Linked Value. Intended for dynamically-linked attributes and normally returns the
same value as Value.
If the attribute is linked to another attribute, LValue returns the value (Value)
of the linked attribute, in contrast to Value. In the case of an existing link, the
linked value is returned if the Value of the attribute is empty or the option
"always choose linked value" is activated at the attribute. (In the latter case,
the attribute can have a Value and the linked value will be returned anyway.)
LXValue
MakeVisible
MakeVisible() as Boolean
Only relevant for attributes with the "not visible" edit mode. These are read-only.
If you have the corresponding rights, this method enables you to make an attribute
visible again (edit mode "normal").
MappingTable
MappingTable() as Object
MaxLinkedXValueCount() as Long
Maximum number of XValue-Array entries for the relevant attribute, and attributes
linked to it.
MaxStaticLinkedXValueCount
MaxStaticLinkedXValueCount() as Long
The maximum number of XValues for which static links return values.
NestedName
NestedName() as String
The function returns its own name and the names of all superordinate objects of its
own class in the object structure, iteratively ascending.
OldIsRange() as Long
OwnControlProperties
OwnControlProperties() as String
The object's own layout information for display on the "Attributes" tab.
OwnControlType
OwnControlType() as String
Object's own type of control, which is used to link attributes on the software
interface. ProgID of the control. For example: ComosSUIList.SUIList for lists
attribute Control.
OwnCSpecification
OwnCSpecification() as IComosDSpecification
OwnD3Mode
OwnD3Mode() as Long
The object's own property that determines whether the attribute is 3D-relevant.
Valid values: See also Chapter SpecD3Mode.
OwnDescription
OwnDescription() as String
OwnDeviceStatus
OwnDeviceStatus() as Long
Object's own DeviceStatus. See also Chapter DeviceStatus.
OwnDeviceStatusValue
OwnDeviceStatusValue() as Long
OwnFormat
OwnFormat() as String
OwnFreePropertyGroupName
string OwnFreePropertyGroupName
OwnFreePropertyName
string OwnFreePropertyName
OwnHelpTextCount
OwnHelpTextCount() as Long
OwnInheritance
OwnInheritance() as Long
The object’s own mode for editing behavior. Valid parameters: See also Chapter
SpecInheritance.
In Section Instructions Examples Basics History Extra
OwnIsLockable
OwnIsLockable() as Long
Property of type long. Same as IsLockable but involves the own value at the current
specification. See also chapter IsLockable. In addition to the values described
there, the following value is accepted:
OwnLayers
OwnLayers() as String
The object’s own working areas permit rights administration at the object level.
OwnLength
OwnLength() as Long
OwnLinkInfo
OwnLinkInfo() as IComosDLinkInfo
OwnLinkObject
OwnLinkObject() as Object
Object's own pointers for link attributes, under which attributes are searched for
using the link object if they are linked.
OwnPrecision
Property to define the number of decimal places to which numbered values should be
formatted for the purpose of outputting the attribute value. If a value is set
here, it has priority over over the setting made on a unit which may be assigned
(and also over other potential inheritance sources, e.g. a related base attribute
or a catalog attribute. OwnFormattingDigits
Example/Syntax
OwnFormattingDigits([in/out, retval] long* formattingDigits)
OwnProductRequest
OwnProductRequest() as Long
The object’s own setting for a product request combination. Here the operator that
is used for comparison of the request data with the product data is managed.
OwnRangeCheckMode
Property for determining whether the values entered should be checked in the case
of Range attributes. If the Property is set to RangeCheckMode_NoChecking
(constant), then no check is performed. If RangeCheckMode_FullCheck (constant), a
check is performed on min and max attributes to determine that the min attributes
are lower than the max attributes. For Min/Value/Max attributes, another check is
performed to determine that the Value is within the specified limits.
OwnRangeType
OwnRangeType() as Long
OwnScript
OwnScript() as String
The object's own script. Script functions can be called both by COMOS as well as
via the software interface.
OwnSection
OwnSection() as String
OwnSpecifications
OwnSpecifications() as IComosDOwnCollection
OwnStandardTable
OwnStandardTable() as IComosDStandardTable
OwnTabIndex
OwnTabIndex() as Long
OwnType
OwnType() as String
The object's own attribute type. Valid constants: See also Chapter
SpecificationType.
In Section Instructions Examples Basics History Extra
OwnUnit
OwnUnit() as String
The object’s own unit. Name of the PhysUnit or PhysUnitGroup; the default unit is
used in the case of PhysUnitGroup.
OwnValue
OwnValue() as String
The object's own value of the attribute. For UseCases = True, the value depends on
the case. Language-dependent for text specifications.
PhysUnitLabel
PhysUnitLabel() as String
See OwnPrecision; in this case, the inheritance is also evaluated if no own value
is defined in OwnPrecision.
ProductRequest
ProductRequest() as Long
The object’s own setting for a product request combination. Here the operator that
is used for comparison of the request data with the product data is managed.
ProductUnit
ProductUnit() as String
For product request combination attributes. This gets the unit of the product
specification (i.e., the base specification).
Used for attributes for which the "Product data, request" property is set on the
"Link" tab. Returns the Value of the product attribute (i.e. the base attribute).
If the owner of the attribute is a CDevice and real device, then the product data
is displayed and edited in the report at Value, XVal(0), XVal(1) instead of
XVal(2), XVal(3), XVal(4).
In other words, mapping is carried out between the saved Values in the base object
tree and on the engineering side.
Base data
(0): Min
(1): Max
Engineering data
XValue(2) = Empty when Device is created, something is stored here following local
entry
XValue(3) = Min
XValue(4) = Max
Example ProductValue(i)
RangeCheckMode
Controls whether the Value is compared with min/max. A comparison with min or max
is not possible.
RangeType
RangeType() as Long
RealStandardTable
RealStandardTable() as IComosDStandardTable
Original OwnStandardTable pointer (i.e. not the one created by means of project-
specific overlay).
In Section Instructions Examples Basics History Extra
RefreshUnit
RefreshUnit()
Script
Script() as String
Script. Script functions can be called both by COMOS as well as via the software
interface.
Section
Section() as String
You can use the parameter accept to control whether the value of the specified
XValues should be accepted or not accepted.
SetHelpText
Sets the help text specified with Parameter1 to the new value (Parameter2) in the
language specified with Parameter3.
SetInternationalValue
Sets the Value for the language specified with Parameter1 to the value specified
with Parameter2.
In Section Instructions Examples Basics History Extra
SetInternationalXValue
Sets the entry specified by XValueIndex in the language selected with LanguageIndex
to the value specified by Val2.
SetMandatoryTab
Sets a Flag which identifies a tab as mandatory component during check in.
The mandatory tab also has a second tab called ViewMandatoryTab. This second tab is
read-only and is set with the function SetViewMandatoryTab and queried with
IsViewMandatoryTab.
Sets the object's own Value in the language specified by Parameter1 to the value
specified by Parameter2.
SetOwnInternationalXValue
Sets the object's own entry specified by XValueIndex in the language selected with
LanguageIndex to the value specified by Val2 .
SetOwnScriptBlock
Sets the object's own script block specified by Val1 to the value specified by
Val2. See also Chapter SetScriptBlock.
SetScriptBlock
SetScriptBlock(Val1 as Long, Val2 as String)
Sets the script block specified by Val1 to the value specified by Val2. See also
Chapter ScriptBlock.
SetSIXValue
Assigns a new value to the XValue identified with Index. See also Chapter SIValue.
SetUnitWithoutValueConversion
SetUnitWithoutValueConversion(Val as String)
Sets the unit of the attribute. No unit conversion is conducted. Differs from the
process of setting the Property Unit (see Specification.Unit), during which
conversion is carried out.
SetViewMandatoryTab
SetViewMandatoryTab ( ByVal IsViewMandatoryTab as Long )
Parameter IsViewMandatoryTab
Sets the Flag that is used to declare a tab as read-only copy of a mandatory tab.
This functionality is part of PQM. The SetMandatoryTab method is used in COMOS 10.1
in connection with the database type iDB to declare a tab as a mandatory tab.
The mandatory tab has a copy called ViewMandatoryTab. This copy is read-only and is
set with the function SetViewMandatoryTab and queried with IsViewMandatoryTab.
SetWorkflowReference
2: The inherited status is valid. The status of the owner determines whether or not
the attribute is part of a workflow.
Sets the Flag which specifies that an attribute is part of Workflows. Attributes
with this labeling are monitored by COMOS.
SetXValue
SIValue
SIValue() as Double
Returns the LValue of the attribute as Double and allows it to write a Double to
the Value of the attribute. This makes it very easy to take attribute values into
account.
This process does not pose any problems with group characters and delimiters or
language-specific conversion functions.
Example
Specifications
Specifications() as IComosDCollection
StandardTable
StandardTable() as IComosDStandardTable
StandardTableConnectString
StandardTableConnectString() as String
StandardValue
StandardValue() as IComosDStandardValue
Returns the StandardValue object which is found on the basis of the Value from the
standard table.
StandardValueDescription
StandardValueDescription() as String
Checks the value of the attribute against the values of the set standard table. If
the values match, the Description of the standard table is returned; in the case of
numeric specifications, the number of decimal places of the PhysUnit is evaluated.
StandardXValueDescription
StaticLinkDisplayValue
StaticLinkDisplayValue() as String
StaticLinkDisplayXValue
StaticLinkValue
StaticLinkValue() as String
StaticLinkXValue
TabIndex
TabIndex() as Long
Property for the tab index of the attribute within the COMOS properties.
Type
Type() as String
Unit
Unit() as String
Unit. Name of the PhysUnit or PhysUnitGroup; the default unit is used in the case
of PhysUnitGroup.
UseCases() as Boolean
UseCasesInherited
UseCasesInherited() as Boolean
Value
Value() as String
Value of the attribute. For UseCases = True, the value depends on the case.
Language-dependent for text specifications.
ValueBlocked
ValueBlocked() as Boolean
View
View() as Boolean
ViewInherited
ViewInherited() as Boolean
XValueArray
XValueArray() as String
XValueByCase
Returns the XValue specified by Parameter2 for the case specified by Parameter1.
IComosDSpecificationSet
CObject
CObjectConnectString
CSpecificationSet
CSpecificationSetConnectString
OwnSpecifications
Specifications
IComosDSpecificationSet
COMOS data record object.
CObject
CObject() as IComosDCDevice
CObjectConnectString
CObjectConnectString() as String
CSpecificationSet
CSpecificationSetConnectString
CSpecificationSetConnectString() as String
OwnSpecifications
OwnSpecifications() as IComosDOwnCollection
Specifications
Specifications() as IComosDCollection
IComosDStandardTable
AllBackPointerSpecifications
BackPointerSpecifications
DefaultValue
ItemByValue
ItemByXValue
StandardTables
StandardValues
Type
IComosDStandardTable
AllBackPointerSpecifications
AllBackPointerSpecifications() as IComosDCollection
BackPointerSpecifications
BackPointerSpecifications() as IComosDCollection
Returns the set of Specification objects that have a StandardTable pointer to the
current object; database-supported. See also Chapter BackPointerDocuments.
DefaultValue
DefaultValue() as IComosDStandardValue
Default value.
ItemByValue
ItemByValue ( ByVal searchVal as String ) as IComosDStandardValue
Searches all StandardValue of the current StandardTable. Return value is the first
StandardValue object with the specified string.
ItemByXValue
Searches all StandardValue of the current StandardTable. Return value is the first
StandardValue object with the specified string.
StandardTables
StandardTables() as IComosDOwnCollection
StandardValues
StandardValues() as IComosDOwnCollection
Type
Type() as long
DevSymbols
Filename
GetXValue
HelpTextCount
Script
SetHelpText
SetXValue
Value
XValueCount
IComosDStandardValue
DevSymbols
DevSymbols() as IComosDOwnCollection
Filename
Filename() as String
GetXValue
HelpTextCount
Script
Script() as String
SetHelpText
SetXValue
Sets the XValue specified by the index to the new value parameterized with newVal.
Value() as String
XValueCount
XValueCount() as Long
IComosDTimestamp
Login
Site
TimeZone
User
COMOS timestamp object. The UIDs of the timestamp objects can be used for time
relation purposes.
Login
Login() as String
Date of the timestamp. By default, one timestamp per user and per project/working
layer is managed; exceptions occur during revisions. Information is output
according to the country setting of the system on which COMOS is running.
Site
Site() as String
Returns the location at which this timestamp object had been created. See Site of
the IComosDWorkset.
TimeZone
TimeZone() as Long
Returns the difference from UTC time at which this timestamp object had been
created (in minutes). See TimeZone of the IComosDWorkset.
User
User() as IComosDUser
IComosDUnit
BackPointerDevices
BackPointerDocuments
CObject
CObjectConnectString
Devices
Documents
EnObs
GetObjectByLevel
OwnSpecifications
Positions
Specifications
SpecificationSets
Units
IComosDUnit
BackPointerDevices
BackPointerDevices() as IComosDOwnCollection
BackPointerDocuments
BackPointerDocuments() as IComosDOwnCollection
CObject
CObject() as IComosDCDevice
CObjectConnectString
CObjectConnectString() as String
Devices
Devices() as IComosDOwnCollection
Documents
Documents() as IComosDOwnCollection
EnObs
Filters the elements collection for objects of the classes specified in the
parameter. Valid parameter values: See also chapter DeviceClass.
Examples
GetObjectByLevel
GetObjectByLevel(Val as Long) as IComosDUnit
OwnSpecifications
OwnSpecifications() as IComosDOwnCollection
Positions
Positions() as IComosDCollection
Specifications
Specifications() as IComosDCollection
SpecificationSets
SpecificationSets() as IComosDOwnCollection
Units
Units() as IComosDOwnCollection
IComosDUser
Active
ActualLayers
ActualRO_Layers
Address
AdminDisabled
AdminRights
AllBackPointerRights
AllBackPointerTimestamps
BackPointerRights
BackPointerTimestamps
CanConsolidateDB
CanUpdateDB
CDeviceAdminDisabled
ExtendedRights
GetBackPointerCLinksWithReference
GetNumber
GetRemark
Layers
LayersForSession
LoginWithLocalAccount
NumberCount
OwnExtendedRights
OwnLabel
RemarkCount
RO_Layers
SetNumber
SetRemark
UserGroups
In Section Instructions Examples Basics History Extra
IComosDUser
Active
Returns TRUE or FALSE. Only active users can log in to the system. Inactive users
do not have any rights, no matter how the rights are set at other times.
ActualLayers
ActualLayers() as String
The working areas that are valid for this user. These may be both the working areas
of the user and the working areas of the user groups that the user belongs to (see
Usergroup.Layers).
ActualRO_Layers() as String
See ActualLayers. In this case, only for the RO_Layers (see also
Usergroup.RO_Layers).
Address
Address() as String
AdminDisabled
AdminDisabled() as Boolean
Boolean value that determines whether the administrator rights of the user
(relevant user object) are temporarily blocked.
AdminRights
AdminRights() as Long
AllBackPointerRights
AllBackPointerRights() as IComosDCollection
Collects all objects of class Right from all those projects in a Collection whose
user pointer refers to the current object.
This function may, depending on the size of the database, take a great deal of time
and should be used with caution.
AllBackPointerTimestamps
Returns a Collection with IComosDTimestamp objects that reference the current user.
With this method all projects in the database are viewed.
BackPointerRights
BackPointerRights() as IComosDCollection
Collects all objects of class Right from the current project in a Collection whose
user pointer refers to the current object.
This function may, depending on the size of the database, take a great deal of time
and should be used with caution.
BackPointerTimestamps
Works in exactly the same way as AllBackPointerTimestamps, but in this case the
Timestamps are returned from the current project (CurrentProject at the Workset).
CanConsolidateDB
CanConsolidateDB ( ) as Boolean
The method examines if the user has the right to trigger a database consolidation.
CanUpdateDB
CanUpdateDB ( ) as Boolean
The method examines if the user has the right to trigger a database update.
CDeviceAdminDisabled
CDeviceAdminDisabled() as Boolean
Toggles the base data function right for this user. Of course, you can only use
this function to disable it and thus switch over to the mode of a normal user.
EMail() as String
ExtendedRights
ExtendedRights() as Long
GetBackPointerCLinksWithReference
IComosDOwnCollection GetBackPointerCLinksWithReference()
Returns a Collection with all CLink objects which point to the current user (user
group membership)
Return value: Collection with CLink objects which have set the current user as a
reference.
GetNumber
Fetches the number specified by the Index as a String from the telephone numbers
array.
GetRemark
GetRemark(Index As Long) as String
Fetches the remark specified by the Index as a String from the remarks array.
Layers
Layers() as String
See also
CDevice (Layers)
Device (Layers)
Document (Layers)
Specification (Layers)
LayersForSession
LayersForSession() as String
Layers of the current session (not saved, must be a subset of the Layers.)
In Section Instructions Examples Basics History Extra
LoginWithLocalAccount
bool LoginWithLocalAccount
Property of the Boolean type, which determines whether the current user (this) may
also log in with a local Windows account (true), or whether only domain accounts
are permitted (false).
NumberCount
NumberCount() as Long
OwnExtendedRights
OwnExtendedRights() as Long
OwnLabel
OwnLabel() as String
RemarkCount
RemarkCount() as Long
RO_Layers
RO_Layers() as String
Read-only Layer of the user object. The option to edit specific objects under COMOS
or to block editing is handled via Layer. The object Layer (currently at CDevice,
Connector, Device, Specification) must match those set for the user in order to
allow editing.
In Section Instructions Examples Basics History Extra
SetNumber
Inserts a new number in String form at the position specified by the Index in the
telephone numbers array.
SetRemark
Inserts a new remark in String form at the position specified by the Index in the
remarks array.
UserGroups
UserGroups() as IComosDCollection
AddUser
AllBackPointerRights
AllUsers
BackPointerRights
ExtendedRights
Layers
RemoveUser
RO_Layers
IComosDUserGroup
AddUser
AddUser(Val as Object)
AllBackPointerRights
AllBackPointerRights() as IComosDCollection
Collects all objects of class Right from all those projects in a Collection whose
user pointer refers to the current object.
This function may, depending on the size of the database, take a great deal of time
and should be used with caution.
AllUsers
AllUsers() as IComosDCollection
BackPointerRights
BackPointerRights() as IComosDCollection
Collects, from the current project, objects of class Right whose user
ExtendedRights
ExtendedRights() as Long
Extended rights. These rights are not object-dependent and are inherited by members
of the group. Currently available extended right: Project management.
Layers
Layers() as String
Working areas for this group. All users in the group are given these working areas
(see User.AcualLayers).
RemoveUser
RemoveUser(Val as Object)
RO_Layers
RO_Layers() as String
Only read-only working areas for this group. All users in the group are given these
read-only working areas (see User.ActualRO_Layers).
IComosDWorkingOverlay
DBStatus
ExportOverlay
GetDocumentDirectory
GetReleasePreventingDocuments
GetReleasePreventingObjects
ID
IsConsolidationLayer
ObjectOverlays
Put_ConnectedBaseWorkingOverlay
RecalculateConsolidationLayerHierarchy
RecalculateWorkingLayerHierarchy
ReleaseOverlay
ReleaseOverlayEx
WorkingOverlays
AllObjects
DBStatus
DBStatus() as Long
0:
The status is set to 0 ((in progress)) during a layer operation (e.g. release or
import). The status stays at 0 if an import operation is canceled. The status is
set to 3 ((release failed)) if a release operation is canceled.
1:
2:
Layer locked.
3:
ExportOverlay
Exports a working layer into a new or existing Access database that was created
with ExportOverlay. In addition, all the documents of the layer are exported into a
separate directory (the directory name corresponds to the database).
GetDocumentDirectory
GetDocumentDirectory() as String
Returns the name of the document directory, including the layer directory. Relates
to the physical directories on the disk.
GetReleasePreventingDocuments
GetReleasePreventingDocuments(Options as Long) as IComosDCollection
This functions detects all documents that are preventing a release. The parameter
determines which checks are to be made:
Options = 1
A check is performed for documents with project revisions but with missing unit
revisions.
Options = 2
GetReleasePreventingObjects
GetReleasePreventingObjects Checks whether there are any objects that may prevent
the release of a working layer. This function replaces
GetReleasePreventingDocuments and includes its full scope of functions.
Options:
Bit field specifying the conditions that are checked. One of the following
constants, or a combination of these constants (use the ‘Or’ operator), can be
used:
ReleaseCheckPlantRevisions (= 1)
ReleaseCheckOpenRevisions (= 2)
Checks for open revisions.
ReleaseCheckDuplicateName (= 8)
Checks the working layer for duplicate names, which may come about if you are
working with parallel working layers, for example.
ReleaseCheckWithCreated (= 4)
ID
ID() as Long
Unique label.
IsConsolidationLayer
IsConsolidationLayer ( ) as Boolean
ObjectOverlays
Returns the directly superordinate working layer in case the object is located in
it.
Returns all working layers which are superordinate to the working layer and in
which the object is located.
Input:
A working layer (in which the reference object is located) referenced by the
information ("Reference working layer")
The function returns the exact working layers for the reference object and the
reference working layer:
The reference object is located in the working layer (it is checked in) and
the newly found reference object is the direct successor to the reference object in
the reference working layer. In other words, the reference object is not checked in
again between these.
Example
Assumption:
Object is checked into Layer1, not checked into Layer2 and checked in again in
Layer3 and Layer4.
If you look for the successor for an object in layer1 using Parameter 3, then
Layer3 is returned as response. Layer4 is not returned.
Application example:
Returns all working layers of an object that are subordinate to the working layer
and in which the object is contained.
Put_ConnectedBaseWorkingOverlay
Put_ConnectedBaseWorkingOverlay(/*[in]*/IComosDWorkingOverlay *newVal);
As for the project but for the planning working layers. If you log in to one of the
working layers, then the linked working layer is set to the base project and all
data is obtained from there. E.g. for the evaluation of new base data.
In Section Instructions Examples Basics History Extra
RecalculateConsolidationLayerHierarchy
RecalculateConsolidationLayerHierarchy ( ) as Boolean
RecalculateWorkingLayerHierarchy
Recalculates the working layer display for a working layer. Is only needed if
errors are present or assumed.
ReleaseOverlay
Release. Transfers the data to the next level up, i.e. to the next WorkingOverlay
or the released area, depending on whether the owner of the WorkingOverlay is also
a WorkingOverlay or is a project.
In Section Instructions Examples Basics History Extra
ReleaseOverlayEx
WorkingOverlays
WorkingOverlays() as IComosDOwnCollection
IPLTBinObjectArchive
Load
LoadDouble
LoadLong
LoadPointer
LoadString
Save
SaveDouble
SaveLong
SavePointer
SaveString
Size
Version
IPLTBinObjectArchive
COMOS archive object for managing XObjects whose OnLoad and OnSave routines have an
IPLTBinObjectArchive as a parameter. This allows all standard data types to be
saved. Save- and Load-methods exist once in each case for Variant and the other
data types; it is faster to use special data types. The archiving is conducted in
the order of the entry, i.e., FIFO (first in first out).
Load
Load() as Variant
LoadDouble() as Double
LoadLong
LoadLong() as Long
LoadPointer
LoadPointer() as Object
LoadString
LoadString() as String
Save
SaveDouble
SaveLong
SavePointer
SaveString
Size
Size() as Long
Version
Version() as Long
IPLTPickList
PickListEntries
IPLTPickList
COMOS administration object for PickLists. These objects are located hierarchically
underneath the project. They are not taken into consideration during normal Save or
Undo operations. They are saved with Project.SavePickList. A maximum of 10 entries
are managed within the picklist in the order that they were entered, so that the
newest entry is at the top of the list. If there are more than 10 entries, all
entries except the newest 10 are dropped from the list.
PickListEntrys()
IPLTPickListEntrys
CreateEntry
IPLTPickListEntrys
CreateEntry
CreateEntry(Name as String, Description as String) as IPLTPickListEntry
Creates a new object in the PickListEntrys Collection with the specified name and
Description and inserts it at the beginning of the Collection.
IPLTVarstorage
Exist
ItemExist
IPLTVarstorage
COMOS administration object for storing variables. See also Chapter Globals.
Exist
Exist(Name as String) as Long
ItemExist
IPLTXValueArrayEntry
DisplayValue
GetRS
GetRSByCase
Index
Specification
StandardValueDescription
StaticLinkDisplayValue
StaticLinkValue
SystemTypeName
Value
ValueByCase
IPLTXValueArrayEntry
COMOS container object that contains the entry of a list cell. Since the cells of
an attribute list are not objects, for example, but it is easier and quicker to
work with objects at numerous points in the program, this container object was
designed so that the cell contents would be available packaged in the same way as
an object during runtime.
DisplayValue
DisplayValue() as String
Corresponds to Spec.GetDisplayXValue(Index).
GetRS
GetRS() as Object
Corresponds to Spec.GetXValueRS(Index).
In Section Instructions Examples Basics History Extra
GetRSByCase
Index
Index() as Long
Cells Index.
Specification
Specification() as Object
Corresponding Specification.
StandardValueDescription() as String
Corresponds to Spec.StandardXValueDescription(Index).
StaticLinkDisplayValue
StaticLinkDisplayValue() as String
Corresponds to Spec.StaticLinkDisplayXValue(Index).
StaticLinkValue
StaticLinkValue() as String
Corresponds to Spec.StaticLinkXValue(Index).
SystemTypeName
SystemTypeName() as String
Returns the class of the relevant object. Possible values: See also Chapter
SystemType.
Value
Value() as String
Corresponds to Spec.GetXValue(Index).
ValueByCase
Hierarchy Objects
This chapter contains the following information:IComosDCollection
IComosDOwnCollection
IComosDWorkset
IComosDCollection
Add
Append
CollectionIsSorted
Count
DeviceNextNameWithClass
FastNextName
Insert
Item
ItemExist
ItemIndex
NextName
NextNameWithClass
Remove
SwapItems
IComosDCollection
COMOS collection object. The Collection class was derived from the IPLT-Object
class before the switchover to the new interfaces. When the object structures were
adapted during the switch to dual interfaces (something which can be identified
from the new IComosD prefix), the Collection became a separate class.
The object management system under COMOS uses pointers to navigate to objects that
are exclusively stored in different Collections. A structural distinction is made
in COMOS between Collections, OwnCollections and OwnerCollections.
Collection:
OwnCollection:
Add
Add(Val as Object)
Inserts the relevant object (sorted) in the Collection. Each object can only be in
one OwnerCollection.
Append
Append(Val as Object)
Inserts the relevant object at the end of the Collection. Each object can only be
in one OwnerCollection
CollectionIsSorted
CollectionIsSorted() as Boolean
Count
Count() as Long
DeviceNextNameWithClass
DeviceNextNameWithClass(Mask as String, class_st as String, device as Object) as
String
For a Device, returns the next valid name in the form specified by the parameter
mask (class-related).
FastNextName
For generating multiple NextNames. The entire Collection is not tested each time
(it is better to use the NextName method).
Insert
Insert(Val as Object)
Item
Item(Val as Variant) as Object
Either returns i-tes Item of the Collection or Item with the specified name.
ItemExist
ItemIndex
NextName
Returns the next free name in the Collection with the specified form.
Example
NextNameWithClass
Remove
Remove cuts objects from the Collection. Objects that have been cut are not
allocated provided they have not been added or edited elsewhere; i.e. a paste
operation must be carried out after the Remove operation to avoid any errors or
problems.
SwapItems
SwapItems(Val1 as Long, Val2 as Long)
Example: SwapItems(3,5) results in Item (3) and Item(5) swapping places. Caution:
This swap is only temporary, since a subsequent read operation from the DB produces
alphanumeric sorting of the entire Collection.
IComosDOwnCollection
IComosDOwnCollection: Function
IComosDOwnCollection
CreateNew
CreateNewWithName
CreateNewWithNameAndCDevice
Deleted
OwnAndDeleted
AddWithoutProjectChange
CreateNew
CreateNew() as Object
Creates a new object in the Collection and appends this at the end of the
Collection. One of three options for creating a new COMOS object in the Collection.
CreateNewWithName
Creates a new object with the specified name and adds it to the Collection, sorted
by name. One of three options for creating a new COMOS object in the Collection.
Creates a new Device with the specified name and origin (CDevice)and adds it to the
Collection, sorted by name. One of three options for creating a new COMOS object in
the Collection.
Deleted
Deleted() as IComosDCollection
Returns all objects of the Collection that are marked as deleted in the database by
means of the GetSavedAndDeleted flag for the objects. It is only possible to make a
read access to these objects.
OwnAndDeleted
OwnAndDeleted() as IComosDCollection
IComosDWorkset
IComosDWorkset
AcceptCollision
ActivateSoftDeleteWatcher
ActivateTimestampWatcher
AdditionalProject
AddToChangedObjects
AddToCurrentUndoState
AddToErrorLog
BaseMemoryThreshold
BuildD3FromBinaryString
BuildXObjFromBinaryString
CacheEntriesCount
CanCreateConsolidationLayer
ChangedObjects
ChangedObjectsOverflow
CheckAll
CheckDatabaseCredentials
CheckDataBaseIndices
CheckDataBaseTables
CheckDBObjectName
CheckLayer
CheckTimestampUids
CheckVersion
ClearCache
ClearDBSyncName
Clipboard
ClipboardObject
CollectionCount
ComosVersion
CompareTimestamp
CompressCache
CompressDatabaseAndDBDirectory
CompressDatabaseAndDBDirectoryTimestamp
ConnectionStatus
ConnectWithComosSystem
ConvertAnsiToUnicode
ConvertPattern
ConvertUnicodeToAnsi
Copy
CopyFile
CopyFrom
CopyProject
CreateDatabase
CreateDeviceObject
CreateNewCurrentTimeStamp
CreateNewRollbackState
CreateNewUser
CreateObject
CreateObjectStructure
CrossProjectCopy
CurrentDatabaseVersion
CurrentDocumentVersion
CurrentRollbackState
CurrentUndoState
Custom
DatabaseOperationsOverlayMode
DBPriority
DBSyncName
DBVersionChange
DebugMode
DefaultFlag
DeleteDatabaseTables
DeleteErrorObjects
DeleteForCopyFrom
DevicesWithoutProjection
DisconnectFromComosSystem
DisposeAllModules
DocumentVersion
DragObject
ErrorText
Escape
ExecuteCopyFrom
ExportDatabase
ExportDatabaseWithDBSync
ExportDatabaseWithoutDeleted
ExportDB
ExtentedCopyRightForCurrentUser
FinishAOWM
FPXmlDBScheme
FTIndexUpdater
GetAllNumberRangeGenerators
GetAllProjects
GetAllUserGroups
GetAllUsers
GetBaseObjectCollection
GetCachedTempCollection
GetCallstack
GetChangeLogger
GetConsolidationUpdate
GetCopyManager
GetCTISession
GetCurrentProject
GetCurrentTimestamp
GetCurrentUpdate
GetCurrentUser
GetD3BinaryString
GetDateTimeFromUID
GetDBDirectory
GetDBInfo
GetDBName
GetDragOcx
GetExportManager
GetFileAttribute
GetFileProperties
GetFPAllowedColumnTypes
GetFPAllowedColumnTypesFor
GetFPsForGroup
GetFPGroups
GetGeneralCollection
GetMemoryUsage
GetNumeric
GetOldOwnerOfMovingObject
GetOverlayParameter
GetPerformanceValues
GetProjectionErrorText
GetProjectionMode
GetProjectionObject
GetResources
GetRootsOfTemplates
GetScanManager
GetScriptHelper
GetSearchManager
GetSourceObject
GetStatusManager
GetString
GetTempCollection
GetTimestampWatcherObject
GetUserValueForKey
GetUseScriptFunctions
GetUsersByState
GetWatchedRevisionOf
GetWatchedSoftDeleteFlag
GetWatchedTimestamp
GetWorkingOverlayFullFileName
GetXObjBinaryString
Globals
HasGlobalOverflowOccurred
HashTableSize
HideProgressBar
HistoryRemark
ImportFromDatabaseWithDBSync
ImportWorkingProjectFromOtherDB
Init
InitAOWM
InitChangedObjects
InitString
InitWithFullConnectionString
IsAllSaved
IsInitialized
IsInsertReferenceEnabled
IsMaxLoadedObjectsReached
IsNumericForCurrentLanguage
IsSolidBaseDb
IsTerminalServer
LastErrorNumber
LastErrorObject
LastErrorText
Lib
LicenseRuntimeCheck
LicenseServer
LicenseToken
LoadObject
LoadObjectByType
LockPermission
LogoCad
MaxLoadedObjects
MemoryDump
MessageBoxHandler
ModuleLicense
ModuleLicenseCheckedOut
NewComosUID
NotifyAboutChangedUIDs
ObjectCount
ObjectsWithoutProjection
PackageLicense
POptions
ReferencedObjectCount
ReferencedObjects
RefreshRights
ReleaseAllObjects
ReleaseChangedObjects
ReleaseObjects
ReleaseStaticCollections
RemoveFromChangedObjects
RemoveProcessInfo
RemoveProjections
ResetUsers
ResetUsersEx
RevisionCheck
RootDir
RunDatabaseMaintenance
SaveAll
Scan
ScriptErrorHandler
SendCVSMessagesWithOldStyle
SetCurrentProject
SetCurrentUser
SetCurrentUserWithAuthentication
SetDragObjectWithOcx
SetFileAttribute
SetOracleMemoFieldLength
SetOverflowForAllChangedObjects
SetProjection
SetProjectionWithMode
SetRunMode
SetTrLangDB
SetUseValidationService
SetWatchedTimestamp
ShutdownXObjs
SimpleCDeviceChange
SingleReleaseStaticCollections
Site
SMSInfo
SoftDeleteFilter
SoftDeleteMode
SpecEval
StartErrorLog
StartMode
StopErrorLog
StringCompare
SwitchToCurrentDBVersion
SystemRefCount
SystemType
SystemTypeName
Terminate
TimeBetween
TimeZone
TotalTimeMode
TransactionCount
TransferProjectMode
UndoAll
UndoStates
UnsavedObjectCount
UnsavedObjects
UpdateFullPath
UseAliasForLabelFunctions
Viewing
WriteNetLoginCredentials
XObj
IComosDWorkset
AcceptCollision
AcceptCollision(Val as Object) as Long
Removes a collision flag that was set at the object. The object then no longer has
the colored marking for collisions (default: dark magenta).
ActivateSoftDeleteWatcher
ActivateSoftDeleteWatcher(Val as Boolean)
The SoftDelete objects are not monitored; instead, the SoftDelete objects are taken
into consideration during the monitoring process. The monitoring is called
separately for each constituent part of the report (Subreport, Master Report).
ActivateTimestampWatcher
ActivateTimestampWatcher(Val as Boolean)
AdditionalProject
AdditionalProject() as IComosDProject
AddToChangedObjects
AddToChangedObjects(Val as Object)
AddToCurrentUndoState
AddToCurrentUndoState(Val as Object)
Adds the Val object to the current UndoState. Normally this is not necessary, since
this is done automatically in the event of a change. In a 3D environment, however,
it may be that 3D Properties are set directly without the COMOS object being
changed. In this case, one 3D object is stored per Device.
AddToErrorLog
AddToErrorLog(Object as Object, Description as String, Reason as Long) as Boolean
BaseMemoryThreshold
BaseMemoryThreshold ( ) as Long
This property controls the memory consumption as of which COMOS releases the
objects. 1 GB remains the lower limit. If you enter a value lower than 1 GB, the
lower limit 1 DB is used automatically.
BuildD3FromBinaryString
Creates a 3D object at the specified object, using the encrypted String that is
transferred. See also Chapter GetD3BinaryString.
In Section Instructions Examples Basics History Extra
BuildXObjFromBinaryString
Creates an XObject at the specified object, using the encrypted String that is
transferred. See also Chapter GetXObjBinaryString.
CacheEntriesCount
CacheEntriesCount() as Long
Integer number of Cache entries. Pointer to COMOS objects that are in the memory
are kept in the Cache.
CanCreateConsolidationLayer
ChangedObjects
Calling up the InitChangedObjects function returns an integer value (< 20) that
corresponds to a list number.
ChangedObjects receives the list number as a parameter. Now you can (usually) query
the ChangedObjects list on a timer-controlled basis to refresh specific data. The
actual ObjectCollectionItem consists of a pointer to a COMOS object and code. There
are four different reasons for acceptance into the ChangedObjects list:
If there are more than 250 objects in the ChangedObjects list, the Boolean value is
set to True and no further objects are accepted into the list. This function should
be used to generate an automatic refresh.
CheckAll
CheckAll() as Long
Checks the object structure for all objects in the memory. The objects can only be
stored if the structures are not defective. See also Chapter SaveAll.
CheckDatabaseCredentials
Checks to see if the passed access data match the access data in the access file.
Password to be checked
CheckDataBaseIndices
CheckDataBaseIndices()
Checks all DB indices. Any indices that are missing are created.
CheckDataBaseTables
CheckDataBaseTables()
Checks the schematic layout of the DB (table structure), and an incorrect schematic
layout is adjusted (the correct tables are created).
CheckDBObjectName
CheckDBObjectName ( ByVal inputString as String ) as String
Parameter inputString
CheckLayer
Checks the Layer (permitted working areas) of the current user against the
specified ones. The user working areas can be set by means of user administration.
CheckTimestampUids
CheckTimestampUids() as Long
Checks the timestamp objects with the aim of removing unused ones.
CheckVersion
CheckVersion() as Boolean
Checks the schematic layout of the relevant database against the details in
Comos.dll; if False is the result, the database has to be adapted. Schematic layout
means the internal structure of the database, in other words, the number,
designations and internal structure of the tables.
ClearCache
ClearCache()
Deletes all objects from the memory! The state is the same as the state following
reinitialization of the Workset; all old object variables are no longer valid;
CurrentUser and CurrentProject must be set again. In many cases it is better to use
the ReleaseObjects method. See also Chapter ReleaseObjects.
ClearDBSyncName
ClearDBSyncName(Val as String)
Clipboard() as IComosDClipboard
Returns the IComosDClipboard object for COMOS Clipboard handling. See also Chapter
IComosDClipboard.
ClipboardObject
ClipboardObject() as Object
COMOS Clipboard for cut, paste and copy operations, etc. The selected objects are
temporarily stored on the COMOS clipboard. You can select multiple items at once
using TempCollections; Workset.GetCachedTempCollection must be used for this
purpose! See also Chapter GetCachedTempCollection.
CollectionCount
CollectionCount() as Long
ComosVersion
ComosVersion() as Long
Continuous version number (not the same as the COMOS version number).
CompareTimestamp
CompareTimestamp() as IComosDTimestamp
CompressCache
CompressCache();
CompressDatabaseAndDBDirectory
CompressDatabaseAndDBDirectory()
Compresses the database and the database directory by deleting all data records and
document files with DeleteFlag = True.
CompressDatabaseAndDBDirectoryTimestamp
Parameter oleDate: Reference time for deleted items to be removed. Objects that are
newer than this point in time will not be removed.
ConnectionStatus
ConnectionStatus() as String
ConnectWithComosSystem
ConnectWithComosSystem() as IComosDCollection
Connects all objects with the new system project after changing the system project.
DisconnectFromComosSystem must be called beforehand! The return value is a
Collection that contains all objects that cannot be allocated properly.
ConvertAnsiToUnicode
Converts a String of type BSTR (standard format for COM calls) in ANSI format
inplace into Unicode format. Each character in the value range 128 to 255 is
converted to its counterpart in the Unicode character set. The source string code
page required for this conversion process must be transferred in parameter charset
(e.g. 204 for Cyrillic).
Parameter charset: defines which language the source string is in. The number
indicates the appropriate code page (e.g. 178 for Arabic, 204 for Cyrillic, etc.)
ConvertPattern
This method converts the placeholders of search queries (*, ?) so that the used
database can understand them.
ConvertUnicodeToAnsi
Converts a String of type BSTR (standard format for COM calls) in Unicode format
inplace into an ANSI String with the specified code page. Unicode characters for
which there is no equivalent in the specified code page are changed to a question
mark '?'.
CopyFile
sourcefile:
targetfile:
failifexists:
FALSE:
TRUE:
CopyFrom
Used when copying structures. This method creates the objects in the CopyTree
CopyProject
Copies the relevant project into the specified database. The login syntax
corresponds to that of the Workset.Init. Connected projects (base project, system
project) are disconnected before exporting and then reconnected accordingly in the
other database.
CreateDatabase
CreateDatabase(Val as String) as Boolean
CreateDeviceObject
Parameter:
Owner:
Type IComosBaseObject; the object underneath which the new Device is created.
CDevice:
Type IComosDCDevice; base object for the Device to be created (may also be
NULL/Nothing)
Name:
DevClass:
Type String; Device class for the new Device; optional parameter.
Unit:
Type IComosBaseObject; unit pointer for the new object; optional parameter.
Location:
Type IComosBaseObject; location pointer for the new object, optional parameter.
Return value:
CreateNewCurrentTimeStamp
CreateNewCurrentTimeStamp()
Creates a current timestamp that is required for revision editing. Only one
timestamp per User, day and project is created internally within the system; if
additional ones are required to make distinctions within a day, they must be
created with CreateNewCurrentTimeStamp.
CreateNewRollbackState
CreateNewRollbackState() as IComosDRollbackState
Creates a new User object with the specified name. This method is not executed by
means of the permissions administration of the Collection!
Enables the creation of a new user without having a current project set.
CreateObject
CreateObjectStructure
This method allows you to copy a certain set of objects into another project
(cross-project copying). An instance of type IComosDCopyManager is used to specify
how the copy process is to be performed (see documentation for this class). This
method replaces the old method (Copy). In contrast to this old method, the Property
DestinationObject is also evaluated, meaning that the @Tpl and @TplM pointers can
be handled correctly. It should be noted, however, that the copied objects are not
inserted below the target. That is still the job of the calling location.
CurrentDatabaseVersion
CurrentDatabaseVersion() as Long
Returns the current COMOS version of the database. The DBVersionChange method
returns information on whether the version of the software is identical to it.
CurrentDocumentVersion
CurrentDocumentVersion() as Long
CurrentRollbackState
CurrentRollbackState() as IComosDRollbackState
CurrentUndoState
CurrentUndoState() as IComosDUndoState
Current UndoState (all objects that change are added to this UndoState).
Custom
Custom() as Object
DatabaseOperationsOverlayMode
DatabaseOperationsOverlayMode() as Long
When carrying out all bulk processing operations on the database, this global
switch can be set to determine whether these operations relate solely to the
released area (DatabaseOperationsOverlayModeApprovedArea (0)) or to the released
area including all working layers (DatabaseOperationsOverlayModeAllOverlays (1 =
standard)).
DBPriority
DBPriority() as Long
The priority that can be set for database operations. Initially only for MS SQL-
Server. Valid values: See also Chapter DBPriority_.
DBSyncName
DBSyncName() as String
DBVersionChange
DBVersionChange() as Boolean
Boolean = True means that the database version does not match the version of
Comos.dll. The database can now be converted (see SwitchToCurrentDBVersion), but
clients with an older version of COMOS can no longer work with this database.
DebugMode
DebugMode() as Boolean
If DebugMode = True, then all COMOS exceptions are displayed in message boxes. This
is an application development function for preventing errors from being missed.
DisableChangedObjects ( ) as Boolean
Objects that are changed are added to all logged-in ChangeObjectsCollections (see
InitChangedObjects, ChangedObjects). This is necessary to allow all interfaces with
Updatewatcher to be able to react to object changes. The adding of changed objects
is suppressed with this method. This is useful for import operations in which a
complete refresh can be done at the end, and periodic refreshing of the interfaces
is not required (switching the latter off results in improved performance).
DefaultFlag
DefaultFlag() as String
For internal use. Default setting for the ADO connection (MS SQL server, Oracle).
DeleteDatabaseTables
DeleteDatabaseTables()
DeleteErrorObjects
Returns all objects that were provided with deletion prevention or a warning when
carrying out a deletion. There are IcomosDObjectCollectionItems (see there) in the
Collection that is returned.
Administrators only get warning entries, while other users get warning and deletion
prevention entries.
Context: specifies the document from which it may be possible to call the delete
command.
DeleteForCopyFrom
DevicesWithoutProjection
DevicesWithoutProjection() as IComosDCollection
Used with Copy Structure and returns all Devices that do not own a projection.
DisconnectFromComosSystem
DisConnectFromComosSystem() as Boolean
Required for changing the system project. The connections to the system project are
stored and separated as symbolic names. They are restored with
ConnectWithComosSystem after a system project change.
In Section Instructions Examples Basics History Extra
DisposeAllModules
DisposeAllModules ( )
DocumentVersion
DocumentVersion() as Long
The DocumentVersion set in the database (the documents are written in this
version).
DragObject
DragObject() as Object
ErrorText
Escape
This method creates an Escape sequence for an SQL statement that is sent to the
COMOS database. It makes it possible to use special characters in the string of the
SQL statement.
ExecuteCopyFrom
ExecuteCopyFrom() as Object
Used when copying structures, accepts the objects of the CopyTree into the current
project.
ExportDatabase
Creates an exact copy of the project data in the specified database. All projects
are copied if the project parameter is Null. The login syntax corresponds to that
of the Workset.Init.
ExportDatabaseWithDBSync
Behaves in the same way as ExportDatabase, but in this case the source and the
target are also marked to allow subsequent synchronization by means of
ImportDatabaseWithDBSync. All projects are exported if the project parameter is
Null, the login process is the same as for Workset.Init, and Syncname is the name
of the target database.
ExportDatabaseWithoutDeleted
ExportDatabaseWithoutDeleted(Val1 as Object, Val2 as String, Val3 as String)
Behaves in the same way as ExportDatabase, except in this case no entries with
DeleteFlag = True are considered.
ExportDB
ExportDB(Val as Object)
ExtentedCopyRightForCurrentUser
Tests whether the CurrentUser has all rights in the specified project (Read, Write,
Delete, Create).
FinishAOWM
FinishAOWM ( ByVal answer as String )
Parameter answer
FPXmlDBScheme
string FPXmlDBSchema
Property of type string: Contains the database scheme of the FreeProperty tables as
XML structure.
FTIndexUpdater
Starts FTIndexUpdater.exe with the appropriate command line. Returns the process ID
of the started process.
GetAllNumberRangeGenerators
IComosDOwnCollection GetAllNumberRangeGenerators()
GetAllProjects
GetAllProjects() as IComosDOwnCollection
Returns all projects defined in the database. Start function into the object
hierarchy.
GetAllUserGroups
GetAllUserGroups() as IComosDOwnCollection
GetAllUsers() as IComosDOwnCollection
GetBaseObjectCollection
GetBaseObjectCollection() as IComosBaseObjectCollection
GetCachedTempCollection
GetCachedTempCollection() as IComosDCollection
Returns a TempCollection that must be used for multiple selection with the
Clipboard.
GetCallstack
string GetCallstack()
Returns a String which reflects the current CallStack. For this purpose, COMOS
logging must take place in DEBUG (/DG:D) mode or internal debug mode (environment
variable ComosDebug) must be enabled; otherwise, only an empty string will be
returned.
Return value: Multi-line String with as much information about all current
Stackframes as possible.
GetChangeLogger
GetConsolidationUpdate
The zip file is unzipped and the contents are available at the IComosDUpdate
object.
As long as the Import method is not triggered at the IComosDUpdate object, you can
select a different zip file. SetArchivePath is called at the IComosDUpdate object
for this purpose.
If the Import method is used at the IComosDUpdate object, the update is imported
into the database for consolidation but it is not installed yet.
GetCopyManager
GetCopyManager() as IComosDCopyManager
GetCTISession
Comos_Tc_Integrator::IComosTcSession GetCTISession()
GetCurrentProject
GetCurrentProject() as IComosDProject
Returns the current project; changes are only permitted in this project.
GetCurrentTimestamp
GetCurrentTimestamp() as IComosDTimestamp
Returns the current Timestamp; upon saving it is written to the related objects as
CS or RS. One timestamp per user, per project and per day is managed. (Exception:
Revisioning of documents)
GetCurrentUpdate ( ) as IComosDUpdate
GetCurrentUser
GetCurrentUser() as IComosDUser
Returns the current user; no current project can be set without this.
GetD3BinaryString
Returns from the specified object a string that contains the data of the 3D object
in encrypted form. See BuildD3FromBinaryString.
Determines the time and date from an UID. The return value can be converted into a
date format object by using CDate.
GetDBDirectory
GetDBDirectory() as String
GetDBInfo
string GetDBInfo()
Returns a string that contains information on the currently used database (same
information that is also transmitted to other stations by means of CVS).
GetDBName
GetDBName() as String
GetDragOcx
GetDragOcx() as Object
Returns the OCX that was set with WorkSet.SetDragObjectWithOcx. Enables access to
the environment from which the Drag object originated.
GetExportManager
GetExportManager() as Object
GetFileAttribute
GetFileProperties
GetFPAllowedColumnTypes
Variant GetFPAllowedColumnTypes()
Returns all permitted data types for FreeProperty columns as string array in a
variant object.
GetFPAllowedColumnTypesFor
Parameter "size": Existing size of the current column if available, otherwise -1.
GetFPsForGroup
Returns the name of all FreeProperties for a specific FreeProperty group, i.e., the
names of all FreeProperty columns as string array.
GetFPGroups
Variant GetFPGroups()
GetMemoryUsage
long GetMemoryUsage()
Returns the current memory usage of COMOS in bytes. Corresponds to the value
"private bytes" in the ProcessExplorer tool.
Return value: Number of bytes currently used by COMOS in the main memory.
GetNumeric
Converts a String, into a Double in accordance with the conventions of the current
project language and with the group and decimal delimiters taken into account.
This method can be used to determine whether a new object has been copied or moved.
Provided a moved object has not yet been added to the new owner, you can call this
method to query the former owner.
Return value: Former Owner of an object which has just been moved. NULL is returned
if the object has not bee moved at all, or if it has already been added to the new
owner.
GetOverlayParameter
GetOverlayParameter() as IComosDOverlayParameter
GetPerformanceValues
For the resourceType parameter, constants with the prefix Performance_Value_ are
available.
GetProjectionErrorText
Used with Copy structure. Returns the error text if a projection failed.
GetProjectionMode
Used with Copy structure. Not used up to now; intended to be used for different
projection modes.
GetProjectionObject
Used with Copy structure. Returns the projected object for the relevant object.
In Section Instructions Examples Basics History Extra
GetResources
Returns the number of GDI or USER objects used at the machine. This applies to the
current COMOS application on the one hand and to the entire system on the other.
Resource_Type_GUI_Current_Process
Resource_Type_GUI_All_Processes
Resource_Type_User_Objects_Current_Process
Resource_Type_User_Objects_All_Processes
Programs that use GDI resources (such as COMOS) become unstable from approximately
10,000 Handles. A flickering screen and sluggish performance in Windows point to
this problem.
If this happens, you can change the registry settings at your own risk.
Windows\GDIProcessHandleQuota
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsNT\CurrentVersion\
HKEY_CURRENT_USER/Software/Innotec/Comos/ComosExe/Comos/
MaxGDIRessourceCount
Administrators can change this value, although they do so at their own risk. The
default setting is 9000 (of 12000 at maximum capacity depending on the operating
system).
GetRootsOfTemplates
GetScanManager
GetScanManager() as IComosDScanManager
GetScriptHelper
GetSearchManager
GetSourceObject
GetSourceObject(byVal obj as Object) as Object
Returns the original during a copy process for a specified object; i.e. the object
from which the specified object was created.
GetStatusManager
GetStatusManager() as Object
GetString
Converts a Double into a String in accordance with the conventions of the current
project language and with the group and decimal delimiters taken into account.
Precision has an effect on the number of decimal places; Precision = -1 means that
the number of decimal places remains the same.
GetTempCollection
GetTempCollection() as IComosDCollection
GetTimestampWatcherObject
GetTimestampWatcherObject(retVal as Object)
Returns the object with the highest (newest) timestamp since the activation of
TimestampWatcher.
GetUserValueForKey
Used in conjunction with license management. A value can be queried for a certain
User and a certain Key.
The following list contains the possible keys that can be transferred to the method
GetUserValueForKey, and the corresponding return values:
PACKAGE
USERLICENSES
<Empty string> | oldest login date as an OLE Automation Date (double value)
GetUseScriptFunctions
GetUseScriptFunctions() as Boolean
The Boolean value shows whether the internal script functions of COMOS are called.
GetUsersByState
Returns a Collection that contains all active and inactive users. You can use the
parameter active to control the amount that is to be returned.
GetWatchedRevisionOf
Comparison of the revision status of the relevant document with the newest
(highest) Timestamp of the monitored objects. See also Chapter
ActivateTimestampWatcher.
Timestamp of the revision object >= Timestamp of the newest object on the document
> everything OK, revision object is the return value of the function.
Timestamp of the revision object < Timestamp of the newest object on the document
If an old revision has not been completed yet, i.e., it has not been released yet,
it is deleted and a new one is created.
GetWatchedSoftDeleteFlag
GetWatchedSoftDeleteFlag() as Boolean
GetWatchedTimestamp
GetWatchedTimestamp() as String
Returns the newest (highest) Timestamp of all objects that have been investigated
since the start of ActivateTimestampWatcher.
In Section Instructions Examples Basics History Extra
GetWorkingOverlayFullFileName
This method is an easy tool for determining file names for documents in layers. A
file name for an existing document inside the COMOS document directory must be
entered. For reading purposes (parameter write is set to false), the method returns
the file name of the first document found, starting from the current layer and
moving in the direction of the project. This is the valid file in the current
layer, so to speak. For writing purposes (parameter write is set to true) the file
name of the transferred document file is returned in such a way that it belongs to
the current layer and can, therefore, be used directly for writing.
Parameter write: Specifies whether you want to read the document file in the
currently valid version (parameter set to false) or whether you want to write the
file in the current layer (e.g. when checking into the current layer) (parameter
set to true).
Return value: File name of the document, if it is valid for the current layer for
either reading or writing. If the same file name is returned that was also entered
as the parameter FullFileName, then the document file is either not found or you
are not currently in a layer.
GetXObjBinaryString
Returns a String for the specified object, which contains the data of the XObject
in encrypted form. See also Chapter BuildXObjFromBinaryString.
In Section Instructions Examples Basics History Extra
Globals
Globals() as Object
Case-insensitive
HasGlobalOverflowOccurred
HasGlobalOverflowOccurred ( ) as Boolean
True: So many external changes of objects have been registered that the GUI should
be updated.
This method is only responsible for the status. An update is not triggered
automatically. The update is triggered upon request, see
SetOverflowForAllChangedObjects.
In Section Instructions Examples Basics History Extra
HashTableSize
HashTableSize() as Long
HideProgressBar
HideProgressBar() as IComosDProgressBarHider
This method returns an IComosDProgressBarHider object. This means that the progress
bar is hidden until the object is released.
HistoryRemark
HistoryRemark() as String
All history entries that are created get this property as a remark.
The value that had been valid at the point in time that the history entry had been
created is used. The value can be changed as often as desired.
ImportFromDatabaseWithDBSync
Synchronizes projects from different databases that had previously been exported
with ExportDatabaseWithSync. Parameter values and syntax ExportDatabaseWithDBSync.
The login database wins in the event of a collision!
ImportWorkingProjectFromOtherDB
Database connection:
Oracle: [ORACLE]pt_oracle
Note "pt_sql_server" and "pt_oracle" are data source names. The data sources must
be set up correctly!
InitAOWM
InitAOWM ( ) as String
InitString
InitString() as String
Parameter 3 of the last Inits is read out. This Init String can be used for
subsequent reinitialization of the workset.
InitWithFullConnectionString
Example 1:
"SERVER=MD11W1ZC;DATABASE=Comos_10_1_ClassicDB;USER ID=comos;PWD=;"
Example 2:
"D:\\ComosDB\\ComosDB_10_1\\ComosDb.mdb""D:\\ComosDB\\ComosDB_10_1\\ComosDb.mdb"
IsAllSaved
IsAllSaved() as Boolean
IsInitialized
IsInitialized() as Boolean
Upon successful initialization of the Workset TRUE. In the case of FALSE, almost
all the Workset methods are blocked.
In Section Instructions Examples Basics History Extra
IsInsertReferenceEnabled
IsInsertReferenceEnabled() as Boolean
IsMaxLoadedObjectsReached
IsMaxLoadedObjectsReached ( ) as Boolean
IsNumericForCurrentLanguage
IsSolidBaseDb
IsSolidBaseDb as Boolean
Return value
IsTerminalServer
IsTerminalServer() as Boolean
LastErrorNumber() as Long
Returns the error code of the last Check, CheckDelete or InheritCheckIn operation.
You receive the error text with Workset.LastErrorText.
LastErrorObject
LastErrorObject() as Object
LastErrorText
LastErrorText() as String
Lib
Lib() as Object
Lib DLL. The Dynamic Link Library is the start point for a number of script
functions.
LicenseRuntimeCheck
LicenseRuntimeCheck() as Boolean
LicenseServer
string LicenseServer
Property of type String which contains the license server to be used. The String
must be in the form <server>[:port][;<back server>[:port]]; i.e. the port is
optional (default value is 27011) and the backup server is also optional.
LicenseToken
void LicenseToken([in] string newVal)
LoadObject
Returns the object of the class specified by type and with the specified UID.
Example
LoadObject("CDevice", UID)
LoadObjectByType
Returns the object of the class specified by type and with the specified UID.
Example
LoadObjectByType(SytemTypeCDevice,UID)
LockPermission
Shows whether you are permitted to change the Lock/SystemLock property at the
transferred object. This property is required, since you lose all rights to change
this object by system definition after setting a lock and thus would be unable to
remove the lock again.
LogoCad
LogoCad() as Boolean
Boolean as to whether or not you are running under LogoCad (correspondingly out).
MaxLoadedObjects
MaxLoadedObjects() as Long
The number of objects from which the objects are removed from the memory with
SaveAll and ReleaseObjects. See also Chapter ReleaseObjects.
In Section Instructions Examples Basics History Extra
MemoryDump
MemoryDump(Val as String)
Only for the Debug DLL. The Dump process is performed in a suitable, specified
file.
MessageBoxHandler
IMessageBoxHandler MessageBoxHandler
Property of the type IMessageBoxHandler. Can be used to intercept message boxes and
process the messages in a different way. For this purpose, you have to create a
class that implements the IMessageBoxHandler interface. You also have to register
an instance of this class in this MessageBoxHandler property.
ModuleLicense
ModuleLicenseCheckedOut
Tests whether the specified module has already been checked out (licenses). As
opposed to ModuleLicense, this function also checks out the specified module (if
available).
NewComosUID
NewComosUID() as String
NotifyAboutChangedUIDs
NotifyAboutChangedUIDs(iXmlIDoc as LPDISPATCH)
Parameter iXmlDoc
Auxiliary method in connection with NewCVS. The ServiceBroker uses this interface
to report changes of COMOS object to the kernel.
This method is used by Global Collaboration Service Broker. The Service Broker
calls the method and passes on an XML document with UIDs to be processed by COMOS.
This method replaces the CVS messages that would not have reached all COMOS
stations in case of Global Collaboration.
ObjectCount
ObjectCount() as Long
ObjectsWithoutProjection
ObjectsWithoutProjection() as IComosDCollection
Functionality for Copy Structure. Returns the objects from the CopyTree without
projection.
PackageLicense
bool PackageLicense()
POptions
POptions() as Object
ReferencedObjectCount
ReferencedObjectCount() as Long
Number of objects in memory that are referenced by the application. These objects
are not removed from memory.
ReferencedObjects
ReferencedObjects() as IComosDCollection
Returns a Collection with all objects that have not been referenced by the COMOS
internal cache alone.
RefreshRights
RefreshRights()
Sets the rights for all objects in the memory to not initialized. The function is
to be called after each deletion, creation or editing of rights objects.
ReleaseAllObjects
ReleaseAllObjects()
ReleaseChangedObjects
ReleaseChangedObjects(Val as Long)
Logs out the list logged in with InitChangedObjects. See also Chapter
ChangedObjects.
ReleaseObjects
ReleaseObjects()
Under certain circumstances this deletes from memory all objects that are no longer
referenced. This is an important functionality to keep the need for main memory
under control when importing, for example.
The topic "Releasing objects" is covered in detail in the COMOS Manual, in the
chapter titled Database administration: System Monitor.
ReleaseStaticCollections
ReleaseStaticCollections()
Releases the StaticCollections for all objects in the memory. For performance
reasons, the Collections inherited from engineering objects are managed in these
StaticCollections, since this means that they do not have to be recalculated each
time. Changes in the base data only become visible once this method is called up in
the planning view.
RemoveFromChangedObjects
RemoveFromChangedObjects(Object As Object, Index As Long)
Removes the specified object from the ChangedObjects Collection with the specified
index.
See also
ChangedObjects
AddToChangedObjects
RemoveProcessInfo
RemoveProjections
RemoveProjections(Val as Object)
Method for copying structures that removes projections (for the object and all
secondary objects).
In Section Instructions Examples Basics History Extra
ResetUsers
ResetUsers(users as object)
All user objects apart from @SETUP and ComosSystemUser in the users Collection are
deleted in order to clean out the databases supplied.
ResetUsersEx
Has the same effect as ResetUsers, but reassigns all existing timestamps back to
the specified User.
RevisionCheck
Checks whether there already is a revision with the specified name under the
specified owner in any layer of this project.
In Section Instructions Examples Basics History Extra
RootDir
RootDir() as String
RunDatabaseMaintenance
SaveAll
SaveAll()
Conducts a scan in accordance with the ScanManager object transferred by Val, and
returns a COMOS Collection. See also IComosDScanManager.
Main advantages
Scan is faster and provides more control options. All ScanDevices functions
continue to be supported, however.
ScriptErrorHandler
ScriptErrorHandler() as Object
Auxiliary object that can be docked onto any ScriptEngine to allow error handling
to be provided if required.
SendCVSMessagesWithOldStyle
SendCVSMessagesWithOldStyle(val as Boolean)
SetCurrentProject
SetCurrentProject(Val as Object)
Sets the current project, data can only be created or amended in this one. A
CurrentUser must be logged in already in order to set a project.
SetCurrentUser
SetCurrentUser(Val as Object)
Sets the current user to which rights administration and the error list applies.
See also Chapter ErrorObjectsCount.
In Section Instructions Examples Basics History Extra
SetCurrentUserWithAuthentication
Setting a new User as the current User in COMOS. The special feature of this method
is that the User to be set does not necessarily have to be signed in as a Windows
User (in the same way as with SetCurrentUser).
Parameter
User:
Domain:
Type string: the Windows domain in which the user account is valid (should a local
account be used, the point has to be handed over as domain: ".")
Password:
Return value:
SetDragObjectWithOcx
SetDragObjectWithOcx(Val1 as Object, Val2 as Object)
SetFileAttribute
Sets CustomProperties for the file specified by file. The property name is set to
the value specified with value.
SetOracleMemoFieldLength
SetOracleMemoFieldLength()
Changes the length of the text fields stored in Oracle to 512 characters
(previously 2,000). This gives faster results when making queries. Values that
exceed this length (generally only very few in relation to the overall number) will
continue to be placed in an additional table by using the previous system.
SetOverflowForAllChangedObjects
SetOverflowForAllChangedObjects ( )
SetProjection
Functionality for Copy Structure. Creates a projection between an object from the
CopyTree and an object from the current project.
SetProjectionWithMode
Only existent due to compatibility reasons, is not used anymore. Used to control
the different project modes of Copy structure.
In Section Instructions Examples Basics History Extra
SetRunMode
SetRunMode(Val as Long)
SetTrLangDB
This method enables the component for automatic translation to be made known at
Workset; calls for translation are then passed on to this.
SetUseScriptFunctions
Activates (True) or deactivates (False) the call of all script functions in COMOS.
This is necessary for performance reasons when transferring large amounts of data.
In Section Instructions Examples Basics History Extra
SetUseValidationService
SetUseValidationService(Val as Boolean)
The use of the Cache Validation Service (CVS) can also be enabled or disabled at
the workset during on ongoing COMOS session (which means also after the workset
initialization).
SetWatchedTimestamp
SetWatchedTimestamp(Val as String)
Sets the base UID for TimeStampWatcher. See also Chapter ActivateTimestampWatcher.
ShutdownXObjs
ShutdownXObjs()
For each loaded object that also owns a loaded XObject, this calls the method
Shutdown on the XObject.
In Section Instructions Examples Basics History Extra
SimpleCDeviceChange
SimpleCDeviceChange() as Boolean
SingleReleaseStaticCollections
SingleReleaseStaticCollections(Object as Object)
Site
Site() as String
Property for the location from which this session was started.
In Section Instructions Examples Basics History Extra
SMSInfo
SMSInfo() as String
SoftDeleteFilter
SoftDeleteFilter() as Boolean
SoftDeleteMode
SoftDeleteMode ( ) as Long
The property controls which of the following display modes is activated in the
Navigator:
Working layer display mode
SpecEval
SpecEval() as Object
StartErrorLog
Starts an ErrorLog. Error messages that otherwise occur in DBMon are diverted to
the file (FileName of the file) specified by Val. Only errors are logged for which
incorrect data had been written to objects (for example, a description had been set
although the description field is set to locked). At the end of the logging
procedure, a StopErrorLog must be created.
StartMode
StartMode() as Long
StopErrorLog
StopErrorLog()
Ends the Errorlog. See StartErrorlog. Closes the Error file. The file can be used
from the time of this call onwards.
StringCompare
Compares two Strings with each other, using the same logic that is used to sort
standard COMOS Collections.
Return value: 0 if the two Strings are the same. -1 if the first String is
lexicographically smaller than the second; 1 if the first String is
lexicographically larger.
SwitchToCurrentDBVersion
SwitchToCurrentDBVersion()
An administrator command to change over the database to a new version, old Clients
cannot work any longer. If large numbers of clients need to be switched to a new
COMOS version with changes to the object structure, to ensure a trouble-free
workflow it is necessary to first switch all clients to the new COMOS version and
then run a version update for the database.
SystemRefCount
SystemRefCount() as Long
SystemType
SystemType() as Long
Returns the class of the relevant object. Possible values: See also Chapter
SystemType.
SystemTypeName
SystemTypeName() as Long
Terminate
Terminate()
A cancel function that must be called by applications when they end, in order to
make the CVS connection available again, for example.
TimeBetween
Returns the time (1/10 s) that has elapsed between the processes of creating the
objects in question. The parameters are the UIDs of the objects.
TimeZone
TimeZone() as Long
Property that stores the difference (in minutes) from UTC time for this session.
TotalTimeMode
TotalTimeMode() as Boolean
Boolean value used to toggle monitoring for all COMOS functions for the PPM.
TransactionCount
TransactionCount() as Long
TransferProjectMode
TransferProjectMode() as Long
A mode that determines the behavior of the system in terms of its user objects
during project importing and exporting processes. Valid values: See also Chapter
TransferProjectMode.
AllUsers means that all users are transferred; OneUser reassigns all users to
ComosSystemUser.
UndoAll
UndoAll()
Transfers objects in the memory, including the full sub-structure, to the last
saved state:
Changed objects:
Deleted objects:
are restored
New objects:
are deleted
In Section Instructions Examples Basics History Extra
UndoStates
UndoStates() as IComosDUndoStates
UnsavedObjectCount
UnsavedObjectCount() as Long
Number of amended objects in the memory (objects marked as deleted that have not
been saved are not taken into consideration).
UnsavedObjects
UnsavedObjects() as IComosDCollection
Returns a Collection with all objects that have not been saved.
IComosDWorkset : Property
The method recursively updates the full path of the database entries of all objects
underneath startObject. The method can be used for:
Oracle
SQL server
UseAliasForLabelFunctions
UseAliasForLabelFunctions() as Boolean
Switches on the alias functions if the Boolean value = True. See also Chapter
AliasFullLabel onwards.
Viewing
Viewing() as Boolean
WriteNetLoginCredentials
Requirement: The passed access data in the database are correct. Effect: Writes the
passed access data for Netlogin to the access file. The minimum interval when
calling this method is three seconds. In the event of an error an Exception is
triggered.
XObj
XObj() as Object
Extended Binary object. Binary object for user-specific extensions. Used for
queries, for example.
IComosDWorkset : Sub
IComosBaseObjectCollection
IComosChangeLogger
IComosDClipboard
IComosDCopyManager
IComosDDeriveSpec1
IComosDExportManager
IComosDFileProperties
IcomosDGeneralCollection
IComosDHistory
IComosDHistorys
IComosDLinkCacheManager
ComosDLinkInfo
IComosDModulManager
IComosDNumberRangeGeneratorAssignment
IComosDObjectCollection
IComosDObjectCollectionItem
IComosDOverlayParameter
IComosDRollbackState
IComosDScanManager
IcomosDSearchCondition
IcomosDSearchManager
IComosDStatusManager
IComosDTextGenerator
IComosDUndoState
IComosDUndoStates
IComosDUpdate
IComosDD3Collection
CPLTVarstorage
Exist
Item
ItemExist
ItemKey
In Section Instructions Examples Basics History Extra
Count
Count() as Long
Exist
See ItemExist.
Item
ItemExist
States whether an entry for the name that was input already exists in the variant
memory.
ItemKey
Returns the key for the index-value entry in this variant memory. Index begins at
1.
IComosBaseObjectCollection
SetAt
Assign
IComosBaseObjectCollection
InsertAt
Inserts the object Val at the Index-value position. All higher objects are moved.
SetAt
Sets the object Val at the Index-value position. Higher objects are not moved.
In Section Instructions Examples Basics History Extra
Assign
Assign(Val as IComosDCollection)
Accepts all objects of the specified Collection. This may involve a TempCollection
or an OwnCollection. The order of the source collection is retained.
IComosChangeLogger
isLoggingActive
LogChangedBooleanProperty
LogChangedFloatProperty
LogChangedIntegerProperty
LogChangedReferenceProperty
LogChangedStringProperty
LogCreate
LogDelete
LogMove
LogRenameAfterMove
In Section Instructions Examples Basics History Extra
GetDependentChangeLogs
isLoggingActive
LogChangedBooleanProperty
LogChangedFloatProperty
LogChangedFloatProperty([in] LPDISPATCH propertyOwner, [in] BSTR propertyName, [in]
double valueBefore, [in] double valueAfter)
LogChangedIntegerProperty
LogChangedReferenceProperty
LogChangedStringProperty
LogCreate
LogDelete
LogMove
LogRenameAfterMove
LogRenameAfterMove([in] LPDISPATCH movedAndRenamedObject, [in] BSTR
movedObjectOldPfn, [in] BSTR movedObjectOldName);
IComosDClipboard
CheckForCut
CheckForPaste
CopyToClipboard
CutToClipboard
Object
PasteFromClipboard
SingleCheckForCut
IComosDClipboard
CheckForCut
CheckForCut(objs As Object) As Long
Checks whether it is permissible to cut the specified objects. Objs may be either
an IComosBaseObject or (in the case of multiple selection) an IComosDCollection
(TempCollection). Inherited objects and those that failed the CheckDelete test <>
"0" cannot be cut. The result of the check is used to activate the "Cut" menu item.
CheckForPaste
The result is <> "0" and pasting is not permitted in cases involving an inherited
Owner, an object that has no create rights, the wrong system types, the wrong
Device classes for the intended project, the wrong Device creation mode or projects
that do not match.
The result of the check is used to (de)activate the "Paste" menu item.
CopyToClipboard
Instruction to transfer the specified objects to the Clipboard. Objs may be either
an IComosBaseObject or (in the case of multiple selection) an IComosDCollection
(TempCollection).
In Section Instructions Examples Basics History Extra
CutToClipboard
Instruction to cure the specified objects and transfer them to the to the
Clipboard. Objs may be either an IComosBaseObject or (in the case of multiple
selection) an IComosDCollection (TempCollection).
Object
Object() as Object
The return value is the content of the clipboard, either IComosBaseObject in the
case of single selection or IComosDCollection in the case of multiple selection.
PasteFromClipboard
Instruction to paste the clipboard under the object specified with Owner.
IComosBaseObject or IComosDOwnCollection are permitted as Owner.
IComosDOwnCollection is used if the Collection into which the item to be pasted is
not clear (for example, in the base object tree a CDevice under a CDevice may be
pasted into CDevices or into the OwnElements collection). The Save parameter
defines whether saving should be carried out immediately after executing the
function.
Save should be set to FALSE in cases where the option to Undo or cancel is
required, since otherwise the database will be directly updated when the function
is run. The Paste function already includes a call for the CheckForPaste function,
meaning that a prior CheckForPaste function call is only required in cases that
require interaction and/or a separate evaluation of the result of the CheckForPaste
action.
SingleCheckForCut
Similar function to CheckForCut. However, in this case only the root object is
checked and all objects lying underneath it are not considered.
This is a special function that can be used to deactivate the "CUT" menu item
quickly, for example.
IComosDCopyManager
CollectReferences
DBMode
DestinationObject
DestinationProject
Mode
NewObjects
NewRootObjects
RestoreRevisions
SourceObjects
IComosDCopyManager
Specifically for the Workset.Copy method; allows multiple selection and the
reference collection, among other things.
CollectReferences
CollectReferences() as Boolean
DBMode
DBMode() as Boolean
Property that specifies whether the procedure is to run completely at the database
level (instead of creating object instances).
DestinationObject
DestinationProject
DestinationProject() as IComosDProject
Mode
Mode() as Long
This mode determines whether only the base data or all references are to be looked
at.
NewObjects
NewObjects() as IComosDCollection
This is the set of new objects created by the copying action, this still have to be
pasted under the relevant target nodes.
NewRootObjects
NewRootObjects() as IComosDCollection
This is the set of all new objects formed by recreating new object nodes of the top
level.
RestoreRevisions
RestoreRevisions as boolean
SourceObjects
SourceObjects() as IComosDCollection
This is the set of objects to be copied, and all source objects must be present in
this Collection.
IComosDCopyManager: Property
IComosDDeriveSpec1
IComosDDeriveSpec1
Independent COMOS administration object that is only for COMOS internal use.
In Section Instructions Examples Basics History Extra
IComosDExportManager
ConnectString
FileIncrement
Import
ProjectUID
SyncAllFiles
Timestamp
WithDeleted
IComosDExportManager
ConnectString
ConnectString() as String
Required when logging into the target database (the syntax is the same as for
Workset.Init).
FileIncrement
For DBSYNC, specifies whether only files created since the last synchronization
process ((true)) or all files (false - old method) are to be sent (performance vs.
volume)
Import
Import() as Boolean
ProjectUID
ProjectUID() as String
UID of a project from the source database which can thus be imported as well.
SyncAllFiles
Belongs to DBSYNC. Alt: if only one document was changed, then the complete
document directory was copied as well. The date of the last DBSYNC synchronization
is saved and only the newer documents are then copied.
Timestamp
Timestamp() as String
WithDeleted
WithDeleted() as Boolean
The Boolean parameter determines whether database objects that had been marked as
deleted are to be taken in consideration when exporting.
IComosDFileProperties
CustomPropertyExists
GetCustomPropertyByIndex
GetCustomPropertyByName
GetCustomPropertyCount
GetCustomPropertyName
GetDocumentProperty
GetFileName
IsDocumentProperty
RemoveCustomPropertyByIndex
RemoveCustomPropertyByName
Save
SetCustomPropertyByIndex
SetCustomPropertyByName
SetDocumentProperty
IComosDFileProperties
Case-insensitive
Now supports all reading standard values (except for date fields). Properties with
numbers as values are converted to decimal string. Object read via
workset.GetFileProperties(Name as string), where the name is the file name.
CustomPropertyExists
GetCustomPropertyByIndex
GetCustomPropertyByName
GetCustomPropertyByName(BSTR key, [out, retval] VARIANT *retVal)
Returns the value of the CustomProperty with the name key (call
CustomPropertyExists beforehand).
GetCustomPropertyCount
Number of CustomProperties.
GetCustomPropertyName
GetDocumentProperty
GetFileName
Returns the file name of the file in which the Properties originate.
IsDocumentProperty
RemoveCustomPropertyByIndex
RemoveCustomPropertyByName
Save
SetCustomPropertyByIndex
SetCustomPropertyByName
SetCustomPropertyByName([in] BSTR key , VARIANT value)
SetDocumentProperty
IcomosDGeneralCollection
Add
IndexOf
Insert
Item
IcomosDGeneralCollection
Class which is based on .NET Collections of the interface. Collection of any
objects (not only COMOS objects). Can be used for any desired purposes. Elements in
the Collection are indexed from 1 onwards (VB-Like).
Add
Add(/*[in]*/LPDISPATCH item);
IndexOf
Insert
Insert(/*[in]*/ long index, LPDISPATCH item);
Adds Item to the desired position. The existing items are moved one position
backwards, starting from the index.
Item
Item(index) reads or sets the element using the index. Index between 1 and Count()
Example:
Collection.Item(1) = object
IComosDHistory
Value
TimestampUID
TimestampUID() as String
property TimestampUID
Value
Value() as String
property Value
IComosDHistorys
Item
Count
Count() as Long
method Count
Item
method Item
IComosDLinkCacheManager
IComosDLinkCacheManager
Independent COMOS administration object that is only for COMOS internal use.
ComosDLinkInfo
Assign
Index
KeepLinkValue
LinkName
LinkPriority
LinkType
SpecName
StaticLink
StaticLinkCompare
StaticLinkOperator
SystemType
UnitLink
UseForXValues
UserLinkProperties
IComosDLinkInfo
Manages the link information of attributes. The LinkInfo object contains the link
path between two attributes in string form and a number of link-dependent Boolean
parameters.
Assign
Assign(source_obj as Object)
Index
Index() as long
Shows whether a LinkInfo object of an attribute that is being searched for (value =
-1) or a cell (value = XValueIndex) is involved.
KeepLinkValue
KeepLinkValue() as Boolean
Determines whether the linked value is to be taken over if the linked object is
replaced. (only for linking via linked objects)
LinkName
LinkName() as String
LinkPriority
LinkPriority() as Boolean
Determines whether the linked value is to be used. Priority switching for attribute
values:
LinkPriority = False:
LinkType() as Long
COMOS system constant for the type of link. See also Chapter Link.
SpecName
SpecName() as String
StaticLink
StaticLink() as Boolean
Static link.
StaticLinkCompare
StaticLinkCompare() as Boolean
Shows whether the static link is only to be used for comparison purposes.
StaticLinkOperator
StaticLinkOperator() as String
SystemType
SystemType ( ) as Long
Returns the system type of the current object. For objects of the IComosDLinkInfo
type, this is system type 105 (constant SystemTypeLinkInfo: value 105).
UnitLink
UnitLink() as Boolean
UseForXValues
UseForXValues() as Boolean
UserLinkProperties
UserLinkProperties() as String
IComosDModulManager
Number
In Section Instructions Examples Basics History Extra
IComosDModulManager
Number
Number() as Long
IComosDNumberRangeGeneratorAssignment
GetNumberRangeGenerator
GetOwner
Rank
This assignment object sets up a connection between a COMOS object (possible are
IComosDDevice, IComosDDocument and IComosDProject) and a NumberRangeGenerator (type
IComosDNumberRangeGenerator). These assignment objects are necessary for the
connection, as these objects have an n:m relation. Apart from the references to the
participating objects, they contain only a numerical Property that is interpreted
as a kind of assignment priority (see below).
GetNumberRangeGenerator
IComosDNumberRangeGenerator GetNumberRangeGenerator()
GetOwner
GetOwner
Returns the COMOS object to which the NumberRangeGenerator used will be assigned.
long Rank
IComosDObjectCollection
Count
Item
IComosDObjectCollection
Count
Count() as Long
Item
IComosDObjectCollectionItem
Code
Object
Reason
ReasonObject
In Section Instructions Examples Basics History Extra
IComosDObjectCollectionItem
Consists of a COMOS object and the associated ChangedObjectsCode that specifies the
reason for including the object in the collection. ChangedObjectsCode
Code
Code() as Long
Object
Object() as Object
Reason
Reason() as String
Used with Workset.DeleteErrorObjects. You get an error number (code) and an error
text (reason).
ReasonObject
ReasonObject() as Object
See also Chapter Reason. In some cases, at this point you will find the object that
was the cause of this entry.
IComosDOverlayParameter
SetCheckOpenRevisions
SetCheckPlantRevisions
SetCheckStarVersions
SetDeleteObjectsMode
SetDeleteOverlayMode
SetDescription
SetDestinationOverlay
SetLockOverlay
SetOpenRevisionType
SetPartialReleaseOwners
SetReleaseDuplicates
SetSourceOverlay
SetCheckDuplicateNames
Controls whether a check for duplicate names is run before releasing the working
layer.
OverlayCheckDuplicateNamesDefault (= 0)
The setting of the corresponding base object below "@99 > A70 Working layers" is
used.
(Default)
OverlayCheckDuplicateNamesOFF (= 1)
OverlayCheckDuplicateNamesON (= 2)
SetCheckOpenRevisions(Check as Long)
Determines whether or not a check is to be made for open revisions before the
release.
Check = 0
The setting of the corresponding base object below "@99 > A70 Working layers" is
used.
(Default)
Check = 1
The check for open revisions is carried out before the release.
Check = 2
The check for open revisions is not carried out before the release.
SetCheckPlantRevisions
SetCheckPlantRevisions(Check as Long)
Determines whether or not a check is to be made for project revisions without unit
revisions before the release.
Check = 0
The setting of the corresponding base object below "@99 > A70 Working layers" is
used.
(Default)
Check = 1
Check = 2
SetCheckStarVersions
The method determines if a check for version documents with asterisk takes place
when a working layer is released. An asterisk in the version number indicates that
this version number already exists for the document in another working layer.
SetDeleteObjectsMode
DeleteObjectsMode = 0
The setting of the corresponding base object below "@99 > A70 Working layers" is
used (Default).
DeleteObjectsMode = 1
DeleteObjectsMode = 2
Objects of the working layer that is to be released are retained after the release.
SetDeleteOverlayMode
Description for the histories object that is created if necessary through a release
into the released area.
SetDestinationOverlay
Sets the working layer into which the release is to be performed by means of
ReleaseOverlayEX. It is also permitted to set the project. If NULL is specified,
the owner of the working layer to be released is used.
SetLockOverlay
Overlay_Lock_Mode_Default (=0)
Value is retrieved by the corresponding base object below "@99 > A70 Working
layers".
Overlay_Lock_Mode_Lock (=1)
Overlay_Lock_Mode_NoLock (=2)
SetOpenRevisionType
SetOpenRevisionType(OpenRevisionType as Long)
OverlayOpenRevisionTypeDefault (=0)
Value is retrieved by the corresponding base object below "@99 > A70 Working
layers".
OverlayOpenRevisionTypeOpen (=1)
OverlayOpenRevisionTypeCreated (=2)
With the help of this method you can define a set of objects for partial releases
of working layers.
A collection of root objects is passed to do so. The root objects and all objects
located in the substructures of the root objects will be released.
This functionality must be used carefully, since it can produce inconsistent data
in the target of the working layer release!
Objects referenced by the objects to be released are not released at the same time,
unless these objects are also located underneath one of the root objects.
Consequently, references to objects that were created in the overlay that is to be
released and that are not visible in the preceding working layer are lost.
SetReleaseDuplicates
Explanation
The other case is when an exact copy does not exist in the working layer in which
the release is to be made, but this layer contains an exact copy as a result of an
overlay ("inheritance"). To put it another way: although the object is displayed in
the working layer, it physically derives from a superordinate working layer.
SetReleaseDuplicates now defines whether or not these specific objects are to be
released.
If the objects are not released, the logical status of the working layer is the
same as in the case with the release, but there are fewer objects in the database
in the working layer. The release would have created objects that would only have
been inherited, in contrast to the case without a release.
This option is required, for example, if you wish to release the intermediate
states of a working layer in advance, but still wish to continue working in the
working layer after the release. If you now release the intermediate state, then
exactly the same objects will usually be present in the original working layer and
in the working layer in which the last release was carried out. Under certain
circumstances you might not want to check the objects into the intermediate layer
again, which would also affect the hierarchical display in Funtree.
SetSourceOverlay
IComosDRollbackState
AddD3Object
AddRollbackStateEntry
Count
ID
Rollback
In Section Instructions Examples Basics History Extra
IComosDRollbackState
AddD3Object
AddD3Object(ByVal D3 as Object)
AddRollbackStateEntry
Allows you to integrate your own objects into the RollbackState administration (in
COMOS, this is used with the report items for the undo/redo operation in the
document, for example). These objects must implement the IRollBackStateEntry
interface. The following constants are permissible for Mode:
RollbackStateEntry_Mode_Modified
RollbackStateEntry_Mode_New
RollbackStateEntry_Mode_Delete
Count
Count() as Long
ID
ID() as Long
IComosDRollbackState: Sub
Rollback
Rollback()
IComosDScanManager
AllProjects
CancelAllowed
Classes
CObjects
DirectDBSearch
FilterByLayer
IncludeRoot
Mode
Properties
Recursive
Root
ScanWasCancelled
SingleStage
StopClasses
SystemType
Value
WithBackPointerDevices
WithBackPointerDocuments
WithCLinks
WithRevisionDocuments
WithSystemTemporary
In Section Instructions Examples Basics History Extra
IComosDScanManager
An auxiliary object for the Scan search function in COMOS. This enables efficient
searching for objects of classes CDevice, Device and Document by means of special
routines. Other objects can be found via the general Search.
Sample code
scanman.systemtype = 8
scanman.root = b
AllProjects
AllProjects as Boolean
Is used for searching documents. Determines whether you only wish to search in the
current project or in all projects.
In Section Instructions Examples Basics History Extra
CancelAllowed
bool CancelAllowed
Property of Boolean type. Defines whether a scan procedure that is started with the
current ScanManager may be canceled. If this property is "true", then a Cancel
button is shown in the user interface.
Warning: Previously, canceling was only supported when scanning devices in the
object model.
Classes
Classes() as String
This is only executed in the search for Device or for a general search. The classes
to be searched are specified in string form, in accordance with DeviceClass. It is
possible to search for multiple classes simultaneously, in which case " | " is used
as the class delimiter.
CObjects
CObjects() as IComosDCollection
This function is used to search for objects of class Device. The objects of this
Collection pass information on to the Devices to be found. The effect is the same
as in the case of the ScanDevicesWithCObject and ScanDevicesWithCObjectX functions;
however, the difference in this case is that a group of objects, rather than an
individual object, serves as the search parameter. This enables a simultaneous
search for signals and functions, for example.
DirectDBSearch
DirectDBSearch() as Boolean
Property for using the search procedure directly at the database level. A
comparison is no longer carried out in relation to COMOS objects, but instead
directly within the database. This brings about performance advantages but also the
disadvantage that linked or inherited information cannot be found any longer.
FilterByLayer
bool FilterByLayer
Property of Boolean type. Controls whether the result of the scan operation is to
be filtered again based on the working areas of the objects found. This means, for
example, that objects with the "~" or "*" working areas are not visible in the
Navigator.
To get the same result when scanning, this Property must be set to TRUE.
In addition to the special working areas, the normal working areas are also
compared with the areas of the current user, and objects for which the user has no
reading rights are filtered out. By default sets this Property to FALSE, meaning
that there is no filtering in terms of working areas.
IncludeRoot() as Boolean
Mode
Mode() as Long
Property of type long. Depending on the type of objects being searched for, this is
used to define more specifically how the search is to be performed:
These two values must be understood to be flags or bits which can also be combined.
These values are not to be understood as summable bits; only one exclusive value
may be used.
Properties
Properties() as Long
Property for specifying the Property that is to be used for the search. Only
relevant if DirectDBSearch is activated.
DBSearch_Property_Name
DBSearch_Property_Label
DBSearch_Property_Description
DBSearch_Property_Value
DBSearch_Property_Description2
DBSearch_Property_Description3
DBSearch_Property_XValue
DBSearch_Property_FileName
Recursive
Recursive() as Boolean
True triggers a recursive search, meaning that an iterative search is carried out
in the hierarchical substructure.
Root
Root() as Object
ScanWasCancelled
ScanWasCancelled ( ) as Boolean
True: The user has clicked on "Cancel" during the scan process.
False: In all other cases.
The method indicates if a user has canceled the scan process manually. An
evaluation takes place in the following cases:
SingleStage
SingleStage() as Boolean
True triggers a single-stage search, i.e. not a search in the object hierarchy, but
instead only in the OwnCollections and BackpointerCollections.
StopClasses
StopClasses() as String
Only executed when searching for objects of the system type Device. Here you can
specify object classes for which the search is aborted. If any objects of the
specified classes are found, then no further searching is carried out in the
relevant hierarchical substructure. The classes are specified in string form, in
accordance with DeviceClass. It is possible to specify multiple classes
simultaneously. No class delimiter is required for this purpose (classes can be
written one after the other directly, without inserting a space character).
Optional: "#"
"#" = ScanDevicesStopDocobj
Technical background: Docobj references are also retraced during the search. If the
search moves underneath a document and a position is placed on this document, for
example, then a Docobj for this position is located underneath the document. The
search finds the Docobj and then searches for the corresponding system type Device
of class Position.
The "#" option above means that the references will not be retraced and the placed
position will not, therefore, be found.
SystemType
SystemType ( ) as Long
13
SystemTypeCDevice
SystemTypeDevice
29
SystemTypeDocument
ScanManager_SystemType_All
Value() as String
Property for specifying the value that is to be used for the search. Only relevant
if DirectDBSearch is activated.
WithBackPointerDevices
WithBackPointerDevices() as Boolean
WithBackPointerDocuments
WithBackPointerDocuments() as Boolean
WithCLinks as Boolean
Used when searching for documents. Determines whether the search is to continue
underneath CDevices via CLinks.
WithRevisionDocuments
WithRevisionDocuments() as Boolean
WithSystemTemporary
WithSystemTemporary as Boolean
IcomosDSearchCondition
This chapter contains the following information:IcomosDSearchCondition
Get_AttributeType
Get_ComparisonOperator
Get_LogicalOperator
Get_PerformanceIndex
Get_Value
IsSearchCaseSensitive
IsValid
SystemType
IcomosDSearchCondition
Get_AttributeType
Get_ComparisonOperator
The operator defines how the attribute/classification is compared with the value in
the database.
For classification 2 and 3, only LIKE and NOT LIKE are permitted as operators. When
searching for a Description, you are limited to = and LIKE. (due to multiple
languages).
Get_LogicalOperator
The value for the first AppendSearchCondition must remain empty. With all other
AppendSearchCondition, either OR or AND must be specified. OR means that at least
one condition must be met. AND means that all conditions must be met. AND is
stricter than OR. Following parenthesis applies: (…AND…AND…) OR (…AND…AND…) OR …
Get_PerformanceIndex
For a search condition states how fast this should be conducted by the database.
Used in the query interface for a signal switch. 0 - highest performance, lowest
performance currently 2.
Get_Value
Value which is used to compare. In the case of LIKE and NOT LIKE, "*" and "?" may
be used as wildcards. "?" Serves as a proxy for exactly one optional
IsSearchCaseSensitive
IsSearchCaseSensitive ( ) as Boolean
True: The strings of the current search condition are evaluated observing upper
case/lower case letters.
IsValid
IsValid(/*[out, retval]*/ long* errorCode);
SystemType
long SystemType
Property of type long; contains the system type for which the current search is
executed.
IcomosDSearchManager
FollowUnitPointers
GetFPAllowedComparisonOps
GetSearchCondition
IsSearchCaseSensitive
IsUserAbortAllowed
RootObjects
SearchConditions
SystemType
In Section Instructions Examples Basics History Extra
FollowLifeCycleLinks
FollowLifeCycleLinks ( ) as Boolean
FollowUnitPointers
FollowUnitPointers ( ) as Boolean
GetFPAllowedComparisonOps
Returns all permitted compare operators for the specified FreeProperty (group name
and FreeProperty name).
GetSearchCondition
IcomosDSearchManager: Property
IsSearchCaseSensitive
bool IsSearchCaseSensitive
Property of type bool; specifies whether or not the search is to be case sensitive.
IsUserAbortAllowed
IsUserAbortAllowed(/*[out,retval]*/VARIANT_BOOL* isUserAbortAllowed);
It is possible to define whether a user can abort the search. In this case, the
progress bar will have a "Cancel" button added to it.
In Section Instructions Examples Basics History Extra
RootObjects
At the SearchManager, there is a TempCollection for the start objects. Any objects
can be added to this TempCollection. The result amount contains only objects that
lie underneath one of the start objects. If the Collection is empty, the search is
conducted across all projects.
SearchConditions
SystemType
Here you can define what kind of objects should be searched for. Permitted entries:
Device (SystemType 8)
CDevice (SystemType 13)
IComosDStatusManager
Classes
DirectionMode
Number
SetMode
Value
IComosDStatusManager
Classes
Classes() as String
DirectionMode
DirectionMode() as Long
Constants:
StatusDirectionModeObject
StatusDirectionModeUp
StatusDirectionModeDown
Number
Number() as Long
Number of the status that is to be changed.
SetMode
SetMode() as Long
Constants:
StatusSetModeObject
StatusSetModeIncrement
StatusSetModeDecrement
Value
Value() as Long
IComosDTextGenerator
This chapter contains the following information:IComosDTextGenerator
Check
CheckInherited
CObject
DefaultValue
Mask
OwnDefaultValue
OwnMask
OwnValue
Type
UseDefaultIfEmpty
Value
IComosDTextGenerator
Check
Check
Check() as Boolean
Toggles whether the mask is only to be used to generate texts or also to check
existing texts.
CheckInherited
CheckInherited() as Boolean
Shows whether "Check at the current text generator is defined or inherited. A TRUE
setting means that Check is inherited.
CObject
CObject() as IComosDDevice
Associated CDevice.
DefaultValue
DefaultValue() as String
Default value.
Mask
Mask() as String
Mask.
OwnDefaultValue
OwnDefaultValue() as String
OwnMask
OwnMask() as String
OwnValue
OwnValue() as String
Type
Type() as Long
Constants:
GeneratorTypeName
GeneratorTypeLabel
GeneratorTypeDescription
UseDefaultIfEmpty
bool UseDefaultIfEmpty
Property of Boolean type that indicates whether the standard index 0 should be
used, if empty generator text would be returned for an index != 0. This enables a
Fallback to be set up on the standard naming scheme, if no generator text is
entered for the scheme currently in use.
Value
Value() as String
IComosDUndoState
ChangeTimestamps
Check
CheckAndCorrectObjects
ForceTranslation
LanguageForSubWorkingLayerTranslation
Objects
OwnerFunction
Save
Tag
Undo
In Section Instructions Examples Basics History Extra
IComosDUndoState
Administration object, for managing Undo quantities that are not derived from any
other class. This enables improved behavior as far as Save and Undo are concerned
for quantities of objects. An Ocx (e.g. the properties mask) must create its own
UndoState and set this as CurrentUndoState before it makes any changes at the
objects. COMOS then adds all the objects that change to the Objects Collection of
this UndoState. For this UndoState, an Undo or Check and Save operation will be
performed at the end.
ChangeTimestamps
bool ChangeTimestamps
Check
Check() As Long
Checks all objects of the Objects Collection (in the same way as Obj.Check).
CheckAndCorrectObjects
CheckAndCorrectObjects() As Long
ForceTranslation
bool ForceTranslation
Property of Boolean type. Translations are usually only transported in the lower
layers if something has actually been changed in the translation. You can use this
Property to specify that this should happen even if the translation has not been
changed (value true). This is useful if there are no translations at all yet in the
layers.
LanguageForSubWorkingLayerTranslation
IComosDLanguage LanguageForSubWorkingLayerTranslation
Property of type IComosDLanguage. Used in conjunction with automatic project
translation. This Property is the source language of a translation that has already
been carried out, whose results are also to be transported in lower layers. If, on
a Device for example, the description has been translated from German to English
(Device has been changed and is now in UndoState), German must be set as the source
language and the translation is then transported in lower layers upon saving.
Objects
Objects() as IComosDCollection
OwnerFunction
OwnerFunction() as String
Save
Save() As Long
Saves all objects of the Objects Collection (in the same way as Obj.Save).
Tag
Tag() as String
Undo
Undo()
Performs the function Undo for all objects of the Objects Collection (in the same
way as Obj.Undo objects).
IComosDUndoStates
Count
CreateNew
Item
Remove
IComosDUndoStates
Count
Count() as Long
CreateNew
CreateNew() as IComosDUndoState
Item
Item
Remove
IComosDUpdate
DatabaseVersion
Delete
Information
Install
Import
IsConsolidated
Version
ArchivePath
ArchivePath ( ) as String
Returns or sets the path to the zip file with database update.
DatabaseVersion
DatabaseVersion ( ) as String
Delete
Delete ( )
Information
Information ( ) as String
Install
True: The consolidation layers for the working layers in the engineering project
are deleted.
These consolidation layers for the engineering projects have the corresponding
consolidation layer in the base project as base working layer.
The user decides with the help of an option if the consolidation layers in the
engineering project are deleted during the actual installation of the database
update.
Import
Import ( )
Imports the database update and transfers the information to the database
consolidation.
IsConsolidated ( ) as Boolean
Version
Version ( ) as String
IComosDD3Collection
Item
Count
Count() as Long
Item
IComosTaskNotifyObject
IMessageBoxHandler
IRollbackStateEntry
IXObject
IBasic
This chapter contains the following information:CDeviceChange
CDeviceChange
IComosTaskNotifyObject
Ready
Cancel
In Section Instructions Examples Basics History Extra
IComosTaskNotifyObject
Ready
Ready is returned by the kernel. You receive it at the end of the PreLoads
(provided the process has not been canceled).
Cancel
Cancel()
Cancel is returned by the kernel. You receive it if PreLoads has been canceled.
ShowMessageBox
IMessageBoxHandler
Interface for processing user hints (message boxes). Consists of only one method
called "ShowMessageBox" to which all user hints are sent as soon as an instance of
the implementing class is registered at the workset.
ShowMessageBox
Required for the Property Workset.MessageBoxHandler. At this point, you can set an
object that implements the IMessageBoxHandler interface.
Parameter text:
Parameter caption:
Specifies which icon and which buttons are displayed next to the text and whether
the MessageBox is modal or not.
You can find more information on constants in the MSDN documentation from
Microsoft.
Effect:
All message boxes from COMOS are routed to the ShowMessageBox function of this
object.
Application example:
Example
[ComVisible(true)]
[ComDefaultInterface(typeof(IMessageBoxHandler))]
[ClassInterface(ClassInterfaceType.None)]
}
Example
Create instance of the class listed above that is then registered at the Workset:
s_Workset.MessageBoxHandler = (Plt.IMessageBoxHandler)messageBoxHandler;
.NET
IRollbackStateEntry
Rollback
GetUID
OnRollbackBegin
OnRollbackDone
In Section Instructions Examples Basics History Extra
IRollbackStateEntry
The object must save the backup information itself; the backup information is only
called here.
Rollback
Called when rolling back the rollback state. Rollback is called for each individual
Item.
GetUID
GetUID() as String
Must return a unique key. Please note: Since this involves "foreign" objects, it is
not a COMOS UID that is processed here but instead a key that has the function of
the COMOS UID.
OnRollbackBegin
Called when rolling back the rollback state. Called for each individual Item before
the rollback.
OnRollbackDone
Called when rolling back the rollback state. Called for each individual Item after
the rollback.
IXObject
GetVersion
OnCopy
OnCreate
OnDelete
OnGetProgID
OnLoad
OnSave
OnScan
ShutDown
Container
Container() as Object
GetVersion
GetVersion() as Long
OnCopy()
OnCreate
OnCreate()
OnDelete
OnDelete()
OnGetProgID
OnGetProgID() as String
OnLoad
OnSave
OnScan
ShutDown
ShutDown()
Called by ShutDownXObj.
Reference
OwnCollections
References at BaseObject
Calculated references
Background information
Attributes, connectors, documents (in base object tree only), symbols (in base
object tree only), CDevices as elements (in base object tree only).
Of these five classes, only attributes and connectors can be inherited both in the
base object tree and from the base data to the engineering data (as explained
above).
Therefore, (almost all) properties are also available as OwnProperty for these two
classes of attributes and connectors. Example for IComosDConnector: Cable /
OwnCable, Potential / OwnPotential.
Example:
BackPointerCDevices as IComosDOwnCollection or
BackPointerConnectors as IComosDCollection.
Comparison of the two types
IComosDOwnCollection
If you use this type, the data is read into the memory with the first access and
used again with future access. Provided the project is not changed, the
IComosDOwnCollection remains in the memory and can be called (almost) instantly.
IComosDCollection
If you use this type, the data is recalculated with each access. Operations using
them are thus correspondingly time-consuming. If you repeatedly access them, you
should (if possible) assign them to a variable so that they are then held in memory
instead.
Example:
AllConnectors ( ) as IComosDCollection .
Background:
Each report object owns a report template object. This connection is not
established via the UID, however, but instead via the PathFullName. Advantage: you
can simply swap the report template object and each report object recognizes the
new report template object without any further ado.
RealCDocument always relates to the report template object from the base project.
CDocument first checks whether a report template object with the same PathFullName
also exists in the current engineering project. If that is the case, then the
report template object is supplied from the planning project. For this reason, it
always better for regular users to use CDocument.
References at BaseObject
Class
Reference
(Function or Property)/
Backpointer
Class
IComosBaseObject
InheritParent (calculated)
Owner
Class
Reference
(Function or Property)/
Backpointer
Class
IComosDCase
IComosDCDevice
CDevice
BackPointerCDevices
IComosDCDevice
IComosDCDevice
CObject
As CDevice
IComosDCDevice
OwnDeviceGroup
BackPointerCDevices
IComosDDevice
IComosDDevice
IComosDCLink
Reference
CDevice:
BackPointerCLinks
Connector:
BackPointerCLinks
CSpecificationSet:
BackPointerCLinks
Document:
BackPointerCLinks
IComosDConnector
Document
IcomosDDocument
ConnectedWith
IComosDConnector
BackPointerConnectors
IComosDDevice
OwnPotential
IComosDDevice
OwnSignal
IComosDConnectorAttributeItem
IComosDCSpecificationSet
IComosDDevice
Alias
IComosDDevice
CDevice
BackPointerDevices
IComosDCDevice
CObject
BackPointerDevices
IComosDCDevice
Implementation
BackPointerDevicesWithImplementation
IComosDDevice
Location
BackPointerDevicesWithLocation
Actually, every BaseObject instance, but then limited to Device, Class Location
Position
Unit
BackPointerDevicesWithUnit
Actually, every BaseObject instance, but then limited to Device, Class Unit
IComosDDevSymbol
IComosDDocObj
Reference
Device,
Connector
Reference2
IComosDDocument
CDocument
IComosDCDevice
CObject
IComosDCDevice
DocumentType
IComosDDocumentType
Location
BackPointerDevicesWithLocation
Actually, every BaseObject instance, but then limited to Device, Class Location
OrgDocument
BackPointerDocumentsWithOrgDocument
IComosDDocument
RealCDocument
BackPointerDocuments
IComosDDocument
Unit
BackPointerDevicesWithUnit
IComosDDocumentType
IComosDLanguage
IComosDLocation
CObject
IComosDCDevice
IComosDObjectRevision
IComosDPhysUnit
IComosDPhysUnitGroup
PhysD3Unit
IComosDPhysUnit
PhysDefaultUnit
BackPointer coll. not necessary, since its calculation is easy: query the owner
IComosDPhysUnit
PhysDefaultUnit1 and following
IComosDPhysUnit
PhysSIUnit
BackPointer coll. not necessary, since its calculation is easy: query the owner
IComosDPhysUnit
IComosDProject
CDeviceSystem
BackPointer coll. not necessary, since its calculation is easy: query the project
IComosDProject
CurrentLanguage
BackPointer coll. not necessary, since its calculation is easy: query the project
IComosDLanguage
CurrentObjectRevision
BackPointer coll. not necessary, since its calculation is easy: query the project
IComosDObjectRevision
CurrentWorkingOverlay
BackPointer coll. not necessary, since its calculation is easy: query the project
IComosDWorkingOverlay
UserSystem
BackPointer coll. not necessary, since its calculation is easy: query the project
IComosDProject
Cases
IComosDCase
IComosDProject
IComosDRight
Reference
BackPointer coll. not necessary, since its calculation is easy: query the object
User
BackPointerRights , BackPointerRights
Actually every BaseObject instance, but then only limited to User or UserGroup
IComosDSpecification
OwnCSpecification
BackPointerSpecifications
IComosDSpecification
OwnLinkObject
BackPointerSpecificationsWithLinkObject
RealStandardTable
BackPointerSpecifications
IComosDStandardTable
IComosDSpecificationSet
CObject
IComosDCDevice
CSpecificationSet
BackPointerSpecificationSets
IComosDCSpecificationSet
IComosDStandardTable
DefaultValue
IComosDStandardValue
IComosDStandardValue
IComosDOwnCollection
IComosDTimestamp
User
IComosDUser
IComosDUnit
CObject
IComosDCDevice
IComosDUser
IComosDUserGroup
IComosDWorkingOverlay
Calculated references
Class
Reference
(Function or Property)/
Backpointer
Class
IComosDCDevice
DeviceGroup
IComosDDevice
IComosDConnector
Cable
OwnWire
IComosDDevice
Potential
IComosDDevice
Signal
IComosDDevice
Wire
Is calculated from Cable. BackPointer coll not necessary, since a 1-to-1 reference
that can be queried with "Connected" exists
IComosDDevice
IComosDDocument
CDocument
IComosDDocument
IComosDSpecification
CSpecification
IComosDSpecification
LinkObject
OwnStandardTable
IComosDStandardTable
StandardTable
IComosDStandardTable
COMOS constants
ClassificationTypes
ComosSystemConstants
ComosSystemTypes
ConsolidationShadowObjectLocation
ConsolidationStatusValue
dbType
PopupMenuConstants
SoftDeleteMode
In Section Instructions Examples Basics History Extra
CDeviceConstants
CalcToEx
CDeviceConstants
Chapter
ConnectorConstants
DetailClass
DeviceClass
DocumentType
InternalConnection_
IsPlaced
Layer
Layers
LicenseModule
Login_
Reports
RevisionArchive
Revisions
RevisionType
RIClass
ScanDevices
SpecCalc
SpecificationType
SpecLink
StaticLinkOperator
Template
Various
Alias
AliasLocation
"@Alias"
AliasUnit
"@Alias"
CalcToEx
CalcToExNoCalculationPossible
"NO_CALC_POSSIBLE"
CalcToExNoNumericSpec
"NO_NUMERIC_SPEC"
CalcToExNoNumericSpecValue
"NO_NUMERIC_SPEC_VALUE"
In Section Instructions Examples Basics History Extra
CDeviceConstants
CDeviceConstantsAccessory
"@A"
CDeviceConstantsAssembly
"@B"
CDeviceConstantsAttributes
"@Y"
CDeviceConstantsCable
"@Cable"
CDeviceConstantsCableChannel
"@K"
CDeviceConstantsCatalog
"@D"
CDeviceConstantsCElement
"@E"
CDeviceConstantsConnector
"@N"
CDeviceConstantsCost
"@C"
CDeviceConstantsDetail
"@Detail"
CDeviceConstantsDeviceSpecification
"@V"
CDeviceConstantsDName
"@2"
CDeviceConstantsDocument
"@O"
The databases of the type "cDB" included a standardized root node of the base
objects for documents: "@O". This constant describes the name of this root node.
The root node "@O" is no longer used in the databases of type "iDB". This means the
constant CDeviceConstantsDocument will not return a value in the databases of type
"iDB". In COMOS 10.1, the constant is no longer used by COMOS. If the constant is
still to be used as part of customizing, the script has to be adapted accordingly
to the database type.
CDeviceConstantsDocumentGroup
"@G"
CDeviceConstantsEContacts
"@C"
CDeviceConstantsElement
"@Element"
CDeviceConstantsEModuls
"@M"
CDeviceConstantsEOthers
"@O"
CDeviceConstantsETransformers
"@T"
CDeviceConstantsFunction
"@F"
CDeviceConstantsFunctionBlock
"@H"
CDeviceConstantsFunctionElement
"@W"
CDeviceConstantsGroup
"@Z"
CDeviceConstantsInformation
"@I"
CDeviceConstantsInstrument
"@Instrument"
CDeviceConstantsLocalInstance
"@LocalInstance"
CDeviceConstantsLocation
"@L"
CDeviceConstantsMaintenance
"@M"
CDeviceConstantsPipe
"@Pipe"
CDeviceConstantsPlug
"@Plug"
CDeviceConstantsPlugStrip
"@PlugStrip"
CDeviceConstantsPosition
"@P"
CDeviceConstantsPotential
"@Potential"
CDeviceConstantsProcessing
"@X"
CDeviceConstantsProject
"@J"
CDeviceConstantsQualityAssurance
"@Q"
CDeviceConstantsRevision
"@R"
CDeviceConstantsRI
"@RI"
CDeviceConstantsSignal
"@S"
CDeviceConstantsSymbol
"@Symbol"
CDeviceConstantsTerminal
"@Terminal"
CDeviceConstantsTerminalStrip
"@TerminalStrip"
CDeviceConstantsTime
"@T"
CDeviceConstantsType
"@3"
CDeviceConstantsUnit
"@U"
CDeviceConstantsWire
"@Wire"
In Section Instructions Examples Basics History Extra
Chapter
ChapterSpecification
"@C"
ConnectorConstants
ConnectorConstants3DConstruction
"K"
ConnectorConstantsElo
"E"
ConnectorConstantsEBlock
"B"
ConnectorConstantsFeed
"D"
ConnectorConstantsFluid
"U"
ConnectorConstantsFup
"F"
ConnectorConstantsGeneral
"G"
ConnectorConstantsInfraStructure
"I"
ConnectorConstantsIOInput
"I"
ConnectorConstantsIOInputAndIntrinsicalSafety
"J"
ConnectorConstantsIOIntrinsicalSafety
"S"
ConnectorConstantsIONeutral
"N"
ConnectorConstantsIOOutput
"O"
ConnectorConstantsIOOutputAndIntrinsicalSafety
"P"
ConnectorConstantsPotential
"L"
ConnectorConstantsProcess
"P"
ConnectorConstantsRI
"R"
ConnectorConstantsSignal
"S"
DetailClass
Table 3:
DetailClassActionBlock
"9"
DetailClassBlackbox
"Z"
DetailClassCabinet
"N"
DetailClassCable
"C"
DetailClassCategorie
"6"
DetailClassConnectionbreak
"B"
DetailClassConsumer
">"
DetailClassContactor
"X"
DetailClassDataPoint
"d"
DetailClassDecisionTable
"J"
DetailClassEquipment
"A"
DetailClassFieldSignal
"f"
DetailClassFitting
"U"
DetailClassGrafic
"0"
DetailClassImport
"5"
DetailClassInstrument
"W"
DetailClassLocalVariable
"a"
DetailClassLogPotential
"G"
DetailClassMaterialPointer
"*"
DetailClassMaterialStream
"#"
DetailClassNetaddress
"D"
DetailClassNozzle
"<"
DetailClassPipe
"Q"
DetailClassPlug
"L"
DetailClassPlugStrip
"P"
DetailClassPotential
"O"
DetailClassQueryCDevice
"2"
DetailClassQueryConnector
"F"
DetailClassQueryDevice
"1"
DetailClassQueryDocument
"3"
DetailClassQueryGeneral
":"
DetailClassQuerySpecification
"4"
DetailClassRack
"R"
DetailClassRoom
"M"
DetailClassScript
"K"
DetailClassSegment
"E"
DetailClassSlot
"Y"
DetailClassStep
"7"
DetailClassSymbol
"H"
DetailClassTerminal
"T"
DetailClassTerminalStrip
"S"
DetailClassTransition
"8"
DetailClassVisualisationElement
"V"
DetailClassWire
"I"
DeviceClass
Table 4:
DeviceClassAccessory
"A"
DeviceClassAction
"J"
DeviceClassAssembly
"B"
DeviceClassCableChannel
"K"
DeviceClassConnector
"N"
DeviceClassCost
"C"
DeviceClassDevice
"D"
DeviceClassDeviceSpecification
"V"
DeviceClassDocument
"O"
DeviceClassDocumentGroup
"G"
DeviceClassElement
"E"
DeviceClassFunction
"F"
DeviceClassFunctionBlock
"H"
DeviceClassFunctionElement
"W"
DeviceClassGroup
"Z"
DeviceClassInformation
"I"
DeviceClassLocation
"L"
DeviceClassMaintenance
"M"
DeviceClassPosition
"P"
DeviceClassProcessing
"X"
DeviceClassQualityAssurance
"Q"
DeviceClassRevision
"R"
DeviceClassSignal
"S"
DeviceClassTime
"T"
DeviceClassTopLevel
"["
DeviceClassUnit
"U"
In Section Instructions Examples Basics History Extra
DocumentType
Table 5:
DocumentTypeAdobePDF
"AdobePDF"
DocumentTypeAutoCad
"AutoCAD"
DocumentTypeComosReport
"ComosReport"
DocumentTypeCXCDocument
"XML-Document"
DocumentTypeCXCTemplate
"XML-Template"
DocumentTypeExcel
"Excel"
DocumentTypeGeneralDocument
"GeneralDocument"
DocumentTypeImagineer
"Imag"
DocumentTypeIReport
"ComosIReport"
DocumentTypeLogiCad
"LogiCad"
DocumentTypeLogoCad
"LogoCad"
DocumentTypeMasterIReport
"ComosMasterIReport"
DocumentTypeMasterReport
"ComosMasterReport"
DocumentTypeOLE
"OLE"
DocumentTypePackage
"Package"
DocumentTypePowerPoint
"PowerPoint"
DocumentTypeReference
"Reference"
DocumentTypeTiff
"TIFF"
DocumentTypeTriga
"Triga"
DocumentTypeUndefine
"Undefine"
DocumentTypeWord
"Word"
InternalConnection_
InternalConnectionSeparatePotential
"@SepP"
InternalConnectionSeparateSignal
"@SepS"
IsPlaced
IsPlacedD3
"3D"
Belongs to IsPlaced
Layer
LayerInvisible
"~"
LayerInvisibleTpl
Tpl
Layers
LayersAllForGroup
"@"
LayersNoLayer
"/"
In Section Instructions Examples Basics History Extra
LicenseModule
LicenseModulAdmin
"Administrator"
LicenseModulAliasIRoute
"Alias-IRoute"
LicenseModulAspenPlusInterface
"AspenPlus-Interface"
LicenseModulBasis
"Basic"
LicenseModulChemCadInterface
"ChemCad-Interface"
LicenseModulCM
"ConceptualModeler"
LicenseModulDetailET
"Detail-ET"
LicenseModulDetailFUP
"Funktionsplan"
LicenseModulDetailMSR
"Detail-MSR"
LicenseModulDGNIMPORT
"DGN-Import"
LicenseModulEbsilonProInterface
"EbsilonPro-Interface"
LicenseModulEloCad
"Elektrotechnik"
LicenseModulESIGN
"eSign"
LicenseModulETAdvanced
"ET-Advanced"
LicenseModulEXF
"EXF"
LicenseModulExternalAccess
"External-Access"
LicenseModulFDA
"FDA"
LicenseModulFluid
"Fluid"
LicenseModulHTFSInterface
"HTFS-Interface"
LicenseModulHTRIInterface
"HTRI-Interface"
LicenseModulHYSYSInterface
"HYSYS-Interface"
LicenseModuliAge
"iAge"
LicenseModuliAgeDirect
"IAgeDirect"
LicenseModuliAgeEventManager
"IAgeEventManager"
LicenseModuliAgeShutDown
"IAgeShutDown"
LicenseModulInspection
"Inspection"
LicenseModulISO
"ISO"
LicenseModulMechatronic
"Mechatronic"
LicenseModulPE
"Prozess-Engineering"
LicenseModulPFD
"PFD"
LicenseModulPID
"PID"
LicenseModulPIDDocument
"PIDDocument"
LicenseModulPipeClassManager
"PipeClassManager"
LicenseModulPIPEEASY
"PipeEasy"
LicenseModulPPC
"PPC"
LicenseModulPQM
"PQM"
LicenseModulProIIInterface
"ProII-Interface"
LicenseModulProMaxInterface
"ProMax-Interface"
LicenseModulReportToExcel
"ReportToExcel"
LicenseModulReportToWord
"ReportToWord"
LicenseModulRI
"RI-Schema"
LicenseModulRMO
"RMO"
LicenseModulRuplan
"Ruplan"
LicenseModulSequenceDesigner
Obsolete.
LicenseModulSystem
"System"
LicenseModulSystemInternal
"SystemInternal"
LicenseModulTestDemo
"TESTDEMO-Modul"
LicenseModulTRMO
"TRMO"
LicenseModulUniSimDesignInterface
"UniSimDesign-Interface"
LicenseModulViewESign
"VieweSign"
LicenseModulViewing
"Viewing"
LicenseModulVIPER
"Viper"
LicenseModulXMPlantInterface
"XMPlant-Interface"
Login_
Table 7:
Login_Oracle
"[ORACLE]"
Login_SQL2000
"[SQL - 2000]"
Login_SQLServer
"[SQL - SERVER]"
Reports
ReportsDirectory
""
RevisionArchive
Table 8:
RevisionArchiveAdobePDF
"AdobePDF"
RevisionArchiveDestiller
"PDF"
RevisionArchivePDFFactory
"PDF_FACTORY"
RevisionArchivePDFWriter
"PDF_WRITER"
RevisionArchiveTIFF
"TIFF"
Revisions
RevisionsDirectory
"Revisions"
RevisionType
Table 9:
RevisionsNoRevision
"NO_REVISION"
RevisionsStandardRevision
"STANDARD_REVISION"
Table 10:
RevisionsBlackBox
"B"
RevisionsFitting
"F"
RevisionsPipe
"P"
RevisionsSymbol
"S"
ScanDevices
ScanDevicesStopDocObj
"#"
ScanDevicesFromD3
"@D3"
ScanDevicesFromDefault
"@Default"
ScanDevicesFromSI
"@SI"
SpecificationType
SpecificationTypeAlphaNumeric
"A"
SpecificationTypeDate
"D"
SpecificationTypeNumeric
"N"
SpecificationTypeSignature
"S"
SpecificationTypeText
"C"
SpecLink
SpecLinkOwnLinkObject
"@S@"
StaticLinkOperator
Table 11:
StaticLinkOperatorEqual
"A"
StaticLinkOperatorGreater
"D"
StaticLinkOperatorGreaterOrEqual
"E"
StaticLinkOperatorInRange
"F"
StaticLinkOperatorLess
"B"
StaticLinkOperatorLessOrEqual
"C"
StaticLinkOperatorOuterRange
"G"
StaticLinkOperatorScript
"I"
StaticLinkOperatorUnEqual
"H"
Template
Table 12:
TemplateLocation
"@Template"
TemplateSpecification
"@Tpl"
TemplateSpecificationMainObject
"@TpIM"
TemplateUnit
"@Template"
Various
CDeviceSystemProject
"S"
ComosSystemProject
"@"
ComosSystemProjectName
"@COMOSSYSTEM"
UserSystemProject
"V"
WorkingProject
"P"
XLocation
"LOCATIONORDEVICELOCATION"
XUnit
"UNITORDEVICEUNIT"
ClassificationTypes
ClassificationTypes
FunctionalClassification
FunctionalUserClassification
HierarchicalClassification
HierarchicalUserClassification
4
In Section Instructions Examples Basics History Extra
ComosSystemConstants
Admin
BackPointer_Behaviour_
CaseType
CDevice
CDeviceBySystemFullName_Mode_
CDeviceCreateOption
ChangedObjectsCode
ClipboardError
ComosModul
ComosModule
ComosNull
Connect
ConnectorLabelMode
Conector_IsConsistent_
CopyManagerMode
CrossProject
Current
DatabaseOperationsOverlayMode
DatabaseMaintenance
DBPriority_
DBSearch_Property_
DDMDocType
DecimalDelimiter_
Delete_Error_Objects_Mode_
DeviceCreateMode
DocError_
DocObjCopyMode
DocTypeMode
DocumentConstants
DocumentMode
Error
ErrorObjectsMode
ExtendedRight_
FunctionRight
GeneratorType
Implementation_Behaviour_
ImportOverlay
InheritableFlagState
InheritCheckInError
InheritMode
IsValueValid
LicenseModule
Link
MassOperation_
NRGCheck
SpecInheritance
ObjectHistoryStatus_
ObjectMerge_
ObjectMerge_Property_
ObjectMerge_SubObject_
ObjectOverlayBehaviour_
ObjectRevisionStatus_
Object_Get_Overlays
Operator
OverlayCheckDuplicateNames
OverlayCheckOpenRevisions
OverlayCheckPlantRevisions
OverlayCheckStarVersions
OverlayOpenRevisionType
OverlayStatus_
Overlay_DBStatus_
Overlay_Delete_Mode_
Overlay_Lock_Mode_
Performance_Value_Col_Load_
ProductRequestOperator
ProductRequest_Behaviour_
ProductValue
Project
Range
Range_
ScientificNotation
Reference_Behaviour_
RegisterForReleaseStaticCollectionsMode
ReleaseCheck
Resource_Type_
Rights
RollbackStateEntry_Mode_
RunMode
Scan_CDevice_
Scan_Documents_
ScanDocumentsMode
ScanManager_
ScriptBlock
SignalMode
SpecD3Mode
SpecInheritance
StandardTable_Type_
StartMode_
StatusDirectionMode
StatusSetMode
System_Status_
System_Status_Consolidation_
System_Status_Overlay_
System_Status_ReadOnly_
TransferProjectMode
WfTaskObject
WorkflowObserved
Active_Mode
Active_Mode_Inactive
Active_Mode_Normal
0
In Section Instructions Examples Basics History Extra
Admin
AdminRight
BackPointer_Behaviour_
BackPointer_Behaviour_Not_Relevant
BackPointer_Behaviour_Show
CaseType
CaseTypeDevice
2
CaseTypeProject
CDevice
CDeviceDefaultVirtual
19998 (&H4E1E)
CDeviceInfiniteVirtuals
19999 (&H4E1F)
CDeviceBySystemFullName_Mode_
CDeviceBySystemFullName_Mode_CDevice
CDeviceBySystemFullName_Mode_CDeviceOwn
CDeviceBySystemFullName_Mode_OwnCDevice
1
CDeviceBySystemFullName_Mode_OwnProject
CDeviceCreateOption
CDeviceCreateOptionBlock
CDeviceCreateOptionGroup
CDeviceCreateOptionObject
CDeviceCreateOptionStructureGroup
ChangedObjectsCode
ChangedObjectsCodeCollection
2
ChangedObjectsCodeCVS
ChangedObjectsCodeExtern
ChangedObjectsCodeObject
ChangedObjectsCodeOverlayStatus
ChangedObjectsCodeSMS
ClipboardError
ClipboardErrorCheckedIn
306
ClipboardErrorCollection
300
ClipboardErrorInheritCheckInNotEnabled
308
ClipboardErrorNoObject
305
ClipboardErrorNoRights
303
ClipboardErrorOwnerNotInCurrentProject
309
ClipboardErrorOwnerTemporary
311
ClipboardErrorSoftDeleted
310
ClipboardErrorTemporary
301
ClipboardErrorWrongOwner
304
ClipboardErrorWrongProject
302
ClipboardErrorWrongSpecType
307
In Section Instructions Examples Basics History Extra
ComosModul
ComosModule
ComosModuleAdmin
ComosModuleAliasIRoute
20
ComosModuleBasic
ComosModuleCM
23
ComosModulConstructionAssistant
45
ComosModuleDetailFUP
ComosModuleDetailMSR
ComosModuleDGNImport
27
ComosModuleEloCad
ComosModuleeSign
25
ComosModuleETAdvanced
14
ComosModuleEXF
15
ComosModuleExternalAccess
30
ComosModuleFDA
24
ComosModuleFluid
31
ComosModuleiAge
22
ComosModulInspection
43
ComosModuleISO
21
ComosModulePE
ComosModulePFD
ComosModulePID
19
ComosModulePipeClassManager
28
ComosModulePipeEasy
26
ComosModulePPC
29
ComosModulePQM
32
ComosModuleReportToExcel
18
ComosModuleReportToWord
13
ComosModuleRI
ComosModuleRMO
11
ComosModuleRuplan
16
ComosModuleTRMO
12
ComosModuleVieweSign
33
ComosModuleViewing
10
ComosModuleViper
17
ComosNull
ComosModuleDouble
-999,9
ComosModuleInt
-9999
ComosModulPlantModeler
Connect
ConnectAlreadyConnected
ConnectInheritCheckInNotEnabled
ConnectOK
0
ConnectSameObject
12
ConnectWrongAttribute
11
ConnectWrongColour
ConnectWrongConnectionLenght
10
ConnectWrongCrossSection
ConnectWrongLayer
ConnectWrongNumber
ConnectWrongProject
ConnectWrongTypeInfo
ConnectWrongWire
3
ConnectorLabelMode
ConnectorLabelModeNormal
ConnectorLabelModeOwner
Conector_IsConsistent_
Conector_IsConsistent_Consistent
Conector_IsConsistent_Empty
Conector_IsConsistent_InConsistent
1
In Section Instructions Examples Basics History Extra
CopyManagerMode
CopyManagerModeAllReferences
CopyManagerModeOnlyCDeviceReferences
CrossProject
CrossProjectCopy_Error_MissingRights
-2
CrossProjectCopy_Error_ObjIsTemporary
-4
CrossProjectCopy_Error_WorkingLayersNotAllowed
-3
CrossProjectCopy_Error_WrongParam
-1
In Section Instructions Examples Basics History Extra
Current
Table 13:
CurrentComosVersion
running counter
CurrentDocumentVersion
running counter
DatabaseOperationsOverlayMode
Table 14:
ADatabaseOperationsOverlayModellOverlays
DatabaseOperationsOverlayModeApprovedArea
DatabaseMaintenance
DatabaseMaintenanceOptionFixCorruptedUIDs
0x0001
DatabaseMaintenanceOptionRemoveDeletedRecords
0x0010
DatabaseMaintenanceOptionFixClassifications
0x0004
DatabaseMaintenanceOptionFixEmptyStrings
0x0002
DatabaseMaintenanceOptionFixExtensionTables
0x0020
DatabaseMaintenanceOptionFixHierarchy
0x0040
0x0008
DatabaseMaintenanceOptionManyUpdatesExpected
0x4000
DBPriority_
Table 15:
DBPriority_High
DBPriority_Low
DBPriority_VeryHigh
DBPriority_VeryLow
Table 16:
DBSearch_Property_Description
DBSearch_Property_Description2
16
DBSearch_Property_Description3
32
DBSearch_Property_FileName
128
DBSearch_Property_Label
DBSearch_Property_Name
DBSearch_Property_Value
DBSearch_Property_XValue
64
In Section Instructions Examples Basics History Extra
DDMDocType
DDMDocTypeExported
Describes the internal type of a DVM document. Up to now the internal type was
stored as a number.
DDMDocTypeExported = 14
DDMDocTypeCheckedIn
Describes the internal type of a DVM document. Up to now the internal type was
stored as a number.
DDMDocTypeCheckedIn = 11
DDMDocTypeCheckedOut
Describes the internal type of a DVM document. Up to now the internal type was
stored as a number.
DDMDocTypeChekkedOut = 10
DDMDocTypeVersion
Describes the internal type of a DVM document. Up to now the internal type was
stored as a number.
DDMDocTypeVersion = 13
DecimalDelimiter_
DecimalDelimiter_Comma
DecimalDelimiter_Point
Delete_Error_Objects_Mode_
Table 17:
Delete_Error_Objects_Mode_D3
Delete_Error_Objects_Mode_Normal
DeviceCreateMode
DeviceCreateModeElements
DeviceCreateModeNormal
0
DeviceCreateModeSubElements
DocError_
DocError_ContainsInconsistentObjects
DocError_Copied
DocError_NoError
DocError_NotEvaluated
DocObjCopyMode
DocObjCopyModeDelete
1
DocObjCopyModeOldReference
DocObjCopyModeWithDevice
DocTypeMode
DocTypeModeExternalFile
DocTypeModeNoFile
DocumentConstants
DocumentConstantsMaster
2
DocumentConstantsNormal
DocumentConstantsReference
DocumentConstantsTemplate
DocumentMode
Table 18:
DocumentModeCDeviceOnly
DocumentModeCopy
DocumentModeReference
This makes it easier to manage referenced documents. Old: e.g. you needed a
document that in the units or document groups in the base project which was made
available via a base object. Thereafter you had a reference in the engineering
project to the document in the base project in the unit. New. The document can now
be actually located underneath a base object and the engineering document has a
reference to the document below the base object.
DocumentModeStructure
4
DocumentModeVariant
DocumentModeVirtual
Error
Table 19:
ErrorCDeviceIsReadOnlyByLayers
666
ErrorObjectsMode
ErrorObjectsModeCheck
ErrorObjectsModeExtern
3
ErrorObjectsModeSave
ErrorObjectsModeSync
ExtendedRight_
ExtendedRight_ProjectManagement
FunctionRight
FunctionRightCDevice
FunctionRightDebugger
FunctionRightDocumentCheckIn
32
FunctionRightDocumentCheckOut
64
FunctionRightLock
16
FunctionRightProduct
FunctionRightProjectOptions
GeneratorType
GeneratorTypeDescription
GeneratorTypeLabel
GeneratorTypeName
1
In Section Instructions Examples Basics History Extra
Implementation_Behaviour_
Implementation_Behaviour_No_Replace
Implementation_Behaviour_Replace
Implementation_Behaviour_Use_Project_Settings
ImportOverlay
ImportOverlayErrMsgNoValidProject
ImportOverlayErrMsgOK
Import OK.
ImportOverlayErrMsgWLNotValid
InheritableFlagState
InheritableFlagState_On
InheritableFlagState_Off
InheritableFlagState_Undefined
InheritCheckInError
InheritCheckInErrorInheritanceCDeviceOnly
406
InheritCheckInErrorInheritanceCDeviceSystemOnly
407
InheritCheckInErrorInheritanceCompleteleyBlocked
405
InheritCheckInErrorNoCurrentProject
402
InheritCheckInErrorNoOwner
401
InheritCheckInErrorNoRight
400
InheritCheckInErrorNotInCurrentProject
403
InheritCheckInErrorObjectWihtSameName
404
InheritMode
InheritModeNoCDeviceOnly
2
InheritModeNoInheritance
InheritModeNormal
IsValueValid
IsValueValidExNormal
IsValueValidExNoScript
LicenseModule
LicenseModulConstructionAssistant
LicenseModulInspection
LicenseModulMotionX
LicenseModulPlantModeler
Link
LinkConnect
LinkEvalExpression
LinkMappingTable
LinkNone
10
LinkObjNavigator
LinkOwner
2
LinkScript
LinkScriptValue
LinkSelf
LinkSpec
MassOperation_
MassOperation_Dont_Show_Progress
MassOperation_Show_Progress
NRGCheck
NRGCheckEndValueCharacterNotFoundInAlphabet
133
NRGCheckOk
129
NRGCheckStartEndValueOrderIncorrect
132
NRGCheckStartValueCharacterNotFoundInAlphabet
130
NRGCheckStartValueIsEmpty
131
SpecInheritance
MaxExtendedInfoSize
200
ObjectHistoryStatus_Backup
ObjectHistoryStatus_NoBackup
ObjectMerge_
ObjectMerge_Default_Mode
ObjectMerge_Property_
ObjectMerge_Property_DontReplaceEmpty
32
ObjectMerge_Property_DontSaveGUnitGLocation
0x0000
Is part of the "Merge objects" functionality. You can find additional information
on this topic in the "COMOS Platform Administration" manual, keyword "Merging
objects".
ObjectMerge_Property_MasterPriority
ObjectMerge_Property_ReplaceEmpty
ObjectMerge_Property_SaveGUnitGlocation
0x0800
Is part of the "Merge objects" functionality. You can find additional information
on this topic in the "COMOS Platform Administration" manual, keyword "Merging
objects".
ObjectMerge_Property_SlavePriority
16
ObjectMerge_SubObject_
ObjectMerge_SubObject_FromOneSide
64
ObjectMerge_SubObject_MasterPriority
ObjectMerge_SubObject_Mix
0
ObjectMerge_SubObject_MixWithPriority
128
ObjectMerge_SubObject_MixWithRename
256
ObjectMerge_SubObject_PureMix
ObjectMerge_SubObject_SlavePriority
512
ObjectOverlayBehaviour_
ObjectOverlayBehaviour_Release
ObjectOverlayBehaviour_Relevant
ObjectOverlayBehaviour_SaveHistory
ObjectOverlayBehaviour_SaveInheritedHistory
2
ObjectRevisionStatus_
ObjectRevisionStatus_Changed
ObjectRevisionStatus_Deleted
ObjectRevisionStatus_New
ObjectRevisionStatus_NoChange
Object_Get_Overlays
Object_Get_OverlaysAll
0
Object_Get_OverlaysAll_Predecessors
Object_Get_OverlaysAll_Successors
Object_Get_OverlaysDirect_Predecessor
Object_Get_OverlaysDirect_Successors
Operator
OperatorEqual
OperatorGreater
GreaterOrEqual
OperatorLess
2
OperatorLessOrEqual
OperatorLike
OverlayCheckDuplicateNames
OverlayCheckDuplicateNamesDefault
OverlayCheckDuplicateNamesOFF
OverlayCheckDuplicateNamesON
OverlayCheckOpenRevisions
OverlayCheckOpenRevisionsDefault
0
OverlayCheckOpenRevisionsIgnore
OverlayCheckOpenRevisionsOnly
OverlayCheckPlantRevisions
OverlayCheckPlantRevisionsDefault
OverlayCheckPlantRevisionsIgnore
OverlayCheckPlantRevisionsOnly
OverlayCheckStarVersions
OverlayCheckStarVersionsDefault
0
OverlayCheckStarVersionsNo
OverlayCheckStarVersionsYes
OverlayOpenRevisionType
OverlayOpenRevisionTypeCreated
OverlayOpenRevisionTypeDefault
OverlayOpenRevisionTypeOpen
OverlayStatus_
OverlayStatus_ChangedInOverlayStatus
2
OverlayStatus_ChangeInStructure
OverlayStatus_ChangeInSubObjects
12
OverlayStatus_Collision
OverlayStatus_CollisionDeleteInStructure
10
OverlayStatus_CollisionDeleteInSubObjects
OverlayStatus_CollisionInStructure
OverlayStatus_CollisionInSubObjects
OverlayStatus_CollisionSoftDeleteInStructure
16
OverlayStatus_CollisionSoftDeleteInSubObjects
17
OverlayStatus_Collision_Deleted
7
OverlayStatus_DeletedInOverlay
OverlayStatus_DeletedInPredecessor
11
OverlayStatus_DoNotReleaseObject
18
OverlayStatus_Moved
13
OverlayStatus_NewInOverlay
OverlayStatus_NoChange
OverlayStatus_NotRelevant
-1
OverlayStatus_ObjectInBothOverlays
23
OverlayStatus_ObjectInCompareOverlay
22
OverlayStatus_ObjectInConsistent
24
OverlayStatus_ObjectInCurrentOverlay
21
OverlayStatus_ObjectInNoneOverlay
20
OverlayStatus_ObjectNotOverlayRelevant
19
OverlayStatus_SoftDeleteInStructure
14
OverlayStatus_SoftDeleteInSubObjects
15
Overlay_Status_System_Overlay_Relevant_No
Overlay_Status_System_Overlay_Relevant_Yes
The method then returns if an object has a SystemType that is relevant to working
layers.
Overlay_DBStatus_DeleteFailed
Overlay_DBStatus_InProgress
Overlay_DBStatus_Locked
Overlay_DBStatus_OK
Overlay_DBStatus_ReleaseFailed
Overlay_Delete_Mode_
Overlay_Delete_Mode_Default
Overlay_Delete_Mode_Delete
1
Overlay_Delete_Mode_Keep
Overlay_Lock_Mode_
Overlay_Lock_Mode_Default
Overlay_Lock_Mode_Lock
Overlay_Lock_Mode_NoLock
Performance_Value_Col_Load_
Performance_Value_Col_Load_Count_Last
Performance_Value_Col_Load_Count_Permanent
3
Performance_Value_Col_Load_Last
Performance_Value_Col_Load_Permanent
ProductRequestOperator
ProductRequestOperatorEqual
ProductRequestOperatorGreater
ProductRequestOperatorGreaterOrEqual
ProductRequestOperatorInRange
ProductRequestOperatorInString
11
ProductRequestOperatorLess
3
ProductRequestOperatorLessOrEqual
ProductRequestOperatorNone
ProductRequestOperatorOuterRange
ProductRequestOperatorPrefix
10
ProductRequestOperatorScript
12
Belongs to product data with operator. "Script" can now be specified as the
operator for attributes relavant to product data.
ProductRequestOperatorSubSet
ProductRequest_Behaviour_
ProductRequest_Behaviour_Normal
1
ProductRequest_Behaviour_Recursive
ProductValue
ProductValueValue
-1
Project
ProjectCDeviceSystem
ProjectComosSystem
ProjectUserSystem
RangeCheckMode_FullCheck
RangeCheckMode_NoChecking
1 (Alt)
Range_
Range_Specification_Min_Value_Max
Range_Specification_MinMax
1 (Alt)
Range_Specification_MinMax_Only
In other words, the range-specification can engage in two states: MinMax and
MinValueMax. The MinMax state is handled (covered) with the
"Specification_MinMax_Only" constant, and the "MinValueMax" state is handled with
the constants "Specification_MinMax" and "Specification_Min_Value_Max".
ScientificNotation
ScientificNotation_SuppressAlways
ScientificNotation_SuppressNever
ScientificNotation_SuppressNotZero
Trivalent project option for exponential display. Here: Use exponential display
when the value is not equal to zero, but is rounded to zero in the display.
Reference_Behaviour_
Input
Return value
Reference_Behaviour_For_Implementation
Reference_Behaviour_For_Location
Reference_Behaviour_For_Unit
Reference_Behaviour_No_Pointer_Valid
Reference_Behaviour_Some_Pointer_Valid
RegisterForReleaseStaticCollectionsMode
RegisterForReleaseStaticCollectionsModeExecute
1
RegisterForReleaseStaticCollectionsModeRegister
RegisterForReleaseStaticCollectionsModeRemove
ReleaseCheck
ReleaseCheckCollisions
32
ReleaseCheckDuplicateName
ReleaseCheckMultipleUsed
64
ReleaseCheckOpenRevisions
ReleaseCheckPlantRevisions
ReleaseCheckStarVersions
128
ReleaseCheckStopAtFirst
16
ReleaseCheckWithCreated
Resource_Type_
Resource_Type_GUI_All_Processes
Resource_Type_GUI_Current_Process
Resource_Type_User_Objects_All_Processes
Resource_Type_User_Objects_Current_Process
Rights
RightsAccessControl
128
RightsCreate
RightsDelete
RightsInspect
64
RightsRead
RightsReadNoInherit
256
RightsRelease
32
RightsRevision
16
RightsWrite
2
In Section Instructions Examples Basics History Extra
RollbackStateEntry_Mode_
RollbackStateEntry_Mode_Delete
RollbackStateEntry_Mode_Modified
RollbackStateEntry_Mode_New
RunMode
RunModeWebUser
20
Scan_CDevice_
Scan_CDevice_CDevices
Scan_CDevice_Elements
Scan_Documents_
Scan_Documents_Normal
Scan_Documents_All_Backpointers
Scan_Documents_Direct_Backpointers
ScanDocumentsMode
Scan_Documents_NameSystem
16
Scan_Documents_Normal
Scan_Documents_NoSystemDocGroups
64
Scan_Documents_Project
32
Scan_Documents_WithCLinks
128
Scan_Documents_WithDevBackPointer
Scan_Documents_WithDocBackPointer
Scan_Documents_WithDocDocuments
Scan_Documents_WithDocDocumentsAndTiff
Scan_Documents_WithSystemTemporary
256
In Section Instructions Examples Basics History Extra
ScanManager_
ScanManager_SystemType_All
ScriptBlock
ScriptBlockBeforeCheck
74
ScriptBlockCalcNextName
62
ScriptBlockCheckDelete
53
ScriptBlockCheckProductRequestValues
30
Belongs to the topic product data with operator. "Script" can be specified as the
operator for attributes relevant to product data.
ScriptBlockCheckStaticLinkValues
28
ScriptBlockCheckStatus1
10
ScriptBlockCheckStatus2
11
ScriptBlockCheckStatus3
12
ScriptBlockCheckStatus4
13
ScriptBlockCheckStatus5
14
ScriptBlockCheckStatus6
15
ScriptBlockCheckStatus7
26
ScriptBlockCheckStatus8
27
ScriptBlockCheckStatus9
28
ScriptBlockCheckStatus10
29
ScriptBlockCheckStatus11
30
ScriptBlockCheckStatus12
31
ScriptBlockCheckStatus13
32
ScriptBlockCheckTaskState
76
You can find additional information on this topic in the "COMOS Platform
Administration" manual, keyword ".net workflows".
ScriptBlockConnect
ScriptBlockCreateDocumentGroup
56
ScriptBlockCustomizeFileOpenDialog
16
ScriptBlockCustomizeTree
19
ScriptBlockDeleteWarning
54
ScriptBlockDisConnect
ScriptBlockExport
20
ScriptBlockFillComboList
15
ScriptBlockFilterRow
14
ScriptBlockGetConnectorLabel
25
ScriptBlockGetConnectorSpecification
ScriptBlockGetDisplayValue
ScriptBlockGetDisplayXValue
ScriptBlockGetLinkedSpecification
ScriptBlockGetLinkObject
17
ScriptBlockGetRoot
18
ScriptBlockGetScriptLinkObject
26
ScriptBlockGetScriptUnit
ScriptBlockGetScriptValue
ScriptBlockGlobal
ScriptBlockImport
21
ScriptBlockIsDocumentCheckInAllowed
57
ScriptBlockIsDocumentCheckOutAllowed
98
ScriptBlockIsImplementationValid
37
ScriptBlockIsLinkObjectValid
23
ScriptBlockIsLocationValid
36
ScriptBlockIsLockAllowed
63
ScriptBlockIsReleaseAllowed
59
ScriptBlockIsRevisionAllowed
65
ScriptBlockIsSignatureAllowed
25
ScriptBlockIsUnitValid
35
ScriptBlockIsValueValid
22
ScriptBlockNavigatorText
34
ScriptBlockOnBeforeDelete
68
ScriptBlockOnBeforeDocumentCheckIn
73
See OnBeforeDocumentCheckIn
ScriptBlockOnCatalogAttributeChanged
96
ScriptBlockOnChange
ScriptBlockOnChangeOther
12
ScriptBlockOnCheck
23
ScriptBlockOnClick
11
ScriptBlockOnCreateReferenceDocument
22
ScriptBlockOnDocObjCreate
ScriptBlockOnDocObjDelete
ScriptBlockOnDraw
18
ScriptBlockOnEdit
13
ScriptBlockOnEditCancel
99
ScriptBlockOnEditOK
16
ScriptBlockOnExecuteScriptActivity
77
You can find additional information on this topic in the "COMOS Platform
Administration" manual, keyword ".net workflows".
ScriptBlockOnImplementationCopy
71
See OnImplementationCopy
ScriptBlockOnImplementationSet
40
ScriptBlockOnLinkObjectSet
24
ScriptBlockOnLocationSet
39
ScriptBlockOnMenuCreate
19
ScriptBlockOnMenuExecute
20
ScriptBlockOnMove
69
ScriptBlockOnNotLongerReferencedByDevice
ScriptBlockOnProjectOpen
21
ScriptBlockOnReferencedByDevice
ScriptBlockOnReferencedByDocument
ScriptBlockOnRevision
17
ScriptBlockOnRevisionFirstStep
72
See OnRevisionFirstStep
ScriptBlockOnRevisionRelease
33
ScriptBlockOnSaveDone
75
ScriptBlockOnTemplateCreated
70
ScriptBlockOnTransmittalDocumentTakeAction
95
ScriptBlockOnShow
10
ScriptBlockOnSubMenuCreate
55
ScriptBlockOnUnitSet
38
ScriptBlockParameter
ScriptBlockSetScriptLinkObject
27
ScriptBlockSetScriptUnit
ScriptBlockSetScriptValue
7
ScriptBlockSetSuiQueryDefinitions
97
ScriptBlockStaticLinkSetValue
29
ScriptBlockUserBlock1
41
ScriptBlockUserBlock2
42
ScriptBlockUserBlock3
43
ScriptBlockUserBlock4
44
ScriptBlockUserBlock5
45
ScriptBlockUserBlock6
46
ScriptBlockUserBlock7
47
ScriptBlockUserBlock8
48
ScriptBlockUserBlock8
49
SignalMode
SignalModeNormal
SignalModeOwner
SpecD3Mode
SpecD3ModeD3Standard
SpecD3ModeNormal
-9999
In Section Instructions Examples Basics History Extra
SpecInheritance
SpecInheritanceCDevOnly
SpecInheritanceCDevSystemOnly
SpecInheritanceChapterCDevOnly
SpecInheritanceChapterCDevSystemOnly
SpecInheritanceCompletelyBlocked
SpecInheritanceHighPriority
SpecInheritanceInstanceProducing
SpecInheritanceInstanceProducingAndPartialBlocked
9
SpecInheritanceInvisible
10
SpecInheritanceNormal
SpecInheritancePartialBlocked
SpecInheritanceScript
11
SpecInheritanceXML
12
SpecInheritanceXMLHighPriority
13
See Attributes
SpecInheritanceXMLPartialBlocked
14
See Attributes
StandardTable_Type_
Table 20:
StandardTable_Type_Local
StandardTable_Type_Normal
StartMode_
StartMode_AdvancedES
128
StartMode_ComosET
StartMode_ComosPID
StartMode_ComosWeb
256
StartMode_ConstructionAssistant
16
StartMode_MotionX
32
StartMode_Normal
StartMode_Package
64
StartMode_Viewing
StatusDirectionMode
Table 21:
StatusDirectionModeDown
StatusDirectionModeObject
StatusDirectionModeUp
StatusSetModeDecrement
StatusSetModeIncrement
StatusSetModeObject
System_Status_
System_Status_History
117
System_Status_ObjectRevision
101
System_Status_Overlay
100
System_Status_Consolidation
123
System_Status_Consolidation_Object
122
System_Status_Consolidation_Structure
121
System_Status_Overlay_
Table 22:
System_Status_Overlay_Collision
105
System_Status_Overlay_Collision_Delete_In_Structure
109
System_Status_Overlay_Collision_Delete_In_SubObjects
108
System_Status_Overlay_Collision_In_Structure
107
System_Status_Overlay_Collision_In_SubObjects
106
System_Status_Overlay_Collision_SoftDelete_In_Structure
112
System_Status_Overlay_Collision_SoftDelete_In_SubObjects
113
System_Status_Overlay_Do_Not_Release_Object
114
System_Status_Overlay_ID
116
System_Status_Overlay_Object
102
System_Status_Overlay_Object_Not_OverlayRelevant
115
System_Status_Overlay_SoftDelete_In_Structure
110
System_Status_Overlay_SoftDelete_In_SubObjects
111
System_Status_Overlay_Structure
103
System_Status_Overlay_SubObjects
104
System_Status_ReadOnly_
Table 23:
System_Status_ReadOnly_Locked
501
System_Status_ReadOnly_No_SoftDeleteFilter
508
System_Status_ReadOnly_No_WriteRight
506
System_Status_ReadOnly_NotInCurrentProject
502
System_Status_ReadOnly_OverlayLocked
505
System_Status_ReadOnly_RO_Layer
504
System_Status_ReadOnly_SoftDeleted
503
System_Status_ReadOnly_SystemTemporary
500
System_Status_ReadOnly_Viewing
507
TransferProjectMode
TransferProjectModeAllUsers
TransferProjectModeOneUser
WfTaskObject
WfTaskObjectLocations
Controlson which objects the workflow scripts are offered. Current value is: "@20 >
B40" and "PQM".
You can find additional information on this topic in the "COMOS Platform
Administration" manual, keyword ".net workflows".
WorkflowObserved
WorkflowObservedConnectors
WorkflowObservedDevices
WorkflowObservedDocObjs
32
WorkflowObservedDocuments
WorkflowObservedSpecifications
16
WorkflowObservedThis
You can find additional information on this topic in the "COMOS Platform
Administration" manual, keyword ".net workflows".
ComosSystemTypes
SystemType
SystemTypeCAccessory
16
SystemTypeCase
39
SystemTypeCDevice
13
SystemTypeCLink
20
SystemTypeConnector
21
SystemTypeCSpecificationSet
15
SystemTypeDevice
SystemTypeDevSymbol
18
SystemTypeDocObj
12
SystemTypeDocument
29
SystemTypeDocumentType
30
SystemTypeLanguage
40
SystemTypeLinkInfo
105
SystemTypeLocation
11
SystemTypeObject
1
SystemTypeObjectRevision
41
SystemTypePhysUnit
32
SystemTypePhysUnitGroup
31
SystemTypePickList
27
SystemTypePickListEntry
28
SystemTypePosition
SystemTypeProject
SystemTypeRight
38
SystemTypeSpecification
10
SystemTypeSpecificationSet
7
SystemTypeStandardTable
22
SystemTypeStandardValue
23
SystemTypeTempCollection
102
SystemTypeTimestamp
34
SystemTypeUnit
SystemTypeUser
33
SystemTypeUserGroup
37
SystemTypeWorkingOverlay
42
SystemTypeWorkSet
101
In Section Instructions Examples Basics History Extra
ConsolidationShadowObjectLocation
Constants
ConsolidationStatusValue
Constants
Undocumented, because these constants cannot be used.
dbType
dbType constants
Access
Current
- 1
Oracle
SQLServer
2
In Section Instructions Examples Basics History Extra
PopupMenuConstants
ppm
ppmCOPY
"COPY"
ppmCUT
"CUT"
ppmDELETE
"DELETE"
ppmMARK
"MARK"
ppmNAVIGATE
"NAVIGATE"
ppmNEW
"NEW"
ppmOPEN
"OPEN"
ppmPASTE
"PASTE"
ppmPASTEREF
"PASTEREF"
ppmPROPERTIES
"PROPERTIES"
SoftDeleteMode
Constants