The configuration system is explained in the configurations.
The EffectivityItemInterface is included in the EffectivitiesInterface, and tells a requirement that must
or must not be satisfied in order for a part instance to be included in a configuration.
The EffectivityItemInterface tells the attribute name and the accepted/rejected
values that a document must feature in order to be accepted/rejected.
/** * Sample to illustrate the change of configuration in the ConfContextInterface. */ import { ConfContextInterface, DataSessionInterface, ConfigurationInterface } from'generated/documentation/appinfiniteapi';
// the DataSessionInterface has been created previously and is connected letlDataSession : DataSessionInterface; // create a ConfContextInterface constlConfContext : ConfContextInterface = lDataSession.createConfContext(); // retrieve the list of available configurations constlActiveConfs : Array<ConfigurationInterface> = lDataSession.getConfigurationList(); // we will take the first ConfigurationInterface for this context constlConfs : Array<string> = newArray<string>(1); lConfs[0] = lActiveConfs[0].getConfigurationId(); console.log('Using the configuration ' + lActiveConfs[0].getName() + ' : ' + lActiveConfs[0].getDescription()) // set the active confs lConfContext.setActiveConfs(lConfs); // and ask to compute all changes requested since the last call to the DataSessionInterface lDataSession.update();
The EffectivityItemInterface is a requirement used for the configuration system.
The configuration system is explained in the configurations.
The EffectivityItemInterface is included in the EffectivitiesInterface, and tells a requirement that must or must not be satisfied in order for a
part instanceto be included in a configuration.The EffectivityItemInterface tells the attribute name and the accepted/rejected values that a document must feature in order to be accepted/rejected.
Please refer to the Configuration System.
See