01-05-2021
01:54 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
01-05-2021
01:54 AM
@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.