Syntax
set dataids [ABRESULTS schedid LOADCASE GET]
set dataids [ABRESULTS schedid LOADCASE GET SORTBYDAY]
set dataids [ABRESULTS schedid LOADCASE GET lcname]
array set lcret [ABRESULTS schedid LOADCASE GET lcname ATDAY day]
Description
Query the list of load cases, sorted by name and day
Query the list of load cases, sorted by day and name
Query the list of load cases for all days for a defined name
Query of a specific load case, defined by its name and day
Argument |
Dimension |
Meaning |
schedid |
OBJID |
Schedule-ID |
LOADCASE |
KEYWORD |
Result type of query |
GET |
KEYWORD |
Query data |
SORTBYDAY |
KEYWORD |
Sorting the load cases in the return list |
lcname |
TEXT |
Load case name, the return is filtered |
ATDAY |
KEYWORD |
Load case result of a defined day is queried |
day||FINAL |
INT||KEYWORD |
Defined day or calculated end day (taking into account the end creeping) |
Return for [ABRESULTS ... GET ...], without specification of the day
Return |
Dimension |
Meaning |
dataids |
LIST |
List of Ids of load cases |
Return array for [ABRESULTS schedid LOADCASE GET lcname ATDAY day]
Array item |
Dimension |
Meaning |
error |
INT |
Error code |
info |
TEXT |
Error information |
id |
OBJID |
Data ID of load case |
Scopes
All
Examples
# Loadcases
# ---------
puts $outfile " Schedule 'Schedule1' Loadcases"
puts $outfile " ----------------------------------"
set dataIDs [ABRESULTS "Schedule1" LOADCASE GET]
set nloadcase [llength $dataIDs]
puts $outfile ""
puts $outfile " Loadcase Day Type Description"
puts $outfile " ---------------------------------------------------------"
set format1 " %-30s %6s %-6s %-40s"
foreach dataID $dataIDs {
array unset lc
array set lc [ABRESULT $dataID LOADCASE GET]
puts $outfile [format $format1 $lc(name) $lc(day) $lc(lctype) $lc(info)]
}
It is assumed that a text file outfile has been opened for writing . The results are written formatted into the text file.
The output is project-dependent and can look like the following, for example:
Schedule 'Schedule1' Loadcases
----------------------------------
Loadcase Day Type Description
---------------------------------------------------------
Braking-Xdir-minus FINAL NULL
Braking-Xdir-plus FINAL NULL
CS 49 CS
CS 78 CS
CS 107 CS
CS 127 CS
CS 2471 CS
.....
Output for script above.
# Loadcases
# ---------
puts $outfile " Schedule 'Schedule1' Loadcases"
puts $outfile " ----------------------------------"
set dataIDs [ABRESULTS "Schedule1" LOADCASE GET SORTBYDAY]
set nloadcase [llength $dataIDs]
puts $outfile " Day Loadcase Type Description"
puts $outfile " --------------------------------------------------------"
set format2 " %6s %-30s %-6s %-40s"
foreach dataID $dataIDs {
array unset lc
array set lc [ABRESULT $dataID LOADCASE GET]
puts $outfile [format $format2 $lc(day) $lc(name) $lc(lctype) $lc(info)]
}
It is assumed that a text file outfile has been opened for writing . The results are written formatted into the text file.
The output is project-dependent and can look like the following, for example:
Schedule 'Schedule1' Loadcases
----------------------------------
Day Loadcase Type Description
--------------------------------------------------------
1 CS-SUM CS
1 PT-SUM PT
1 SDL-SUM EMPTY
1 SUM EMPTY
1 SUM-beg EMPTY
1 SW-SUM EMPTY
21 SUM PERM
21 SW PERM
21 SW-SUM PERM
49 CS CS
.....
Output for script above.
|
(C) ALLPLAN GmbH |
Privacy policy |