Quantcast
Channel: MicroStation Programming Forum - Recent Threads
Browsing all 7260 articles
Browse latest View live

RE: Selection Set

From what I know, you can deal with references' levels by access each of the references of the a model and get their levels in the similar fashion to the sample code from Jan. In VBA terms, references...

View Article


Image may be NSFW.
Clik here to view.

RE: [c# v8i] Addin and VBA. RegAsm error.

Yes, I can!VS report:Refernces in Microstation VBA:Update:Example I compile project ExampleComServer in directory "c:\Opten\ExampleComServer\".I copy bentley.interop.microstationdgn.dll from...

View Article


RE: [c# v8i] Addin and VBA. RegAsm error.

[quote user="Maxim Kulikov"]Now I copy file ustation.dll [/quote]Bad idea!  There are so many dependencies, you'll end up copying all the DLLs.I notice that you set environment variable MS in your...

View Article

Image may be NSFW.
Clik here to view.

RE: Selection Set

[quote user="Cata M"]The reference file and the active model have the same name[/quote]You can distinguish between reference files by assigning a logical name to each one.  Each logical name in a set...

View Article

Image may be NSFW.
Clik here to view.

RE: [c# v8i] Addin and VBA. RegAsm error.

I think about this.And PATH:But this does not affect the compilation.Now I want try compile this project on third computer with another OS (Windows 7 x64).Maybe the result will be different...

View Article


Image may be NSFW.
Clik here to view.

[c# v8i] Addin and VBA. RegAsm error.

Hi!I'm trying to do my dll (c# addin) available for VBA.I found two articles how to do...

View Article

RE: Selection Set

[quote user="Jon Summers"]Add each found element to a selection set[/quote]This process is very slow. I recommend to read existing dicussions (e.g. this one) and to use discussed alternatives.With...

View Article

RE: Selection Set

[quote user="Jan Slegr"]This process is very slow[/quote]Maybe, but it's simple.  For a beginner (one who thinks BASIC is easier than VBA), the additional understanding of MicroStation and VBA in the...

View Article


Selection Set

Hello everybody. In the beginning, my english is too bad, so sorry for that!I'm novice in microstation programming, so I need you to help me for some questions in simple BASIC, not VBA.My Microstation...

View Article


RE: [CONNECT C++] Crash

[quote user="Zhen Li"]Could you give me some hints why it crashed?[/quote]Probably Possibly an invalid font number.  Where do you get the value of IthSystemFont?You can't assume that font numbers form...

View Article

RE: [CONNECT C++] Crash

It won't crash just because a font with the given number doesn't exist - it will just return nullptr. You should test that modelRef is non-null. GetFontByNumber(fontNum, modelRef) is just going to call...

View Article

RE: [CONNECT C++] Crash

Hi, I did find out that "modelref " is a invalid pointer from following code: -------------------- DgnModelRefP modelref = ISessionMgr::GetActiveDgnModelRefP(); -------------------- Now, I have another...

View Article

RE: [CONNECT C++] Crash

How can I get valid "DgnFileP" pointer? Thanks

View Article


RE: [CONNECT C++] Crash

[quote user="Zhen Li"]I did find out that "modelref " is a invalid pointer from following code: -------------------- DgnModelRefP modelref = ISessionMgr::GetActiveDgnModelRefP();[/quote]Why is the...

View Article

RE: [CONNECT C++] Crash

Please describe in what context you are calling GetActiveDgnModelRefP(). In general if a .dgn file has been opened in mstn and fully loaded, it should return non-null. It can return null or 0xbadf00d...

View Article


RE: [CONNECT C++] Crash

Jon's suggestion isn't going to work if the active model is null/invalid - GetActiveDgnFile() just returns GetActiveDgnModelRefP()->GetDgnFileP(), or null if active model is null/invalid...

View Article

[CONNECT C++] Crash

Hi,I am trying to get font names by using following code:--------------------------------            DgnModelRefP modelref = ISessionMgr::GetActiveDgnModelRefP();            DgnFont* pDGNFont =...

View Article


RE: [Connect VBA] Problem with rotation matrix3d

Hi,Please find the dgn I use to test the routine here: www.filedropper.com/woningachtermaalRegards,Werner

View Article

[Connect VBA] Problem with rotation matrix3d

Hello,I wrote in "Microsstation V8i SS3" the VBA code below.Now i'm trying to use this VBA code in "Microstation Connect" but, when running the vba, the origin of the textelement is not right.The text...

View Article

RE: [CONNECT C++] Crash

Design File EventsPaul alluded to an issue, but you may have missed his point.When a DGN file is first opened, there is no valid DgnFileP nor an active model.  Hence, all pointers are valid until the...

View Article
Browsing all 7260 articles
Browse latest View live


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