Document Object Properties

The Document object provides the following properties, most of which are read-only. To affect some read-only properties requires user interaction or custom event procedures.

ClosedBriefCase Property

An object that represents a briefcase. If the parent object is a document, this is the briefcase to which the document is locked. If the parent object is a report (transmittal sheet), this is the briefcase that contains the report. Read-only.

Syntax

BriefCase As IASBriefCase

ClosedCanEditProperty Property

True if the user can edit this property, False if editing is not allowed. Read-only.

Syntax

CanEditProperty As Boolean

ClosedConcurrentEngineeringRuleProperty Property

Specifies the way in which documents are locked when waiting lists are in use for project copies. The constant AS_CE_Rule contains enumerations of behaviors that you can specify for a project copy:

  • AS_CER_DEFAULT — default behavior

  • AS_CER_MERGE_WF — current behavior

  • AS_CER_NOT_ALLOWED — allow only one project copy

  • AS_CER_SERIAL_WITH_RELEASE — allow multiple project copies

  • AS_CER_SERIAL_WITH_TRANSFER — reserved for future use

Note:

If you want to change the concurrent engineering rule for a document that is in progress using script, you must add the ConcurrentEngineeringRule property to the SafeProperties registry setting.

Syntax

CanEditProperty As AS_CE_RULE

ClosedCreated Property

The date and time when the document was created. Read-only.

Syntax

Created As Date

ClosedCreatedBy Property

An object that represents the person who created the document. Read-only.

Syntax

CreatedBy As IASUser

ClosedCWFManagers Property

The names of the users assigned as the workflow definition managers of the document. Read-only.

Syntax

CWFManagers As String

ClosedCWFState Property

An object that represents the current workflow definition state of the document. Read-only.

Syntax

CWFState As IASWorkflowState

ClosedCWFTodoPersons Property

The names of the users assigned as the to-do persons of the document. Read-only.

Syntax

CWFTodoPersons As String

ClosedDocumentType Property

An object that represents the document type of the document. Read-only.

Syntax

DocumentType As IASDocumentType

ClosedFileName Property

The file name (Display Name property) of the document or briefcase.

Syntax

FileName As String

Remarks

For events to occur when setting this property for a document, the RenameEvents setting in the [ScriptEvents] section on the Application Integration tab of Application Settings in Configurator must be set to Y. The default is N.

ClosedFileType Property

The file type (as registered in Windows on the current computer) of the document. Read-only.

Syntax

FileType As String

ClosedForgeURL property

The URL to view the current document in Autodesk Forge. Can be modified with ChangeForgeURL Method.

Syntax

ForgeURL As String

ClosedGlobalID Property

The ID of the document that is unique among all vaults. Read-only.

Syntax

GlobalID As String

ClosedHasIncomingReferences Property

True if the document has incoming Meridian references. Read-only.

Syntax

HasIncomingReferences As Boolean

ClosedHasOutgoingReferences Property

True if the document has outgoing Meridian references. Read-only.

Syntax

HasOutgoingReferences As Boolean

ClosedHasRedlines Property

True if the document has Meridian redlines attached to it. Read-only.

Syntax

HasRedlines As Boolean

ClosedHasRendition Property

This property is now obsolete. Use RenditionStatus Property instead.

ClosedHasRenditionRedlines Property

True if the rendition of the document has Meridian redlines attached to it. Read-only.

Syntax

HasRenditionRedlines As Boolean

ClosedHybridParts Property

A list of the hybrid part document names.

Syntax

HybridParts() As Array

ClosedID Property

Returns the ID of the current object. The value is unique within the current vault. For the ID value that is unique among all vaults, retrieve the GlobalID property value, if available. Read-only.

Syntax

ID As String

ClosedImportType Property

Long integer that represents one or more AS_IMPORTTYPE constants. Available only for new documents. Read-only.

Syntax

ImportType As AS_IMPORTTYPE

ClosedIsChangedByPortal Property

True if the document returned from Meridian Portal is changed. Read-only.

Syntax

IsChangedByPortal As Boolean

Example

This sample code releases a quick change if the document was not changed in Meridian Portal.

Copy
Sub ImportPackage_ChangeState (package, previousState, User)
    Dim Doc, arrDoc, i   
    If package.Status = AS_IPS_Imported Then
           arrDoc = Package.GetDocuments()   
        For i = 0 To Ubound(arrDoc)
             Set Doc = Vault.GetDocument(arrDoc(i))
            If Doc.Property("AMDocumentPropertySet._ISCHANGEDBYPORTAL") = False Then
                ' revoke quick change
                Doc.RevokeChange
            End If           
           Next    
    End If  
End Sub

ClosedIsUnderRevision Property

True if a working copy exists for the current document. Read-only.

Syntax

IsUnderRevision As Boolean

ClosedIsUniqueValue Property

True if the specified value for the specified document property is unique within the current vault. Read-only.

Syntax

IsUniqueValue(PropertyName, Value) As Boolean

ClosedLayerTranslationTable Property

Layer translation table to use for translating the document layers when generating a PDF rendition from the document. Translation tables are created by your administrator in the Meridian Enterprise Server Administration Console.

Syntax

LayerTranslationTable As String

ClosedLayoutsNames Property

Gets the names of the page layouts in the current document.

Syntax

LayoutsNames As String

Returns

An array of names as strings.

Remarks

Use this property to retrieve the layout names to present to the user for selecting the layouts to render with the MeridianQueue.RegisterDocument property. Pass the selected layout names in the publishOptions parameter using the _RENDERLAYOUTS_ option described in the AccruentMeridian Enterprise Server Administrator's Guide.

This property can also be used to access the data in multiple title blocks defined in a single drawing. For an example of usage, see DocCADLink_AfterReadMTBProperties event.

This property is intended for AutoCAD and Revit drawings only. If the document does not contain multiple title blocks or sheet properties with the names configured in the application link (AutoCAD or Revit tabs, respectively) settings of the vault configuration, the returned array is empty.

ClosedLockingProjectCopy Property

 A Document object that represents the project copy that is locking the selected document. Read-only.

Syntax

LockingProjectCopy As IASDocument5

ClosedMasterDocument Property

A Document object that represents the master document from which the current project copy document was copied. Read-only.

Syntax

MasterDocument As IASDocument5

ClosedModified Property

The date and time when the document content was last modified. Read-only.

Syntax

Modified As Date

ClosedModifiedBy Property

An object that represents the person who last modified the document content. Read-only.

Syntax

ModifiedBy As IASUser

ClosedParentFolder Property

An object that represents the parent folder of the document. Read-only.

Syntax

ParentFolder As IASFolder3

ClosedParentProject Property

A Folder object that represents the parent project that contains the current project copy document. Read-only.

Syntax

ParentProject As IASFolder3

ClosedPath Property

The relative path of the document from the root of the vault. Read-only.

Syntax

Path As String

ClosedProjectCopy Property

An object that represents a project copy of the selected document. Read-only.

Syntax

ProjectCopy As IASProjectCopy

ClosedProperty Property

Gets or sets the value of the specified (String) document property.

Syntax

Property(Name) As Variant

ClosedRendition Property

The vault or Local Workspace path of the document and its rendition. Read-only.

Syntax

Rendition As String

ClosedRenditionStatus Property

The status of the current rendition stored in the vault. The property contains a long integer that represents one or more AS_RENDITION_STATUS constants. Read-only.

Syntax

RenditionStatus() As AS_RENDITION_STATUS

Remarks

When the content of the source document is replaced by a user, this property returns AS_RS_OUTDATED.

ClosedRevision Property

The revision number of the document.

Syntax

Revision As String

ClosedShareID Property

A server ShareID to get a transaction object from another process. Read-only.

Syntax

ShareID As String

ClosedSize Property

The file size of the document content. Read-only.

Syntax

Size As Long

ClosedStatusText Property

The text of the document's current workflow Status property.

Syntax

StatusText As String

ClosedUnderRevisionBy Property

An object that represents the user who owns the working copy of the document. Read-only.

Syntax

UnderRevisionBy As IASUser

ClosedVersionID Property

The ID of the current revision of the document that is unique within the current vault. Read-only.

Syntax

VersionID As String

ClosedWorkFlowAction Property

The action that the current to-do person is assigned to perform on the document. Read-only.

Syntax

WorkFlowAction As String

ClosedWorkFlowManager Property

An object that represents the user assigned to manage the current document type workflow of the document. Read-only.

Syntax

WorkFlowManager As IASUser

ClosedWorkflowState Property

An object that represents the current workflow state of the current workflow object. Read-only.

Syntax

WorkflowState As IASWorkflowState

ClosedWorkFlowTodoPerson Property

An object that represents the user assigned as the to-do person of the document in the current document type workflow state. Read-only.

Syntax

WorkFlowTodoPerson As IASUser

2021 R2