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

Model states are a bit different. 

 

In the idw I created a test rule and entered the below line, which switched the model state on the drawing. However, I cant figure out how I can use this line to assign the model state to the idw view from the iam or ipt. If you look at the ipt, I am already iterating through each model in the generate rule.

ActiveSheet.View("FRONT").View.SetActiveModelState("U420521A")

 

Alternatively, I can't work out how to iterate through each model state from the IDW. The only reason I need to iterate through the model state is so I can capture the width and length parameters from the ipt to scale the drawing properly.