Skip to main content

IModel interface

Namespace: NextDesign.Core

Description

Provides access to NextDesign design model information.

Area you belong to

NameDescription
ModelA group of APIs to access models.

Inherit Base

NameDescription
IObjectRepresents an identifiable object.

Derived from

NameDescription
IFrameThis is an access object to frame information.
IInteractionElementThis is an access object to interaction model element information.
Define common characteristics for elements that represent interactions.
IFeatureThis is an access object for product feature information.
IProductLineModelThis is an access object for the product line development support model.
IConfigurationModelAccess object for the product configuration model.
IProjectProvides access to project information.
IInteractionThis is an access object to interaction model information.
IFeatureModelThis is an access object for the management model that structures product features.
IRelationshipAn access object to related information.
IProductThis is an access object for product information.

Property

NameDescription
ClassNameClass name
Get the name of the Metaclass.
DescriptionDescription
ErrorsGets a collection of error information for this model.

Error information includes summary information.
HasErrorCheck if there are any errors in this model.
Returns True if this model has errors.

This evaluation includes summary information.
HasErrorWithChildrenChecks for errors in this model and the elements below the child elements owned by this model.
Returns True if there is an error in this model and the elements below the child elements owned by this model.

This evaluation includes summary information.
IsDeletedCheck if this instance has been deleted.
IsDeletingCheck if this model is being deleted.
IsDirtyChecks if this model is dirty (unsaved).
Returns True if not saved.
IsEditableChecks if this instance is editable.
IsProxyChecks if this instance is a proxy element.
Proxy elements are generated in distributed environments when the unit that recorded this instance information is not loaded.
IsUnitTopModelChecks if this instance is the base model for the unit.
MetaclassClass
ModelPathModel hierarchy path for this instance Returns a path string joined by path separators ("/").

If the root node to which this instance belongs is a model whose parent element has not been loaded, "\partial;" will be added to the beginning of the path string combined with a path delimiter.
ModelUnitUnit (physical file) information that manages this instance information
NameName
OwnerThe model that directly owns this instance
Returns null if this instance is a relationship or if the owning model does not exist.
OwnerProjectThe project that holds this instance

Method

NameDescription
AddErrorAdds error information for this model and returns the added error information.
AddNewModelAdds an instance of the specified class as a field value to the specified field of this instance.
The instance is added as the last element of the field.
Even if the specified class is an abstract class, it can be instantiated and added as the last element of the corresponding field.
The specified field must be an owned field of the class type.
An exception will not be thrown if the multiplicity upper limit constraint of a field with multiplicity greater than or equal to 2 is violated.

Also, the class name you specify must be compatible with the field's data type.
In addition, when performing a fuzzy match, if there are multiple matching classes, the instance of the first type-compatible class found will be added.
AddNewModelAtAdds an instance of the specified class as a field value to the specified field of this instance, with the specified addition position.
Allows instantiation even if the specified class is an abstract class, and adds it as a field value at the specified position.
The specified field must be an owned field of the class type.
Note that no exception will be thrown even if the multiplicity upper limit constraint of a field with multiplicity of 2 or more is violated.

The class name you specify must be compatible with the field's data type.
Also, when performing a fuzzy match, if there are multiple matching classes, an instance of the first type-compatible class found is added.
AddNewModelToAdds an instance of the specified class as a field value to the specified field of this instance, with the specified addition position.
Allows instantiation even if the specified class is an abstract class, and adds it as a field value at the specified position.
The specified field must be an owned field of the class type.
Note that no exception will be thrown even if the multiplicity upper limit constraint of a field with multiplicity of 2 or more is violated.

The class name you specify must be compatible with the field's data type.
Also, when performing a fuzzy match, if there are multiple matching classes, an instance of the first type-compatible class found is added.
AsChecks if this instance is compatible with the specified class type.
Returns True if this instance is an instance of the specified class or its subclasses.
AsIn(IEnumerable<string>,bool)Checks if this instance is compatible with the class type specified by multiple string types.
Returns True if this instance is an instance of any of the specified classes, or their subclasses.
AsIn(string,bool)Checks whether this instance is compatible with the class type specified by the comma-separated string type.
Returns True if this instance is an instance of any of the specified classes, or their subclasses.
AssignFeatureAssigns the specified feature to this model.
AssignFeatureByNameAssigns a feature with the specified name to this model.
AssignFeaturesAssigns all specified features to this model.
AssignFeaturesByNameAssigns all features with the specified name to this model.
CanRelateChecks whether the specified field of this instance can be associated with the given model.
Returns True if it can be associated.
In addition to evaluating the field type, this method also evaluates the following field constraints:
[Constraints to be evaluated]
- Path constraints
- Type constraints
- Multiplicity upper limit

Please note that the model itself or the associated model has been deleted. model, returns False if it is a temporary proxy.
False is also returned if the following fields are specified.
- Product line feature assignment field
- Field tagged System.Core
- Owned field
CanRelateAnyChecks if this instance can be associated with the given model.
Returns True if this instance can be associated with any reference field.
False is returned if the model itself or the associated model is a deleted model or a temporary proxy.
Please note that this does not apply to owned fields.
CountGets the number of values ​​in the specified field.

This method does not evaluate IContextOption.PlModelAccessMode.
CreateAsyncValidationContextCreate an asynchronous validation context for this model.
DeleteDeletes this instance.
If this method is called on an instance that has already been deleted, nothing will happen.

Deleting this instance will result in the following changes to the model:
・The ownership relationship between this instance and the owner (parent element) will be deleted.
・All reference relationships with this instance as the relationship end will be deleted.
・Elements below all child elements owned by this instance and reference relationships with those elements as relationship ends will be deleted.
FindChildrenByClassFinds instances of the specified class among the instances owned by this instance.
This method evaluates IContextOption.PlModelAccessMode.

Returns a collection of owned instances of the specified class.
If the class specified in class name is not found, an empty collection will be returned.
It also returns an empty collection if no such instance exists.
FindChildrenByClassDisplayNameFinds an instance of the class with the specified display name among the instances owned by this instance.
This method evaluates IContextOption.PlModelAccessMode.

Returns a collection of owned instances of the class with the specified display name.
Returns an empty collection if no such instance exists.
FindChildrenByClassTagRetrieves the instance of the class that has the specified tag among the instances owned by this instance.
This method evaluates IContextOption.PlModelAccessMode.

Returns a collection of owned instances of the class that have the specified tag.
Returns an empty collection if no such instance exists.
FindChildrenByTagRetrieves the instance with the specified tag among the instances owned by this instance.
This method evaluates IContextOption.PlModelAccessMode.

Returns a collection of owned instances with the specified tag.
Returns an empty collection if no such instance exists.
FindOwnerByClassGets the first owning instance of the specified class that holds this instance.

Tracks the instance that owns this instance toward its parent, and returns the first instance of the specified class found.
Returns null if no matching instance is found even after searching up to the topmost parent element.

If the class specified in class name is not found, null is returned.
Also, when performing a fuzzy match, if there are multiple matching classes, the instance of the first class found will be returned.
GetAllChildrenGets all owned instances that can be searched by ownership depth-first search from this instance.
This method evaluates IContextOption.PlModelAccessMode.

Returns a collection of all owned instances that can be searched using ownership depth-first search starting from this instance.
Returns an empty collection if no such instance exists.
GetAllErrorsWithChildrenGets all error information including elements below child elements owned by this model.
Returns an empty collection if no error information exists.

Error information includes summary information.
GetAssignedFeaturesGet all features assigned to this model.
GetChildrenRetrieves the owning instance that is directly owned by this instance.
This method evaluates IContextOption.PlModelAccessMode.

Returns a collection of owned instances that have a direct ownership relationship with this instance.
Returns an empty collection if no such instance exists.
GetDerivedFromRelationsOfIf this model is an element derived from the specified model, get all derived relationships.
For example, if this model is an element derived from{element A}, you can obtain the derived relationship by specifying{element A} as an argument.

This can be used for the following processing.
・If there is a derived relationship between the request object and the specification object, obtain the relationship for the request object from the specification object side.

This method evaluates IContextOption.PlModelAccessMode.

Returns an empty collection if no such association exists.
GetDerivedModelsGets instances derived from this instance by the specified associated class.
If the related class is not specified (null), all derived instances will be obtained.

This method evaluates IContextOption.PlModelAccessMode.

This method returns an empty collection if the following cases are true:
- The derived instance associated with the corresponding derived association does not exist.
- The specified association class was not found.
- The specified association class is not a derived association.
- Reference field to derivation destination by specified derivation-related class not found
GetDerivedToRelationsOfIf the specified model is an element derived from this model, get all derived relations.
For example, if there is{element B} derived from this model, you can obtain its derived relationship by specifying{element B} as an argument.

This can be used for the following processing.
・If there is a derived relationship between the request object and the specification object, obtain the relationship to the specification object from the request object side.

This method evaluates IContextOption.PlModelAccessMode.

Returns an empty collection if no such association exists.
GetDeriveRelationsOfGets all derived relationships with the specified model.
This method evaluates IContextOption.PlModelAccessMode.

Returns an empty collection if no such association exists.
Please note that this method does not evaluate the derivation direction.
GetDerivingModelsGets the instances from which this instance is derived by the specified associated class.
If the related class is not specified (null), all derived instances will be obtained.

This method evaluates IContextOption.PlModelAccessMode.

This method returns an empty collection if the following cases are true:
- The derived instance associated with the corresponding derivation association does not exist.
- The specified association class cannot be found.
- The specified association class is not a derived association.
- Reference field to derived source by specified derived related class not found
GetEditorGets the editor with the specified name for this instance.
This method evaluates IContextOption.EditorAccessMode.

Returns null if no matching editor is found.

Depending on EditorAccessMode, the latest model changes are not synchronized.
For this reason, please note that correct information may not be obtained if you use an editor that has not been displayed since the model was changed.
GetEditorsGet all editors corresponding to this instance.
This method evaluates IContextOption.EditorAccessMode.

Returns an empty collection if no corresponding editor exists.

Depending on EditorAccessMode, the latest model changes are not synchronized.
For this reason, please note that correct information may not be obtained if you use an editor that has not been displayed since the model was changed.
GetFieldGets the value of the specified field in this instance.
If the multiplicity of the specified field is 2 or more, get the first element of the corresponding field.
GetFieldAtRetrieves the value at the specified index of the specified field in this instance.
GetFieldStringGets the value of the specified field of this instance in string format.
If the specified field is of class type, get the first instance name of the field.
If the multiplicity is 2 or more, the first element of the corresponding field will be retrieved.
GetFieldStringAtRetrieves the value at the specified index of the specified field in this instance in string format.
If the field at the specified index position is a class type, get the first instance name of that field.
GetFieldValuesGets the values ​​collection for the specified field.
This method evaluates IContextOption.PlModelAccessMode.

Returns an empty collection if no such field value exists.
The data type of the field specified in this method must be a class type.
GetFieldValuesByFieldTagGets an enumeration of values ​​for the field with the specified tag.
If there are multiple fields with the corresponding tag, the combined enumeration of the values ​​of all the fields is returned.
This method does not evaluate IContextOption.PlModelAccessMode. Note that elements that are invalid in the product are also returned.

Returns an empty collection if no such field value exists.

The data type of the field that is tagged by this method is arbitrary. Therefore, the enumeration returned by this method is of type object.
When using it, it is necessary to convert it to the most suitable data type.
GetOwnerFieldGets the field held by this model's owning model.
Returns null if this model is related or if the owning model does not exist.
GetOwnerRelationshipGets the relationship of this model with the owning model.
Returns null if this model is related or if the owning model does not exist.
GetOwnersRetrieves all the owner instances that can be searched by ownership relationship for this instance.
Returns a collection of instances towards the parent of the instance that owns this instance.
Returns an empty collection if the parent element does not exist.
GetProductApplyConditionGet the product application condition expression for this model.

The product application condition expression is a logical expression that treats the "feature name variable" as a boolean value type variable.
In the configuration, if a feature is in the selected state, the corresponding "feature name variable" is evaluated as true.
A "feature name variable" is written using a format in which the feature name or feature unique name is enclosed in "[" and "]".
In addition, you can use the following logical operators and "(",")" to specify the calculation order in the product application condition expression.
- AND: Logical product
- OR: Logical sum
- NOT: Negative

Example:
・The following product application conditional expression is This is a conditional expression that evaluates as true if the feature name is "Following Driving" or "Front Camera" in the lation.
[Following Driving] OR [Front Camera] This is a conditional expression that evaluates as true if "millimeter wave radar" is selected.
NOT [Constant speed driving] AND [Millimeter wave radar]
GetReferenceFieldsOfRetrieves the reference fields of the class of this instance that are of a type that can store the specified model.
The fields that can be retrieved with this method have the same result as Model.Metaclass.GetReferenceFieldOf(model.Metaclass).
Also, field constraints such as multiplicity and path constraints are not evaluated.
GetRefRelatedModelsGets the instances that have a reference relationship with this instance by the specified related class.
If the related class is not specified (null), all referenced instances will be obtained.
This method evaluates IContextOption.PlModelAccessMode.

This method returns an empty collection if the following cases are true:
- There are no instances associated with the relevant reference association.
- The specified association class is not found.
- The reference field by the specified association class is not found.

If the specified related class is a self-reference related, both the source and destination relationships will be evaluated.
GetRelatableFieldsOfGets the reference fields that can associate this instance with the specified model.
The fields retrieved by this method are evaluated for field constraints.
Therefore, fields that do not meet the following constraints are excluded:
[Constraints to evaluate]
- Path constraints
- Multiplicity upper limit
GetRelatingFieldsOfRetrieves all fields of this instance's class that store the specified model as the field value.
Fields that can be retrieved with this method are retrieved regardless of ownership/reference.
GetRelationGets the relationship for the specified field.
This method evaluates IContextOption.PlModelAccessMode.

Returns null if the specified field does not have a valid association.
In addition, if the multiplicity of the specified field is 2 or more, the relationship to the first element of the corresponding field will be obtained.
GetRelationAtGets the relationship of the specified field at the specified position.
This method evaluates IContextOption.PlModelAccessMode.
GetRelationsGets the collection of relationships for the specified field.
This method evaluates IContextOption.PlModelAccessMode.

Returns an empty collection if no such association exists.
GetRelationsByClassTagGets an instance of the related class with the specified tag from all fields of this instance.
This method evaluates IContextOption.PlModelAccessMode.

Returns an empty collection if no such association exists.
GetRelationsByClassTagOfRetrieves the relationships with the given model associated by the association class with the specified tag from all fields of this model.
This method evaluates IContextOption.PlModelAccessMode.

Returns an empty collection if no such association exists.
GetRelationsByFieldOfGets the relationships for the specified field with the specified model.
This method evaluates IContextOption.PlModelAccessMode.

Returns an empty collection if no such association exists.
GetRelationsByFieldTagGets the relationships of the field with the specified tag.
This method evaluates IContextOption.PlModelAccessMode.

Returns an empty collection if no such association exists.
GetRelationsByFieldTagOfGets relationships with the given model from fields with the specified tag.
This method evaluates IContextOption.PlModelAccessMode.

Returns an empty collection if no such association exists.
GetRelationsByTagGets the relationships with the specified tag in the specified field.
This method evaluates IContextOption.PlModelAccessMode.

Returns an empty collection if no such association exists.
GetRelationsOfGet all relationships with the specified model.
This method evaluates IContextOption.PlModelAccessMode.

Returns an empty collection if no such association exists.
This method retrieves all relationships, regardless of ownership/reference relationships.
GetRelationsOfWhereGets the relationships with the given model that match the specified criteria for this instance.
This method evaluates IContextOption.PlModelAccessMode.

Returns an empty collection if no such association exists.

The relationship of the acquisition target can be determined arbitrarily using the evaluation function.
GetRelationsWhereGets all relationships that match the specified criteria for this instance.
This method evaluates IContextOption.PlModelAccessMode.

Returns an empty collection if no such association exists.

The relationship of the acquisition target can be determined arbitrarily using the evaluation function.
GetRepresentationsInEditorGets all representation information for this instance within the specified editor.
This method evaluates IContextOption.EditorAccessMode.

Returns an empty collection if there are no matching elements.

Depending on EditorAccessMode, the latest model changes are not synchronized.
For this reason, please note that correct information may not be obtained if you use an editor that has not been displayed since the model was changed.
GetRichTextFieldGets the format value of the specified rich text field.
Returns null if there is no value in the specified format.
GetRichTextFieldCustomDataGets the custom format value for the specified rich text field.
Returns null if the specified format is not found.
GetRichTextFieldFormatsRetrieves a list of formats in which the value of the specified rich text field is set.
The order of the list is indeterminate. It also returns a format where the value is an empty string.
IsChecks if this instance is an instance of the specified class.
Returns True if it is an instance of the specified class
IsAppliedItemChecks if this model is valid for the current product.
IsAppliedItemToChecks if this model is valid for the specified product.
IsAppliedItemToByNameChecks if this model is valid for the product with the specified name.
IsIn(IEnumerable<string>,bool)Checks whether this instance is an instance of one of the specified classes.
Returns True if it is an instance of any of the specified classes.
IsIn(string,bool)Checks whether this instance is an instance of one of the specified classes.
Returns True if it is an instance of any of the specified classes.
IsRelatedAtFieldToChecks if this instance has a reference relationship with the given model by the specified field.
Returns True if there is a relationship.
IsRelatedToChecks if this instance has a reference relationship with the given model.
Returns True if there is a relationship.
MoveToMoves this instance so that it becomes a child of the specified model.
If the destination parent element and field are the same as the current parent element and field, changes the order of the elements in the specified field.
Note that no exception will be thrown even if the multiplicity upper bound constraint of the destination field is violated.
NotifyFieldChangedNotify about value changes in the specified field.
RelateRelates the given model at the end of the specified field of this instance and returns the added related instance.
RelateAllRelates the given model with all reference fields that can be associated with this instance's given model and returns a collection of all added related instances.
If a deleted model or temporary proxy is specified as the model to be associated, the association will not be performed.
If no association was made, returns an empty collection.

This method excludes fields that do not meet the following constraints from being associated.
[Constraints to be evaluated]
- Path constraints
- Type constraints
- Multiplicity upper limit
- Operation possible
RelateAllDerivedFromA collection of all related instances added by associating the given model as a derivation source with all fields that can be associated with the given model as a derivation source of this instance returns.
If a deleted model or temporary proxy is specified as the model to be associated, the association will not be performed.
If no association was made, returns an empty collection.

This method excludes fields that do not meet the following constraints from being associated.
[Constraints to be evaluated]
- Path constraints
- Type constraints
- Multiplicity upper limit
- Operation possible
RelateAllDerivedToA collection of all related instances added by associating the given model as a derivation destination with all fields that can be associated with the given model as a derivation destination of this instance returns.
If a deleted model or temporary proxy is specified as the model to be associated, the association will not be performed.
If no association was made, returns an empty collection.

This method excludes fields that do not meet the following constraints from being associated.
[Constraints to be evaluated]
- Path constraints
- Type constraints
- Multiplicity upper limit
- Operation possible
RelateAtRelates the given model with the specified addition position in the specified field of this instance, and returns the added related instance.
RelateByClassTagReturns a collection of all added related instances by relating the given model with a reference field that is relatable by the related class tagged with the specified tag for this instance. Masu.
If a deleted model or temporary proxy is specified as the model to be associated, the association will not be performed.
If no association was made, returns an empty collection.

This method excludes fields that do not meet the following constraints from being associated.
[Constraints to be evaluated]
- Path constraints
- Type constraints
- Multiplicity upper limit
- Operation possible
RelateByFieldTagRelates the given model with the specified tagged reference field of this instance and returns a collection of all added related instances.
If a deleted model or temporary proxy is specified as the model to be associated, the association will not be performed.
If no association was made, returns an empty collection.

This method excludes fields that do not meet the following constraints from being associated.
[Constraints to be evaluated]
- Path constraints
- Type constraints
- Multiplicity upper limit
- Operation possible
RelateWhereRelates the given model with all reference fields that match the specified criteria for this instance and returns a collection of all added related instances.
If a deleted model or temporary proxy is specified as the model to be associated, the association will not be performed.
If no association was made, returns an empty collection.

The reference field to be associated can be determined arbitrarily using the evaluation function.
However, even if the evaluation function is matched, if the field meets the following conditions, no association will be made and the process will end normally.
・When the field path constraint is violated
・When the field type is not compatible with the given model
・When the multiplicity of the field is exceeded
・The condition is met If the field to be used is one of the following non-operable fields
- Product line feature assignment field
- Field tagged with System.Core
ReleaseAllAssignedFeaturesUnassign all features assigned to this model.
If you cancel the assignment with the feature with this call, the product application condition expression will also be deleted.
ReleaseAssignedFeatureUnassigns the specified feature to this model.
ReleaseAssignedFeatureByNameUnassigns the feature with the specified name to this model.
ReleaseAssignedFeaturesUnassign all specified features to this model.
ReleaseAssignedFeaturesByNameUnassign all features with the specified name to this model.
RemoveErrorRemoves error information added for this model.
If null or error information not included in this model is specified for the error information to be deleted, nothing will be done and the process will end normally.
RemoveFieldRemoves the value of the specified field in this instance.
Deletes the specified model if the specified field is an owned field.
If the specified field is a reference field, only the reference association is removed and the model is maintained.

If the model specified for deletion is not included in the specified field, nothing will be done and the process will end normally.
RemoveFieldAtRemoves the field value at the specified position in this instance.
If the specified field is an owned field, deletes the model at the specified position.
If the specified field is a reference field, only the reference association at the specified position is removed and the model is maintained.
SetFieldSets the specified field in this instance to the specified value.
If a value that cannot be set for the specified field is specified, an exception will be thrown.
If the multiplicity of the specified field is 2 or more, the first element of the corresponding field will be set.
SetFieldAtSets the specified value in the specified field of this instance at the specified index.
If a value that cannot be set for the specified field is specified, an exception will be thrown.
In addition, no exception will be thrown even if the field multiplicity upper limit constraint or path constraint is violated.
SetInitFieldSets the specified field of this instance to the initial value of the field defined in the metamodel.
Set the default value for the field type if the metamodel does not specify an initial value for the field.

If you call this method on an owned field of a class type, the IModel that was set as the field value will be deleted.
Also, if this method is called for a reference field of class type, the association with the IModel that was set as the field value will be deleted (the IModel of the field value will be maintained without being deleted) .
SetProductApplyConditionSet the product application condition expression for this model.
In addition, if a feature name that is not assigned to this model is specified in the product application condition expression, the feature will be automatically assigned.
Also, if a conditional expression does not use a feature name that has already been assigned to this model, it will be automatically unassigned from the feature.
If you specify an empty string in the conditional expression, all feature assignments will be canceled.
SetRichTextField(string,string,string,string)Sets the value to the specified rich text field format.
Also sets the text value in the specified rich text field.
SetRichTextField(string,string,string)Sets the value to the specified rich text field format.
SetRichTextField(string,string)Sets the text value in the specified rich text field.
SetRichTextFieldCustomDataSets the value in the specified rich text field's custom format.

Custom formatted values ​​are not displayed on the UI. It can only be retrieved and set using the API.
TakeMoves the specified model to the specified field of this instance.
This instance will be the parent element of the model to be moved.
Note that no exception will be thrown even if the multiplicity upper bound constraint of the destination field is violated.
UnRelateRemoves the reference association of this instance with the given model in the specified field.
If there are multiple associations for the relevant field, all the associations will be canceled.
If there is no relationship with the given model, nothing is done and the process ends normally.
UnRelateAllRemoves all reference associations of this instance with the given model.
If there is no relationship with the given model, nothing is done and the process ends normally.
Also, the association with fields that meet the following conditions will not be canceled and the process will end normally.
・Association in fields for product line support
・Association in fields that have the System.Core tag
UnRelateAllDerivedFromRemoves all associations from this instance with the given model.
If there is no relationship with the given model, nothing is done and the process ends normally.
Also, the association with fields that meet the following conditions will not be canceled and the process will end normally.
・Association in fields for product line support
・Association in fields that have the System.Core tag
UnRelateAllDerivedToRemoves all associations that this instance derives from the given model.
If there is no relationship with the given model, nothing is done and the process ends normally.
Also, the association with fields that meet the following conditions will not be canceled and the process will end normally.
・Association in fields for product line support
・Association in fields that are tagged with System.Core
UnRelateByClassTagRemoves the association of this instance with the model given by the reference field that is relatable by the associated class tagged with the specified tag.
If there is no relationship with the given model, nothing is done and the process ends normally.
Also, the association with fields that meet the following conditions will not be canceled and the process will end normally.
・Association in fields for product line support
・Association in fields that are tagged with System.Core
UnRelateByFieldTagDisassociates this instance's reference field with the specified tag from the given model.
If there is no relationship with the given model, nothing is done and the process ends normally.
Also, the association with fields that meet the following conditions will not be canceled and the process will end normally.
・Association in fields for product line support
・Association in fields that are tagged with System.Core
UnRelateWhereRemoves all reference associations of this instance with the given model that meet the specified conditions.

The target to be disassociated can be arbitrarily determined using the evaluation function.
However, the association that meets the following conditions will not be canceled and will end normally.
・If the relationship matching the conditions is for product line support
・If the field at the end of the relationship matching the conditions has the System.Core tag added
Validate()Validate this model.
Recursively validates this model and all elements below the child elements owned by this model.
This method clears all previous error information when run.

[When this method is executed for a project (IProject)]
・If there is an unloaded model file in the project, error information to that effect will be used as the base point of the design model. Add it to the model (the model you want to display at the root of the model navigator). This is to notify the caller that all models in the project cannot be verified because there are unloaded model files.
・Includes models that cannot be reached due to project ownership due to unloaded model files in the project (models whose parent is unloaded).

[Verification content]
・Standard validation defined by the application
・Verification extended by extension validation event
Validate(ValidationOptions)Validate this model.
By specifying options, only this model is verified, or this model and all elements below the child elements owned by this model are recursively verified.
This method clears all previous error information when run.

[When this method is executed for a project (IProject)]
・If there is an unloaded model file in the project, error information to that effect will be used as the base point of the design model. Add it to the model (the model you want to display at the root of the model navigator). This is to notify the caller that all models in the project cannot be verified because there are unloaded model files.
・Includes models that cannot be reached due to project ownership due to unloaded model files in the project (models whose parent is unloaded).

[Verification content]
・Standard validation defaulted by the application enabled in the option
・If issuing an event during model validation is specified in the option, Extended validation with extension validation events

Extension methods

NameDescription
IsDesignModelChecks if this model is the design model root (the root model in the model navigator).
IsProductLineElementChecks if this model is a product line element.
IsReadonlyChecks if this model is read-only.
Returns False if the model unit corresponding to this model cannot be obtained.
NameDescription
Edit the modelEdit various types of NextDesign model information through the API.