Interacting with IntelliCAD Block Objects in VBA Causes a Crash
Posted: Thu Mar 13, 2025 3:02 pm
I'm working on migrating a VBA project from ICAD 6 to ICAD 13. The current issue I'm facing is that any interaction with a Block object's items will cause a crash. Adding the object to the watch causes a crash, as does calling any of its methods.
I've called out the crashing line. Some things I've tried:
Thanks in advance for any help!
I've called out the crashing line. Some things I've tried:
- Using StnBlock.Item(1).color.SetRGB 0,0,0
- Running as an adminstrator
- Wrote the vic2color function, which takes the IntelliCAD "vic" index and returns a color object
- It seems like color handling has changed dramatically since ICAD 6 and documentation is lacking
- Added StnBlock.Item(1) to watch
- This causes a crash; however, if I watch StnBlock, I can see the line object stored under Item
- I'm going to try and post the code in a response on this thread. I'm getting hit by the spam filter.
Thanks in advance for any help!