Repository CreateObject Method

See Also

This method creates a new Repository object of the specified type.

Syntax

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 open Repository instance 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.

Remarks

Use this method to create the first version of a new Repository object. To create subsequent versions of a Repository object versions, use the CreateVersion method of the RepositoryObjectVersion object.