This method creates a new Repository object of the specified type.
Set variable = object.CreateObject( typeId, objectId )
The CreateObject method syntax has the following parts.
| Part | Description | 
| variable | Declared as a RepositoryObject. Receives the new Repository object. | 
| object | The object that represents the workspace through which this program is interacting with the Repository. | 
| typeId | The type of the new object; that is, the object identifier of the object definition to which the new object conforms. | 
| objectId | The object identifier to be assigned to the new object. Either pass in ObjID_NULL or do not supply this optional parameter to have the Repository assign an object identifier for you. | 
This method creates a new object in the Repository, but it does not insert the newly created object into the workspace in whose context you are operating.