Author Topic: Microstation VBA  (Read 18859 times)

0 Members and 1 Guest are viewing this topic.

BlackBox

  • King Gator
  • Posts: 3770
Microstation VBA
« on: December 01, 2011, 01:46:57 PM »
I feel like a noob all over again... Would someone please point me in the right direction of a good VBA reference, specific to Microstation V8(i) (if possible)?
"How we think determines what we do, and what we do determines what we get."

Matt__W

  • Seagull
  • Posts: 12955
  • I like my water diluted.
Re: Microstation VBA
« Reply #1 on: December 01, 2011, 01:48:07 PM »
Autodesk Expert Elite
Revit Subject Matter Expert (SME)
Owner/FAA sUAS Pilot @ http://skyviz.io

BlackBox

  • King Gator
  • Posts: 3770
Re: Microstation VBA
« Reply #2 on: December 01, 2011, 01:52:17 PM »
Thanks for the prompt response - I'll give the hyperlink a look-see. :beer:

Microstation really like's itself judging by the linky above.

... You have no idea, how much I dread working with this outdated, half-wit State DoT customized, malarkey. *sigh*

"How we think determines what we do, and what we do determines what we get."

MP

  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
Re: Microstation VBA
« Reply #3 on: December 01, 2011, 01:55:56 PM »
Microstation really like's itself judging by the linky above.

Engineering Technologist • CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.comhttp://cadanalyst.slack.comhttp://linkedin.com/in/cadanalyst

BlackBox

  • King Gator
  • Posts: 3770
Re: Microstation VBA
« Reply #4 on: December 01, 2011, 02:11:25 PM »
Microstation really like's itself judging by the linky above.

I'm not sure if it's just the folks in my office, or what, but seemingly that essence rubs off on the veteran users too... They don't know what VBA stands for, and cannot possibly understand why I would need to use anything other than what the State DoT has provided us.  :roll:

How 'bout... 'Cause I can do it better? 

Ummm... Well... You know, once I learn the Microstation Object Model, etc. :lol: LoL
"How we think determines what we do, and what we do determines what we get."

alanjt

  • Needs a day job
  • Posts: 5352
  • Standby for witty remark...
Re: Microstation VBA
« Reply #5 on: December 01, 2011, 02:32:38 PM »
Microstation really like's itself judging by the linky above.


That picture will haunt my dreams.
Civil 3D 2019 ~ Windohz 7 64bit
Dropbox

BlackBox

  • King Gator
  • Posts: 3770
Re: Microstation VBA
« Reply #6 on: December 01, 2011, 02:35:16 PM »
That picture will haunt my dreams.

What exactly is "haunting"... Microstation, or what you look like?  :-P
« Last Edit: December 01, 2011, 02:38:28 PM by RenderMan »
"How we think determines what we do, and what we do determines what we get."

Matt__W

  • Seagull
  • Posts: 12955
  • I like my water diluted.
Re: Microstation VBA
« Reply #7 on: December 01, 2011, 02:41:12 PM »
That picture will haunt my dreams.
Oh really?  Well then what about......




THIS??!?
Autodesk Expert Elite
Revit Subject Matter Expert (SME)
Owner/FAA sUAS Pilot @ http://skyviz.io

MP

  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
Re: Microstation VBA
« Reply #8 on: December 01, 2011, 02:43:01 PM »
Deodorant.
Deodorant.
Deodorant.
Engineering Technologist • CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.comhttp://cadanalyst.slack.comhttp://linkedin.com/in/cadanalyst

alanjt

  • Needs a day job
  • Posts: 5352
  • Standby for witty remark...
Re: Microstation VBA
« Reply #9 on: December 01, 2011, 02:44:19 PM »


There are things I have seen that cannot be unseen.
Civil 3D 2019 ~ Windohz 7 64bit
Dropbox

Keith™

  • Villiage Idiot
  • Seagull
  • Posts: 16899
  • Superior Stupidity at its best
Re: Microstation VBA
« Reply #10 on: December 07, 2011, 06:46:33 PM »
I have the V8 VBA reference chm file along with the API and MDL references. If you would like them let me know.
Proud provider of opinion and arrogance since November 22, 2003 at 09:35:31 am
CadJockey Militia Field Marshal

Find me on https://parler.com @kblackie

BlackBox

  • King Gator
  • Posts: 3770
Re: Microstation VBA
« Reply #11 on: December 07, 2011, 07:06:35 PM »
I have the V8 VBA reference chm file along with the API and MDL references. If you would like them let me know.

Thanks Keith!

I only have V8i installed, and did get IT to install the V8i MDL SDK as well. My problem is, that I have been unable to find a single example of a VBA Module that interacts with the CadInputQueue Object, using the GetInput Method with various MsdCadInputTypes, etc..

Every example that is included in the V8i MicrostationVBA.chm that supplies a point to a function is hard-coded (meaning the VBA code supplies the X,Y,Z) - How does one even do something as simple as prompt the user for MbePoint, or Point3D (if you know)?

I'm finding the development documentation, similar to the platform in general... Cumbersome, difficult to work with, and necessary to jump through additional "hoops" for the same (if not similar) result.
"How we think determines what we do, and what we do determines what we get."

Keith™

  • Villiage Idiot
  • Seagull
  • Posts: 16899
  • Superior Stupidity at its best
Re: Microstation VBA
« Reply #12 on: December 07, 2011, 07:35:25 PM »
I'd have to reinstall it to look at the code that I wrote some time ago, I don't even remember if the code actually did anything or if it was just a loader for the VB class I was using.

You are welcome to take a look at it if you want.
Proud provider of opinion and arrogance since November 22, 2003 at 09:35:31 am
CadJockey Militia Field Marshal

Find me on https://parler.com @kblackie

BlackBox

  • King Gator
  • Posts: 3770
Re: Microstation VBA
« Reply #13 on: December 08, 2011, 01:09:17 AM »
I certainly don't mean to cause you undue effort, but if you're willing to provide me that sample, I'd really appreciate it.
"How we think determines what we do, and what we do determines what we get."

Keith™

  • Villiage Idiot
  • Seagull
  • Posts: 16899
  • Superior Stupidity at its best
Re: Microstation VBA
« Reply #14 on: December 08, 2011, 02:01:04 PM »
Here is the stuff I have. I am still trying to find the actual code, but I'm not having any luck.
Proud provider of opinion and arrogance since November 22, 2003 at 09:35:31 am
CadJockey Militia Field Marshal

Find me on https://parler.com @kblackie