Chapter 9 Accessing objects using VBScript


Consolidating repository documents

There are two ways to consolidate a repository document using VBScript:

Generic way

To consolidate any repository document you must:

Example

set C = RepositoryConnection
C.open
C.ConsolidateDocument ("c:\temp\test.txt")

Specific way

To consolidate a RepositoryModel document or a RepositoryReport document you can use one of the following methods:

Example

Set model = CreateModel(PdOOM.cls_Model, "|Diagram=ClassDiagram")
set C = RepositoryConnection
C.Open
model.ConsolidateNew c

Example

set C = RepositoryConnection
C.Open
model.Consolidate

 


Copyright (C) 2005. Sybase Inc. All rights reserved.