catching an invalid entity name
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have code that loops through a selection set, and it fails on drawings with slight corruption.
I ran AUDIT and it cleaned the corruption, but I want to detect what drawings have invalid entitiy names.
I tried many things, like:
(vl-catch-all-error-p (vl-catch-all-apply '(lambda () (SETQ OBJ (vlax-ename->vla-object (SSNAME CALLOUT-SS INDEX))))))
and so on, but those do not think there is an error.
But then this fails on same ename:
(SETQ ENAME (SSNAME CALLOUT-SS INDEX))
so the (vl-catch-all-apply... is not "catching", its letting the error by.
Any ideas on how to gracefully catch the invalid entity?
In my case, the invalid entity is a simple block with one attribute, not some huge AEC monster thingy.
I do want to keep this to lisp. I'm guessing its easy with .net.
thanks
internal protected virtual unsafe Human() : mostlyHarmless
I'm just here for the Shelties