/// <summary> /// The Add-in can optionally implement this function. /// Using the SchemaProfile interface an Add-in can adjust the capabilities of the Schema Composer. (See Automation Interface) /// </summary> /// <param name="Repository">the repository object</param> /// <param name="profile">the EA SchemaProfile object</param> public override void EA_GetProfileInfo(EA.Repository Repository, EA.SchemaProfile profile) { //for some reason EA seems to sometimes create a new instance of the add-in. //to avoid nullpointer exception we inititialize the model and factory again if needed if (this.model == null || this.schemaFactory == null) { this.initialize(Repository); } //make sure the tagged value types we need are there if (this.schemaFactory != null) { ((EASchemaBuilderFactory)this.schemaFactory).checkTaggedValueTypes(); } //tell EA our export format name if (profile != null) { profile.AddExportFormat("ECDM Message"); } }