VBA Homework #4

VBA Homework #4

Anonymous
Not applicable
216 Views
4 Replies
Message 1 of 5

VBA Homework #4

Anonymous
Not applicable
Here is VBA Homework #4. Re write Matt's "LAI" utility to isolate layers.
This isn't really an ADT VBA sample, but it get back to working with
dialogs, and should be pretty simple.

Cheers,

Peter Funk
Software Engineer
Developer Consulting Group
Autodesk, Inc.
0 Likes
217 Views
4 Replies
Replies (4)
Message 2 of 5

Anonymous
Not applicable
Here is my version of a layer isolate utility written with <70 lines of VBA
code. This project uses only the AutoCAD type library.

I'll try to work on a word doc to explain it.

Cheers,

Peter Funk
Software Engineer
Developer Consulting Group
Autodesk, Inc.

Peter Funk (Autodesk) wrote in message
<[email protected]>...
>Here is VBA Homework #4. Re write Matt's "LAI" utility to isolate layers.
>This isn't really an ADT VBA sample, but it get back to working with
>dialogs, and should be pretty simple.
>
>Cheers,
>
>Peter Funk
>Software Engineer
>Developer Consulting Group
>Autodesk, Inc.
>
>
0 Likes
Message 3 of 5

Anonymous
Not applicable
Perhaps if I attached the solution it would be eaiser to understand! 🙂

Cheers,

Peter Funk
Software Engineer
Developer Consulting Group
Autodesk, Inc.
0 Likes
Message 4 of 5

Anonymous
Not applicable
I took a look at your code. Real nice

Few questions.

How can we change the code at the front ent to
While obj = nil
ThisDrawing.Utility.GetEntity obj, pt, "Select object on layer to isolate
or press :"
If Err <> 0 Then ' if nothing selected, set to an empty string
layerSelected = ""
Else
Wend

Your code is starting the dialog if I try to window a group of ents.
Is there a SSGET for VBA.
I will need to look a previous postings to see if there is an example.

Then you need to test to see if ENTER was hit. That is where I am lost.
You have yours set to detect via the ERR....am i correct?

Keep up the good work.

--
Rob Starz
Plogv 3.0 (plot logging) for r14 Updated release!!!
Plogv2000 (plot logging) for 2000 New release!!!
http://members.aol.com/stardsign/plog/index.htm
StarDsign cad solution
0 Likes
Message 5 of 5

Anonymous
Not applicable
Ummmm Peter.........I no see the code.

I haven't seen it but I was looking to make a layer routine that when i
either turn off/on layers a list box shows what is currently off/on. when
you turn something off or on the list box changes to reflect what you have
done and then the layers change on the screen.

This is possible or did what i type not make any frekn sense. It is in my
head somewhere.
I am looking forward to your posting.

--
Rob Starz
Plogv 3.0 (plot logging) for r14 Updated release!!!
Plogv2000 (plot logging) for 2000 New release!!!
http://members.aol.com/stardsign/plog/index.htm
StarDsign cad solution
0 Likes