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 ArticleRE: [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 ArticleRE: [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 ArticleRE: 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 ArticleRE: [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[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 ArticleRE: 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 ArticleRE: 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 ArticleSelection 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 ArticleRE: [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 ArticleRE: [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 ArticleRE: [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 ArticleRE: [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 ArticleRE: [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 ArticleRE: [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 ArticleRE: [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 ArticleRE: [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