Comment

A Comment object is of type PsObject and represents a comment used in Vault Change Orders.

The $comment object is dynamically generated based on the properties which are fixed by the Vault client. Therefore all properties are directly available on this object.
The properties are named the same as in Vault, including whitespaces. If you want to access such a property you have to enclose it in single quotes.

Syntax

1
$comment.Message

The following properties are always added :

Type

Name

Description

string[]

Attachments

Array of the files (the FullPath) attached to the comment.

Localization

$powerVaultComment is supporting this feature:

  • all active properties can be accessed via the displayName

  • all active properties can be accessed via _SystemName

except: the ones with guids (=user defined)

Examples

Comment-object on an english environment:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
Created By              : Administrator
_CreateUserName         : Administrator
State                   : Create
_State                  : Create
Subject (CO)            : We require a fire heater
_ForumMessageSubject    : We require a fire heater
Message                 : The client requires a fire heater as well now!
_ForumMessageText       : The client requires a fire heater as well now!
Created                 : 5/30/2017 10:16:53 AM
_ForumMessageCreateDate : 5/30/2017 10:16:53 AM
Created (Date Only)     : 5/30/2017 12:00:00 AM
Created (Time Only)     : 1/1/0001 10:16:00 AM
Id                      : 15272
MasterId                : 0
PersistentId            : 
PersistentMasterId      : 
Attachments             : {$/Designs/autodesk_inventor_samples/Models/AEC Exchange/Water Heater/Water Heater.ipt, $/Designs/autodesk_inventor_samples/Models/AEC Exchange/Water Heater/Water Heater.idw}