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

@Michael.Navara I can't run the code. It gives an error on the line starting with Logger. I don't think it's supported in Inventor 2018.

 

I have read various comments on StackOverflow saying that using try-catch has a performance impact (same for using the VBA equivalent of 'on error'). That is clearly shown in the 'In model' numbers you have provided, which I think come closest to the user case of bt. (I don't think he will be selecting 1000 objects, though).

TryCast is the overall winner. I didn't know about this operator (and it's even available in VBA). I'm sure to check it out, thanks.