TCL Command ABASCHEDULES

Inhalt

Index

Syntax

array set schedules [ABASCHEDULES   GET   LIST]

set schedID   [ABASCHEDULES   GET   SCHEDULE   schedname]

Description

Query of the schedules in the analysis model

Query the existence of a specific schedule

Argument

Dimension

Meaning

GET

KEYWORD

Query data

LIST

KEYWORD

Query of the list of schedules

SCHEDULE

KEYWORD

Query of the schedule ID or its existence

schedname

TEXT

Name of schedule (arg2 = SCHEDULE)

Return array for [ABASCHEDULES GET LIST]

Array item

Dimension

Meaning

error

INT

Error code

info

TEXT

Error information

first

OBJID

Object-ID of the first list element

last

OBJID

Object-ID of the last list element

count

INT

Number of list elements

Return for [ABASCHEDULES GET SCHEDULE schedname]

Return

Dimension

Meaning

schedID

OBJID

schedule-ID or 0

Scopes

All

Examples

# get list of schedules

array set schedules [ABASCHEDULES GET LIST]

if { $schedules(error) != 0 } { ABMERROR "Error: " $schedules(error) " Info: " $schedules(info) }

if { $schedules(count) > 0 } {

    set ID $schedules(first)

    for { set isched 0 } { $isched < $schedules(count) } { incr isched } {

        if { $isched > 0 } { set ID [OBJNEXT $ID] }

        array unset sched

        array set sched [ABASCHEDULE $ID GET]

        ABMINFO " Schedule " $sched(name) ":"

        ABMINFO " --------------------------"

        foreach {key value} [array get sched] {

            ABMINFO " " $key " = " $value

        }

    }

}

The list of schedules is queried. The list is run through in a for-loop and the data of the respective schedule object is logged.



Allplan

(C) ALLPLAN GmbH

Privacy policy