setMetadata Last update: 30.07.2026 public setMetadata(name: String, type: Variable.MetadataType, value: Any, access: Variable.MetadataAccess, archive: Boolean) Set a metadata value on an assembly. Parameters name the metadata value's name type the type of metadata value the string representation of the value to set access the access (private, readonly, public) archive whether to save the data with the model Throws ModelCenterException on error.