RE: Using the MicroStation SDK with Power InRoads.
Hi Jason,[quote user="Jason Brame"]I will be using C#.NET.[/quote]In such case I guess you don't need MicroStation SDK at all ... with some exceptions:If you need to call MDL function from C# code...
View ArticleUsing the MicroStation SDK with Power InRoads.
My company has recently changed from MicroStation to Power InRoads. Both SS2 and SS4 varieties have been installed. Is it possible to use the MicroStation SDK to access the MicroStation functions of...
View ArticleRE: Need Assistance in VBA Code
My assumption was that if you provided mvba, you starts macro from MicroStation and calls Excel as external Application (not in your code). In such case there is no dependency on Excel, because the...
View ArticleRE: Need Assistance in VBA Code
[quote user="BFrancis"] I don't know if my Excel call is making this issue[/quote]That statement is ambiguous: are you calling Excel VBA from MicroStation VBA, or are you calling MicroStation VBA from...
View ArticleRE: Need Assistance in VBA Code
Hi Jon, May be I stated wrongly. What i mean by excel call is following statement. Workbooks.Open (CFileName)
View ArticleRE: Need Assistance in VBA Code
Hi Jan, May be it was wrong wording. What I meant was the following code. Workbooks.Open (CFileName) Regards, Benjamin
View ArticleRE: Need Assistance in VBA Code
But where Workbooks object comes from? If VBA code is started from MicroStation, I guess there has to be some MicroStation VBA > Excel initialization, where Excel Application object is created....
View ArticleRE: Need Assistance in VBA Code
What i did was...Included Microsoft Excel 15.0 Object LibraryThen stored chose excel filename to CFileNameCFileName = OpenFileChooser("Select an Mapping Excel File", "d:\MyFolder\")Then i used...
View ArticleRE: Need Assistance in VBA Code
[quote user="BFrancis"]Actually i did not initialize Workbooks. It was available.[/quote]With all respect, I am not expert for calling Office apps from MicroStation, but it seems there is a...
View ArticleRE: Need Assistance in VBA Code
Thank you Jan, I will check the article. I think i should initialize excel application object properly.
View ArticleNeed Assistance in VBA Code
Dear All, I am trying to write a small VBC code and need some assistance.I am trying to use ElementEnumerator object for accessing elements from DGN but I am always getting its empty. It would great...
View ArticleRE: [CONNECT C++] DialogItemHookHandler
Hi Jon,Take a look at the following MicroStationAPI.chm help topic that provides some migration information on this topic with code snips.Modules > Contents & Articles > Getting Started >...
View Article[CONNECT C++] DialogItemHookHandler
I notice that, in addition to the legacy DialogItemMessage and related C-style structs, there is a C++ DialogItemHookHandler class that has various methods to respond to dialog events. See header file...
View ArticleRE: Need Assistance in VBA Code
Hi All,I have amended the code. What I want to do is if selected element have a specific Family + Part then replace with new Part. I am getting a runtime error. If anyone can help me to fix this...
View ArticleRE: Need Assistance in VBA Code
Hi Benjamin, please read the best practices again: communities.bentley.com/.../77384 You got a new question, so IMHO please open a new post/thread
View ArticleRE: Need Assistance in VBA Code
Hi Frank, Thank you. I will add a new post. Sorry about that. Regards, Benjamin
View Article[V8i SS6 VBA] Run-time error '-2147220601 (80040387)' at...
Dear All,I am getting run-time error while running the attached code.Following are the version details. AECOsim SS6 Version 08.11.09.829 Full code is attached. it will be a great help if someone can...
View ArticleRE: Using the MicroStation SDK with Power InRoads.
Hi Jason,Bentley uses the same core MicroStation engine across their products. The same core objects and functions will be available within the V8i family. Only the reference needs to be changed to...
View Article[VBA] ProjectPointOnPerpendicular1 BiasPoint
How the BiasPoint is used in ProjectPointOnPerpendicular1 method?According to VBA help the BiasPoint(A Point3d expression. The point closest to the end of the projection) is used to determine how far...
View ArticleRE: [CONNECT] Area Measurement
Also text fields doesn't honor MS_MEASURE_AREA_UNIT2 variable so label "sq. m" is shown as "m2" or even better as "m²" if using Truetype font.
View Article