Good Morning Folks,
I would like to create what I think is a pretty simple custom command that simply combines the "Measure Area" command and takes that result and then puts it into the the dialog box of the "Place Text" command; thus allowing me to rotate, change font, and all the other things that are found on the the text editor dialog box. But this is all new to me. I have started a introductory online course on programming but when I try to relate what I have learned so far to MicroStation v8i Visual Basic it is just "too big" of a jump for me, but the concept of what I am looking for seems so simple. Could someone please give me some guidance?
In my office we are still using MicroStation v8i SS2.
Any help would be Greatly Appreciated, Wil
Grot
There is an author by the Jerry Winters that wrote "the book" on Microstation & VBA in 941 pages.
ISBN: 0-9714141-8-1
Title: Learning Microstation VBA
https://www.amazon.com/Learning-MicroStation-VBA-Jerry-Winters/dp/0971414181/ref=sr_1_1?ie=UTF8&qid=1501167386&sr=8-1&keywords=learning+microstation+vba
Authors Amazon website:
https://www.amazon.com/Jerry-Winters/e/B001K8WL94/ref=ntt_dp_epwbk_0
Also search the internet for this resource. If you need copies of the examples in the book contact Bentley support for a fresh copy of the CD. Also, I have a copy of the CD here in Oldsmar.
Steven Wood
CAD Manager
MPS Engineering
An M.P. Spychala Company
240 Pine Ave. North, Oldsmar, FL 34677
813.855.2721
stevew@mpseng.com
Steven W.
MPS Engineering Inc
813-855-2721
What "Recording of Commands" are you talking about? Where is this in the interface?
Learning MicroStation VBA by Jerry Winters (Amazon)
It might also be available from Bentley or ebook.
Charles (Chuck) Rheault CADD Manager
MDOT State Highway Administration
Hello again Chuck,
I was looking in the only book I have on the MicroStation VB subject, "CAD Manager" by EnvisionCAD and in this book there is a chapter titled "VBA Project Manager". The chapter has a few exercises that use the VBA Project Manager to record series of commands and inputs but one exercise is titled "Recording a Macro" and the other is "Creating a New MVBA" and I not sure if these are one and the same or if the VBA Project Manager interface is simply used to create both styles of customized commands? At least I thought that "Macros" and "VB files" were two different animals, but I could be wrong.
Peace,
Thanks Everyone, Sounds Like Jerry Winters is the MAN!
Yes,recording a series of commands writes MVBA code, which is binary outside of MicroStation & the VBA Editor (IDE - Integrated Development Environment).
But there are 2 types of macros in MicroStation: MBE and VBA.
I started using Excel VBA pretty extensively long before MicroStation came out with its VBA. Although there are a lot of differences, I found the knowledge did transfer. It's actually harder to go the other way because CADD is an interactive tool, relying on many more "events" than are available in programs like Excel. And while "events" complicate things, you can start with simple programs and build up to more complex programs.