Unable to set a "last modified" property

Hi
the api allows to set the “Last modified” property for a IHasChildrenBaseModelElement.
When i set both “Create date time”(setPmCreateDateTime) and “Last modified”(setPmLastModified) to the same date then “Create date time” ist accepted, but the “Last modified” is overwritten with the current timestamp…
image
A way to set it without beeing overwritten?

Thanks,
Guido

Hi Guido,

The Create date is a read-only property that reflects the time at which an element/diagram was being created, while the Last modified property will be automatically updated to reflect the time on which changes are saved. May I know why you want to change them?

Best regards,
Jick Yeung

Hi Jick,

the create date seems not to be read-only, as for the element shown in my picture (created on 2021-02-11), the value i set by open api (2002-03-08) is accepted, and correctly shown, i am happy with create date behavior.
It is an import logic, the source has the two informations, visual paradigm open api defines SETTER for both, so i try to take over.

Best regards,
Guido

Hi Guido,

Thank you for your reply. I have forwarded your case to our team to study. When there is any news, I will let you know.

Best regards,
Jick Yeung

Hi Guido,

Both the Create and Last Modified Date are not supposed to be modifiable and hence, we decided to make the setters deprecated. You may consider to use Tagged Value to record the information you need.

Best regards,
Jick Yeung