home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1998 October
/
PCWorld_1998-10_cd.bin
/
software
/
prehled
/
komix
/
DATA.Z
/
msumlimport.tcl
< prev
next >
Wrap
Text File
|
1997-09-24
|
1KB
|
47 lines
#---------------------------------------------------------------------------
#
# (c) Cayenne Software Inc. 1997
#
# File: @(#)msumlimport.tcl /main/titanic/5 24 Sep 1997
# Author: <generated>
# Description:
#---------------------------------------------------------------------------
# SccsId = @(#)msumlimport.tcl /main/titanic/5 24 Sep 1997
source [m4_path_name tcl cginit.tcl]
require msumlsumma.tcl
require msumlnamed.tcl
require msumleleme.tcl
require msumlassoc.tcl
require msumltypee.tcl
require msumlassro.tcl
require msumlmembe.tcl
require msumlattri.tcl
require msumlopera.tcl
require msumlparam.tcl
require msumlgenel.tcl
require msumltype.tcl
require msumlclass.tcl
require msumlgener.tcl
require msumlmodel.tcl
require msumlpacka.tcl
set rep [OleAutoObject new ObjectTeamMsRepUml.MSRepository]
set repFound 1
if [catch {set root [$rep openDB [lindex $argv 2]]}] {
set repFound 0
}
if !$repFound {
puts "Repository could not be opened."
puts "Not enough space left."
puts "Try again."
return
}
set model [$root getElementAsUML [lindex $argv 1]]
MS[$model property objectType] promote $model
$model ms2ot [lindex $argv 3]
set fileName [lindex $argv 0]
system "[m4_path_name bin otsh.exe] -f $fileName"
unlink $fileName
$model delete