Yes, that is a share that you can not do mslides from VBA, via the API but at least we can do something with the sendcommand
I think acad considers image tiles legacy when in fact, I think they are still a great asset
Once the symbol library is done, if you want to add a slide, you just mslide the new block out, add the slide name to the .txt file and run slidelib again from DOS to re create the library.
I think you probably assumed by now that the code that you wrote for me was to center each blockref into the respective vport.
With that code, you can insert all of your blocks into the template I have, then quickly center each block into its respective vport.
The very first vport was created by doing a zoom extents, then drawing the viewport.
After that, I just arrayed the vport across and down.
After you freeze the viewports, you have to go into each one and select update layers, then acad will remember that the frozen state is the current layer state. This way when you make the slides via a script or however, the vports will be frozen in each slide.
The only time you would really need to do an update layers on a vport again is if you add one ( I think) but definitely if you have to re scale the vports for a new batch of blocks. I had to do that once and an update layers was necessary.
Hmmmm.there may be a way in VBA to update all vports at once; didn't think of that.
vb-scripting:
As far as vb-scripting, I love it. It has so many great uses.
I think the cool thing is that you can incorporate it into VBA as well as using it stand alone in a .vbs file.
In which case only a double click is necessary.
Off topic a bit:
Myself and CM have had a few debates with vbs.
I know that VBA has a way to write out to .txt files but I love the The textstream method in The File SystemObject of vbs.
I would not say that one way is better then the other but I will say that the textstream method with FSO is certainly a lot more flexible as I can employ it from outside of AutoCAD. Anyone that has seen some of my code has seen that I like to mix it up.
Not to mention that, if I do the vbs code in ACAD-VBA, I can copy the code snippets to vbs and do some things.
Again, that is all a personal preference.
Hey Bob,
I found a great "free" program on line; it is called vbsedit
If you want to buy it, I think it is like $47 but you can also just keep hitting evaluate if you'd like.
www.vbsedit.com
It has a built in debugger, tons of examples that you can use immediately plus it uses intellisense like VBA which is outstanding.
It also allows you to put your own code snippets in to be saved for later use.
There is also an output window that works just like locals does in VBA.
For anyone that wants to learn VB-Scripting quickly, this program is great.
To get around the evaluate message, I use the program for code examples, getting methods and debugging, then I switch over to another editor for easy tweaks, that don't require me to run the code from vbsedit.
It is certainly worth the $47, I may even go ahead and buy it.
Anyhow, I would definitely strongly suggest any serious programmer to at least check it out
I am not sure about Visual Studio because I do not own it but these features for Vb-scripting be built into there as well.
Mark