"Drive" Microstation Dialog box with VBA

hi,

 

In excel (vba) when i build a dlalogbox with text field or checkbox, i name then such as Tbox1 (for txtbox) and Chkbox3 (for checbox)

so in VBA i can exploit thoses element (testing state, or modifing values) with commands  like TBox1.Value = "something".

 

Haven't actualy tested this with Microstation, but i'm sure, since it's also VBA, the same thing in possible.

 

So here's the question :

when i pop up a DialogBox (print, copy, scale, hatching) within checkbox, or text field to fill/check/uncheck

Is it a way, or a "help" giving me the 'internal' name of thoses ? or and explaining how to use it ?

 

an 'simplified' exemple with rotate :

rotation dialbox contain :

  • methode
    • 2 points
    • 3 points
    • angular value
  • check box "make copy"
    • checked
    • unchecked

what is the structure using VBA to control rotation ?

MyView.rotateElement (oelem, [choosed methode], [copy or no], [angular value, if], [center point], [start point if], [endpoint if])

or ? is there 3 commands  such as

rotateElementByAngle (param)

rotateElementBy2points(param)

rotateElementBy3points(param)

Don't forget, my question is general (rotate is only an example)

I won't ask u questions witch solution is given in help files... but how can i do otherwise, i haven't acces to help !

 

 

In my company, they are very timid, and afraid they do stupid things. So they lock everything they can,

I haven't VBA Microstation's help installed and a lot of other think don't work ...

 

 

 

 

  • Sylvain M said:
    In my company, they are very timid, and afraid they do stupid things. So they lock everything they can, I haven't VBA Microstation's help installed ...

    That is, to say the very least, unfortunate. One of the more useful features is the 'hot key' help in VBA. With your editing cursor somewhere in a keyword (e.g. TextElement), VBA help responds by moving to the help page for that topic.

    Sylvain M said:
    a lot of other think don't work ...

    That is even more unfortunate. VBA depends on many DLLs, including some provided by Microsoft in the operating system, and others provided by Bentley in the MicroStationDGN.Application. If something doesn't work, how can you tell whether you made a mistake, or if the relevant functionality (DLL) is missing?

    Could you persuade your company to let you have a stand-alone computer — one that is not connected to your company network? You would benefit immensely, and so would they: by having a more productive developer!

    Regards, Jon Summers
    LA Solutions

     
    Regards, Jon Summers
    LA Solutions

  • with a machine count of 50 000, and the wiwh (will/obligation) to get a maximum of them with exactly the same installation... to make much more easy the "sav".

    No, it's impossible.

    That's why i'm  here for my questions ....boring you and readers. ;-)

    In case of ; the dialog box that realy interessing me in the "printBox"

  • Hi NeurOne

    Are you able to download   ftp://docs.bentley.com/pub/dl/msv85064vbaenhelp.exe ?   It's the VBA Help 2004 edition.

    Regards

    Frank

    since 1985: GIS, CAD, Engineering (Civil)  Senior Consultant : [Autodesk Civil 3D , Esri ArcGIS, VertiGIS: in previous days : Bentley MS V4 - V8i, GeoGraphics, Bentley Map V8i, InRoads,  HHK Geograf, IBr DAVID] :  Dev: [C, C++, .NET, Java, SQL, FORTRAN, UML]
    [direct quote by: http://en.wikipedia.org/wiki/Helmut_Schmidt]: "Wer Kritik übel nimmt, hat etwas zu verbergen"
    Wer Grammatik- und/oder Rechtschreibfehler findet, der darf sie behalten :-)

  • i'll try it @home. ftp is forbidden @work

    And does someone have any idea about my problem  : printing documents with VBA command ??

  • what is your question about printing? (I don't see it on this thread)

  • The simplest solution is to send print commands to MicroStation.  Use MicroStation's keyin browser to find what commands are supported by the printer (PLOTDLG application).

     
    Regards, Jon Summers
    LA Solutions