473,480 Members | 1,814 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

VB6 to communicate with Microstation (*.dgn) files

4 New Member
Dear All,



I am absolutely just a couple of weeks to learn VB6. Now, I am eager to learn how to communicate this VB6 to Microstation (especially microstation V8).

I just found how to activate the "project--reference" for MicrostationV8 in VB6.
But, I still don't know how to use it.

First, I have several *.dgn files which contain some text files inside those drawing. What I need is how my VB6 control those *.dgn files and change the text automatically as I chose one or more words to replace it with.

For Example :
Test.dgn --> has text inside the file like "TEXT FOR TESTING MICROSTATION".
Then, with my VB6 I would like to open Microstationv8 with "visible = true" so that user might see the "process" going on.
After that, inside VB6, the code will be sent to Microstation to do "action" to change the text into : "TEXT FOR changed Test in My MicroV8".

Please help me...

I cannot paste the code here since I don't know how to use Bentley Microstation Project Reference....

Please anyone help me... That would be a great favor... Please.
Aug 7 '07 #1
3 3589
Dököll
2,364 Recognized Expert Top Contributor
I cannot paste the code here since I don't know how to use Bentley Microstation Project Reference....

Please anyone help me... That would be a great favor... Please.
Could not fin\d too much on this for you. I suggest you stay tuned though for more expert opinions:

http://www.eatyourcad.com/article.php?incat_id=1068

Above link seems to have abi of information. Please let us know if helpful...
Aug 8 '07 #2
mortinrido
4 New Member
Could not fin\d too much on this for you. I suggest you stay tuned though for more expert opinions:

http://www.eatyourcad.com/article.php?incat_id=1068

Above link seems to have abi of information. Please let us know if helpful...
Well, thanks for giving me the link. Till now, I am almost "lost" to search for what I need..

First, I need my VB6 to communicate with MicrostationV8... But, I don't know how to do it from the beginning.
Then, with successful communication of that, I might then interact with object in Microstation...
Ugh, I am really eager to know the code. So far, I just could put forward my idea to this forum.
Aug 8 '07 #3
reza akbari
1 New Member
@mortinrido
Hi Mortinrido

Just open MicrostationVBA.chm file and search for ApplicationObjectConnector Object, and you will find the way :
When a program running outside of MicroStation calls CreateObject("MicroStationDGN.Application"), the call attaches to a running instance of MicroStation if there is one. Otherwise, it starts a new instance of MicroStation. Subsequent calls to CreateObject("MicroStationDGN.Application") attach to the same instance of MicroStation.

CreateObject("MicroStationDGN.ApplicationObjectCon nector") always starts a new instance of MicroStation. A program can use GetObject(, "MicroStationDGN.ApplicationObjectConnector") to attach to an instance of MicroStation that is already running or to test to see if MicroStation is already active.

See Connecting to MicroStation from a Separate Process for examples of how to use GetObject and CreateObject.
Feb 23 '12 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

5
4693
by: Jean-Pierre Bergamin | last post by:
Dear python-Community We are forced to use a quite old simulation software that's based on Modula-2. The idea is now to let this software "talk" to the outside world over a TCP/IP network. ...
11
5493
by: kd | last post by:
Hi All, Can anybody suggest as to what is the best way communicate between 2 applications residing on the same machine? Thanks. kd
2
1534
by: Madhusudhanan Chandrasekaran | last post by:
Hi: This question is not directed "entirely" at python only. But since I want to know how to do it in python, I am posting here. I am constructing a huge matrix (m x n), whose columns n are...
5
2236
by: Aleksej | last post by:
Hi All, When two processes located at different nodes communicate with each other, the interface of the communication can be implemented in two ways: 1) as a protocol; the data are defined as...
12
1853
by: MrQuan | last post by:
G'day all, I have a requirement to communicate between two or more PCs over the Internet, however I have no idea how to go about this. I'm not talking about a chat programme as such, I want to...
1
1712
by: mortinrido | last post by:
Dear All, Currently i'm using VB6. I have several files of *.dgn or *.pdf within my folder. For example : I have chosen random folder (using dialog box) which contains some above files and...
15
1398
by: Fro | last post by:
Hi, I have a php-script which writes uploaded files into a directory. My php-script gives a specific names to the saved files. I found in the directory a file which has a name which could not be...
4
3846
by: Hero Doug | last post by:
A friennd and I were talking about OS development last night and a few questions were raised that need some clarification. I did the usual search and it turned up the usual garbage, so I'm hoping...
0
1145
by: subramanyamj | last post by:
I need to extract 3D Solids from Shapes in Microstation. I am using C# to develop this tool
0
7037
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7034
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
6886
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5324
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4472
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
2990
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
2976
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1294
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
558
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.