GetState Model
Overview
This video demonstrates the GetState Model command in Nitro-CELL, which retrieves the current state of a model in the Creo session. The state information includes whether the model is active, modified, regenerated, or in an error condition. This command is valuable for building conditional workflows that need to check a model's status before proceeding with operations like saving or exporting. The video shows how to enter the GetState command, interpret the returned state values, and use them to make decisions in the automation workflow. Understanding model state helps engineers build more robust and error-resistant automation scripts.
Key Steps
- Enter the GetState Model command with the target model name
- Execute the command to retrieve the model's current state
- Read the state value from the output column in the worksheet
- Use the state information to decide on subsequent operations
- Handle different states appropriately in your workflow logic
Tips
- Use GetState before Save to check if the model has unsaved changes
- Combine GetState with conditional logic to skip operations on models in error states
- This command is read-only and does not modify the model or session