Quantcast
Channel: MicroStation Programming - Forum - Recent Threads
Viewing all 1677 articles
Browse latest View live

Re: [V8i VBA] Problem about Display Style

$
0
0

Sorry, I don't want a key-in. In batch-process (VBA RUN) if it is running too fast (I guess), it sometimes would be treated as a n unknown command and therefore unworkable. As John Frampton said rendering mode is different from display style. I eventually understood why the result is different from key-in.

Likely there're no solution. (I searched, no style relative to "display" in VBA). Ask for one more thing, is it possible to set Microstation V8i turning on "LEGACYDRAWORDER" automatically when opening a V7 dgn file? And then I don't need to upgrade them into V8 format and also the display style.


Re: Move view to second application window by macro / VBA

$
0
0

Hi,

I've changed two variable names & added comments to your routine to help.  The bottom line is that you have to pass the window origin and the window size to the mdl command. 

--Robert

Re: Information when the cursor is on a MicroStation's element

$
0
0

Wish list for infosnap extra features

Length in MU

Angle

Z or RL

Element Type ie line , arc, cell,shape,bspline

Re: [V8i VBA] How to check elements are 3d snapped at intersection point and insert common node at intersection.

$
0
0

Hi All,

I have been able to develop a sample macro as suggested by sivag75 and its working well with the line element. now my question is, the method "ProjectPointOnPerpendicular2" is works only with line elemnt if yes then how to project the intersection point to the shape. please clrify, it would be a great help for me.

Best regards

Prasanna

Re: [V8i VBA] How to check elements are 3d snapped at intersection point and insert common node at intersection.

$
0
0

Check the vba help file for "ProjectPointOnPerpendicular2" method. It applies to few more element types including Shape Element also.

Re: Error in Bmake while compiling

$
0
0

PMFJI, it is getting difficult to follow this thread, so maybe it is worth backing up a bit and start with this... Have you installed the minimum requirements (e.g. Visual Studio 2005, MicroStation, MicroStation SDK)? If so, use the MicroStation Developer Shell to compile one of the examples:

  1. Windows Start > Bentley > MicroStation V8i ... SDK > MicroStation Developer Shell
  2. cd to the folder where the basic example make file is
  3. bmake -a -dDLM_NO_SIGN

Just try that (exactly how it is identified) and see if that gets you a compiled application. If it does not, what OS are you running on? If it is a current one (like Windows 7), have you lowered UAC for the account you are using when compiling the application?

Re: [V8i VBA] How to check elements are 3d snapped at intersection point and insert common node at intersection.

$
0
0

I want to select all the elements which are in same level and want to find out intersection points among the selected elements.

Re: Problem using fprintf (and other) from dll


Re: Problem using fprintf (and other) from dll

$
0
0

Thankyou All for the help. The problem was resolved once I moved to VC2005.Thank you. Jarek

 

Re: [C#] List of Microstation open Form

$
0
0

Some old dialogboxes are different with .NET Form. I can use the following to get all opened .NET Forms, such as Tasks, Element Information, Element Selection, etc.

foreach (Form form in Application.OpenForms)
 {
      MessageBox.Show(form.Text);
}

HTH, Yongan

Re: [V8i VBA] How to check elements are 3d snapped at intersection point and insert common node at intersection.

$
0
0

Hi,

Store the selected elements in a Collection.

For Each m_oElement1 in Col

        For Each m_oEement2 in Col

                ' here check the intersection between element1 and element2 and create the vertices.

        Next m_oElement2

Next m_oElement1

But, this would be a time consuming process if the dgn is a dense file. Because each element will be checked against all elements.

So, you can simplify it in another way.

By putting a fence to the element1, find out the overlapping or crossing elements to it. Now check intersection points for those overlapping elements only. It will save you time.

HTH,

Sivag

Re: [V8i VBA] How to check elements are 3d snapped at intersection point and insert common node at intersection.

$
0
0

Thanks to Sivag and Jon,

Finally, I got my macro to work as i expected......

Best regards,

Prasanna

Re: Error in Bmake while compiling

$
0
0

Os is Windows 7 Professional 64-bit

It's my installed soft:

use the MicroStation Developer Shell to compile one of the examples

Result is the same

C:\PROGRA~2\Bentley\MICROS~1\MICROS~1>chdir C:\Users\jli\Documents\MDLProjects V
8i (SELECTseries 3)\basic

C:\Users\jli\Documents\MDLProjects V8i (SELECTseries 3)\basic>bmake -a -dDLM_NO_
SIGN
Bentley Systems Make Utility. Version 08.11.09.02, Jan  5 2010
Tue Jun 04 09:35:17 2013
Warning: BMakeRegisterTasks.proj is not available in C:\PROGRA~2\Bentley\MICROS~
1\MICROS~1\.
MSBUILD : error MSB4062: The "Bentley.Build.Tasks.SetBMakeMacro" task could not
be loaded from the assembly BMake.MSBuild.Interop, Version=1.0.0.0, Culture=neut
ral, PublicKeyToken=4bf6c96a266e58d4. Could not load file or assembly 'BMake.MSB
uild.Interop, Version=1.0.0.0, Culture=neutral, PublicKeyToken=4bf6c96a266e58d4'
 or one of its dependencies. The system cannot find the file specified. Confirm
that the <UsingTask> declaration is correct, and that the assembly and all its d
ependencies are available.
BMAKE: call trace
    line:  122, C:\PROGRA~2\Bentley\MICROS~1\MICROS~1\mdl\include\DeterminePolic
yFile.mki
    line:   63, C:\PROGRA~2\Bentley\MICROS~1\MICROS~1\mdl\include\ConfigurePolic
y.mki
    line:   28, C:\PROGRA~2\Bentley\MICROS~1\MICROS~1\mdl\include\mdl.mki
    line:   24, C:\Users\jli\Documents\MDLProjects V8i (SELECTseries 3)\basic\ba
sic.mke
Tue Jun 04 09:35:21 2013, elapsed time: 0:04

C:\Users\jli\Documents\MDLProjects V8i (SELECTseries 3)\basic>bmake basic -a -dD
LM_NO_SIGN
Bentley Systems Make Utility. Version 08.11.09.02, Jan  5 2010
Tue Jun 04 09:35:48 2013
Warning: BMakeRegisterTasks.proj is not available in C:\PROGRA~2\Bentley\MICROS~
1\MICROS~1\.
MSBUILD : error MSB4062: The "Bentley.Build.Tasks.SetBMakeMacro" task could not
be loaded from the assembly BMake.MSBuild.Interop, Version=1.0.0.0, Culture=neut
ral, PublicKeyToken=4bf6c96a266e58d4. Could not load file or assembly 'BMake.MSB
uild.Interop, Version=1.0.0.0, Culture=neutral, PublicKeyToken=4bf6c96a266e58d4'
 or one of its dependencies. The system cannot find the file specified. Confirm
that the <UsingTask> declaration is correct, and that the assembly and all its d
ependencies are available.
BMAKE: call trace
    line:  122, C:\PROGRA~2\Bentley\MICROS~1\MICROS~1\mdl\include\DeterminePolic
yFile.mki
    line:   63, C:\PROGRA~2\Bentley\MICROS~1\MICROS~1\mdl\include\ConfigurePolic
y.mki
    line:   28, C:\PROGRA~2\Bentley\MICROS~1\MICROS~1\mdl\include\mdl.mki
    line:   24, C:\Users\jli\Documents\MDLProjects V8i (SELECTseries 3)\basic\ba
sic.mke
Tue Jun 04 09:35:48 2013, elapsed time: 0:00

C:\Users\jli\Documents\MDLProjects V8i (SELECTseries 3)\basic>

have you lowered UAC for the account you are using when compiling the application?

what is the " lowered UAC "?

Re: Move view to second application window by macro / VBA

$
0
0

Hi,

Thanks Robert, now its more clear what´s happen in this macro :)

Now I will try to add all other needed settings like view attributes and design file settings to my macro.

For the view attribute I did find a good solution by doing that through key in commands.

But for the design file settings.....?? I tried to set up the working units (format, master & sub units, accuracy, resolution and solids) by a macro, but it didn´t work since no changes are recorded to the macro.

It looks like there are many small adjustments that can not be recorded by a macro.....!?

Perhaps I need to open a new theme for this problem?

Regards

Raphael

Re: Error in Bmake while compiling

$
0
0

Julia Frid:
what is the " lowered UAC

It is the strength "USER ACCESS CONTROL" from Windows from Version 7 on.
You may set it to very low, is it a suggestion by Bentley?!  I think!

From Windows Start use UAC.EXE and watch what you may select!


Re: Error in Bmake while compiling

$
0
0

 

Frank_Klein:
It is the strength "USER ACCESS CONTROL" from Windows from Version 7 on.
You may set it to very low, is it a suggestion by Bentley?!  I think!

From Windows Start use UAC.EXE and watch what you may select!

I selected "Never notify" (This is the least secure setting. When you set UAC to never notify, you open up your computer to potential security risks) and restarted PC, but ...nothing changed for my compilation :-(((

Re: ListRow Question

Re: Error in Bmake while compiling

$
0
0

Ok, I uninstalled all soft from Bentley and made fresh install.

And I didn't get this strange error message!!!! But after compilation didn't find basic.ma on my computer.

in folder with application (C:\Program Files (x86)\Bentley\MicroStation V8i (SELECTseries)\MicroStation\mdlapps) was created only basic.dll and basic.pdb

C:\PROGRA~2\Bentley\MICROS~2\MICROS~1>chdir C:\Users\jli\Documents\MDLProjects V8i (SELECTseries 3)\basic

C:\Users\jli\Documents\MDLProjects V8i (SELECTseries 3)\basic>bmake basic
Bentley Systems Make Utility. Version 08.11.09.02, Jan  5 2010
Tue Jun 04 16:39:49 2013
 PolicyFile = C:\PROGRA~2\Bentley\MICROS~2\MICROS~1\mdl\include\AssertPublicMicr
oStationPolicy.mki

[== Building C:\PROGRA~2\Bentley\MICROS~2\MICROS~1\mdl\objects\basiccmd.h, (C:\Users\jli\Documents\MDLPRO~1\basic\basiccmd.r) ==]
C:\PROGRA~2\Bentley\MICROS~2\MICROS~1\mdl\bin\rcomp @C:\PROGRA~2\Bentley\MICROS~2\MICROS~1\mdl\objects\make.opt
MicroStation Resource Compiler 08.11.09
   Generating header file (C:\PROGRA~2\Bentley\MICROS~2\MICROS~1\mdl\objects\basiccmd.h) ... done.

[== Building C:\PROGRA~2\Bentley\MICROS~2\MICROS~1\mdl\objects\basictyp.r, (C:\U
sers\jli\Documents\MDLPRO~1\basic\basictyp.mt) ==]
C:\PROGRA~2\Bentley\MICROS~2\MICROS~1\mdl\bin\rsctype @C:\PROGRA~2\Bentley\MICROS~2\MICROS~1\mdl\objects\make.opt
MicroStation Type Resource File Generator 08.11.09

[== Building C:\PROGRA~2\Bentley\MICROS~2\MICROS~1\mdl\objects\basictyp.rsc, (C:
\PROGRA~2\Bentley\MICROS~2\MICROS~1\mdl\objects\basictyp.r) ==]
C:\PROGRA~2\Bentley\MICROS~2\MICROS~1\mdl\bin\rcomp @C:\PROGRA~2\Bentley\MICROS~2\MICROS~1\mdl\objects\make.opt
MicroStation Resource Compiler 08.11.09

[== Building C:\PROGRA~2\Bentley\MICROS~2\MICROS~1\mdl\objects\basic.obj, (C:\Us
ers\jli\Documents\MDLPRO~1\basic\basic.cpp) ==]
cl -IC:\PROGRA~2\Bentley\MICROS~2\MICROS~1\mdl\objects\   -IC:\PROGRA~2\Bentley\
MICROS~2\MICROS~1\mdl\include -IC:\PROGRA~2\Bentley\MICROS~2\MICROS~1\mdl\includ
e\geom -IC:\PROGRA~2\Bentley\MICROS~2\MICROS~1\mdl\include\shareids -GS- -fp:fas
t -EHc -GR -GdF -D_X86_=1 -Di386=1 -c -W3 -DWIN32 -DwinNT -MD -D_VISCXX -Gy -wd4
996 -Ox -Oy- -Os -D_SECURE_SCL_THROWS=1 -D_CONVERSION_DONT_USE_THREAD_LOCALE -D_
SECURE_SCL=0 -DWIN32_LEAN_AND_MEAN   -nologo -WX -Zi -FdC:\PROGRA~2\Bentley\MICR
OS~2\MICROS~1\mdl\objects\objects.pdb    -EHs  -arch:SSE2  -FoC:\PROGRA~2\Bentle
y\MICROS~2\MICROS~1\mdl\objects\basic.obj C:\Users\jli\Documents\MDLPRO~1\basic\
basic.cpp
basic.cpp

[== Building "C:\PROGRA~2\Bentley\MICROS~2\MICROS~1\mdlapps\basic.dll", (C:\PROGRA~2\Bentley\MICROS~2\MICROS~1\mdl\objects\basic.obj) ==]
link -out:"C:\PROGRA~2\Bentley\MICROS~2\MICROS~1\mdlapps\basic.dll"  -WX  -OPT:N
oWin98    -Ignore:4087 -Ignore:4089 -Release   -debug -incremental:no -fixed:no
@C:\PROGRA~2\Bentley\MICROS~2\MICROS~1\mdl\objects\basiclink.rsp
Microsoft (R) Incremental Linker Version 8.00.50727.42
Copyright (C) Microsoft Corporation.  All rights reserved.

-dll
"-out:C:\PROGRA~2\Bentley\MICROS~2\MICROS~1\mdlapps\basic.dll"
"-implib:C:\PROGRA~2\Bentley\MICROS~2\MICROS~1\mdl\objects\basic.lib"
-map:C:\PROGRA~2\Bentley\MICROS~2\MICROS~1\mdl\objects\basic.map
"-pdb:C:\PROGRA~2\Bentley\MICROS~2\MICROS~1\mdlapps\basic.pdb"
-fixed:no
-MANIFESTFILE:C:\PROGRA~2\Bentley\MICROS~2\MICROS~1\mdl\objects\basic.dll.Manife
st
C:\PROGRA~2\Bentley\MICROS~2\MICROS~1\mdl\objects\basic.obj C:\PROGRA~2\Bentley\MICROS~2\MICROS~1\mdl\library\toolsubs.lib C:\PROGRA~2\Bentley\MICROS~2\MICROS~1
\mdl\library\BentleyDgn.lib C:\PROGRA~2\Bentley\MICROS~2\MICROS~1\mdl\library\ditemlib.lib C:\PROGRA~2\Bentley\MICROS~2\MICROS~1\mdl\library\mdllib.lib
C:\PROGRA~2\Bentley\MICROS~2\MICROS~1\mdl\library\mdlbltin.lib
C:\PROGRA~2\MICROS~2\VC\platformsdk\lib\gdi32.lib C:\PROGRA~2\MICROS~2\VC\platformsdk\lib\user32.lib C:\PROGRA~2\MICROS~2\VC\platformsdk\lib\kernel32.lib C:\PROGRA~2\MICROS~2\VC\lib\msvcrt.lib
   Creating library C:\PROGRA~2\Bentley\MICROS~2\MICROS~1\mdl\objects\basic.lib
and object C:\PROGRA~2\Bentley\MICROS~2\MICROS~1\mdl\objects\basic.exp
mt.exe -manifest C:\PROGRA~2\Bentley\MICROS~2\MICROS~1\mdl\objects\basic.dll.Manifest -outputresource:"C:\PROGRA~2\Bentley\MICROS~2\MICROS~1\mdlapps\basic.dll";
2
Microsoft (R) Manifest Tool version 5.2.3790.2014
Copyright (c) Microsoft Corporation 2005.
All rights reserved.
BMAKE: call trace
    line:  442, C:\PROGRA~2\Bentley\MICROS~2\MICROS~1\mdl\include\dlmlink.mki
    line:   93, C:\Users\jli\Documents\MDLProjects V8i (SELECTseries 3)\basic\basic.mke
Tue Jun 04 16:39:58 2013, elapsed time: 0:09

C:\Users\jli\Documents\MDLProjects V8i (SELECTseries 3)\basic>

Re: Error in Bmake while compiling

$
0
0

Julia Frid:
I didn't get this strange error message!

However, something went wrong.  There's a BMAKE call trace that tells us the dlmlink.mki failed at line 442.  However, I am puzzled by that message because it looks like that line is empty — it's the last or penultimate line of that file, which are both blank.

Try adding the following to your basic.mke file...

DLM_NO_SIGN             = 1             # this is an example and should not be signed.

The new line should be copied just  before this line...

DLM_NO_DLS              = 1             # USE DLLEXPORT IN .CPP


Re: Error in Bmake while compiling

$
0
0

Another option to what Jon suggests is to use the following statement

bmake -a -dDLM_NO_SIGN

Viewing all 1677 articles
Browse latest View live


Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>