Object model overview


Your Ad Here


Topsolid online Help Index

A simplified object model is presented in this diagram.

 

The root object Application gives access to all of the internal objects.

 

It contains three main collections : the Contexts, the Extensions, and the Documents.

 

The Contexts collection contains all the available contexts, with at least the TopSolid standard ContextDesign and ContextDraft, and possibly more depending on the installed TopSolid based applications.

 

There is one context per type of document supported. The context allows controlling the management of this particular type of document, it is also used to create new documents of this type with specific arguments (unlike with the Add method of the Documents collection).

 

The Extensions collection contains all the available extensions, it is empty if no TopSolid add-on has been installed.

 

The Documents collection contains all the documents loaded in memory, which is all the displayed documents (with Visible property set to True) plus all their directly or indirectly referenced documents.

 

All documents share the same common IDocument interface to deal with general use. To reach their specific features, it is needed to perform a cast to another interface (IDocumentDesign for DocumentDesign object, ...).

 

Some TopSolid based application may not expose any extra interface to give access to the specific features of the types of documents they support, in which case driving them though Automation will be limited to what is available in IDocument.

 

Each Document, whatever its type is, contains at least one collection accessible through the common IDocument interface : the Elements collection.

 

The Elements collection contains the actual elements that hold the specific model representation of the document.

 

All elements share the same common IElement interface to deal with general use, to reach their specific features, it is needed to perform a cast to another interface (IParameter for a Parameter object, ...).

 

Topsolid online Help Index

Your Ad Here