Author Topic: Image unload  (Read 1834 times)

0 Members and 1 Guest are viewing this topic.

tcdan

  • Guest
Image unload
« on: June 01, 2005, 12:13:31 PM »
Quote from: Daron
This topic was split from tcdan's original post because I felt like it.


No, not ISI.  Actually I just work for a little civil engineering company in Cali.  Got my degree in electrical engineering and took a little detour I suppose :)

That LISP would be kind of neat to check out if you still have it. . . I just know the basics of LISP, but maybe you could baby step me through the process of writing it instead of just throwing it at me.  That is, as long as it isn't too hard.

daron

  • Guest
Image unload
« Reply #1 on: June 01, 2005, 01:23:44 PM »
There's two ways to it really. I don't have it, but it's fairly easy. You first need a way to select them. We'll start with single entity selection: ENTSEL.
(setq ent (car (entsel "\nSelect image: ")))
We then take it to Vlisp.
(setq obj (vlax-ename->vla-object ent))
Test it:
(vlax-dump-object obj)
Look around there a bit. What we're going to look into is visibility and imagevisibility
See how many different ways you can crash the ent and obj variable calls. Right now there's no error trappings, so it'll break easily. We'll take care of that later. I'm going to lunch right now, but I'll be back later to add to this. Maybe I'll split this thread into another topic then too.