Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
meGVGMF
in reply to: CattabianiI

The following would be accessing the table from the factory document, right?
`ThisDoc.Document.ComponentDefinition.ModelStates.ModelStateTable`

 

(The file starts as a master-model-state-only document, but a new model state is created just before this. But also I just tested that adding a model state manually and closing and reopening the file before running the script gives the same result.)


Trying to set to either `String.Empty` or `""` gives the error in the image below. Setting it to a dummy, non-empty string works.

 

Screenshot 2023-01-17 141459.png