The ActiveModelState function of ThisDoc will allow you to set or get the active Model State of the active document. There is a new AddWithModelState function that will allow you to add a component to the current assembly and choose which component Model State to activate. AddWithModelState( "a:1", "a.ipt", "Model State2") In fact, the FullFileName property in the API has been changed from FullFileName to FullFileName. The Replace with LOD snippet has been replaced with the Replace with Model State snippet but they act the same and require the same information, just use the Model State name instead of the LoD name. Replace( "SubAssembly:1", "OtherAssembly.iam", True) The new ActiveModelState function in the Components (classic) category will get or set the active model state of a component in an assembly. There are several new iLogic snippets that allow us to interact with Model States. Existing LoDs (Level Of Detail) in assemblies will be migrated to Model States inside of Inventor 2022.
![how to change tool number in a prohram on feature cam how to change tool number in a prohram on feature cam](http://docplayer.net/docs-images/71/64747634/images/35-1.jpg)
This is no longer the case as we can suppress components inside the Master Model State. Prior to this release we had to ensure our assembly was in a custom LoD (Level Of Detail) in order to suppress components in an assembly using iLogic. Model States allow you to create multiple representations of a part or an assembly within a single document.
![how to change tool number in a prohram on feature cam how to change tool number in a prohram on feature cam](https://i.ytimg.com/vi/r9JcZ96qHPs/maxresdefault.jpg)
With the release of Inventor 2022 comes the introduction of Model States. Inventor 2022 gives us some new iLogic tools to interact with the new Inventor tools.