MicroStation variables

Status
Not open for further replies.

Michon Cirkel

Usenet Archive
Joined
Jan 16, 2002
Messages
4
Reaction score
0
Hello people,

I'm using the MbeCExpressionString, ...Long functions for retrieving values of variables from MicroStation in a MBE program and now I'm looking for some tool that can reveal the names of variables registered in MicroStation runtime. Like for some tool I'm making now I'm looking for the variabeles in which raster reference information is stored. Does anyone know if there is anything like a 'variable browser' available?

Thanks a lot,

Michon Cirkel
devMap
 
MicroStation itself can do. Please select main menu
'Workspace-->Configuration' and you can browse any MicroStation variables.

Foo.
 
Those are not the variables I mean, I mean the internal variables. Like setting from the tcb block in the next example of code in which I read out the range of a view:

factor = mbeDgnInfo.uorPerSub * mbeDgnInfo.subPerMaster viewLB.x = mbecexpressionlong("tcb->view[" & trim$(str$(viewNum)) & "].origin.x") / factor viewLB.y = mbecexpressionlong("tcb->view[" & trim$(str$(viewNum)) & "].origin.y") / factor viewRT.x = viewLB.x + mbecexpressionlong("tcb->view[" & trim$(str$(viewNum)) & "].delta.x") / factor viewRT.y = viewLB.y + mbecexpressionlong("tcb->view[" & trim$(str$(viewNum))
& "].delta.y") / factor

Anyone?

Michon Cirkel
devMap

foo wrote:

MicroStation itself can do. Please select main menu
'Workspace-->Configuration' and you can browse any MicroStation variables.

Foo.
 
Michon ...

Does anyone know if there is anything like a 'variable browser' available?

If you're asking about MDL, the 'variable browser' is a text editor reading the
*.h (and *.fdf ) files in \MicroStation\mdl\include\

The concept of a 'variable browser' is not part of a language, such as C or C++, but part of the development environment (IDE) used to construct applications using a language. There is, unfortunately, no IDE for MDL.
 
I don't use MDL, I use MBE. In MBE I've got the possibility to read and write MicroStation variables that are not accessable through MBE functions. Bentley created the mbeCExpressionString and MbeSetAppVariable functions for reading and writing. Unfortunately you need to know the entire "path" to the variable like tcb->view[1].origin.x. I found out this one using the header files and function definition files and the help of an MDL programmer, but I would like to get insight in all of them, through somtething like a "variable browser".

Now a spoke to a programmer and he told me it might be possible to build one using the CExpression structure and the mdlDialog_publishComplexVariable and mdlCExpression_symbolPublish functions (if I understood right, I'm no MDL programmer), but it would be easier if it already existed.

Michon Cirkel
devMap
 
Michon ...

I don't use MDL, I use MBE. In MBE I've got the possibility to read and write MicroStation variables that are not accessable through MBE
functions.
Bentley created the mbeCExpressionString and MbeSetAppVariable functions for reading and writing.

So your question is about MDL, even though you're using it via MBE.

Unfortunately you need to know the entire "path" to the variable like tcb->view[1].origin.x. I found out this one using the header files and function definition files and the help of an MDL programmer

This is how we all have to find this information. When you find a better way, let us know, please 8-)
 
Status
Not open for further replies.

Latest threads

Back
Top