HasRelations Model
Overview
This video demonstrates the HasRelations Model command in Nitro-CELL, which checks whether the active Creo model contains any relations. Relations in Creo are equations that define relationships between dimensions, parameters, and other model properties. The HasRelations command returns a boolean result indicating whether the model has any relations defined. This is useful for auditing models or building conditional workflows that need to handle models with and without relations differently. The video shows how to enter the command, interpret the result, and use it in automation logic.
Key Steps
- Open the target model in the Creo session
- Enter the HasRelations command in the execution worksheet
- Execute the command to check for the presence of relations
- Read the boolean result from the output column
- Use the result to conditionally execute relation-related operations
Tips
- Use HasRelations before Delete Relations to avoid errors on models without relations
- This command is useful for auditing which models in a set contain relations
- Combine with conditional logic to handle models with and without relations differently