Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.

For those steps, would they be running as a separate rule, summoned from the assembly where the selected file will eventually be placed? I've never used FileManager.GetModelStates, but maybe this is a way to accomplish what I'm after.

 

You are correct in assuming that we don't want to open the file before the user selects the appropriate ModelState. Is there any workflow possible where there can be a form with objects like checkboxes/dropdown lists to help the user choose a model state and then place that model state into an assembly? 

 

In the steps below, when the ModelState is selected opened, does the specific ModelState have to be opened discretely and then placed into the assembly (and then manually closed), or can it be placed directly into the assembly?

 


@Michael.Navara wrote:
I prefer FileManager.GetModelStates(fileName) method because I assume (and not well describe) I don't want to open the file before the user selects the appropriate ModelState. This method allows you to get all ModelStates before the document is opened. Planed steps are as follows:
- Select inventor file
- Read modelStates
- Select one of them or cancel the operation
- When ModelState was selected, open the document
- Place the document to the assembly. (This is the original question.)

If you want to use ModelStateUtils, you need to open document first.