RE: How to disable or enable the Menuitem or Toolitem of microstation using c#?
Hi JON, I am using MicroStation V8i 8-digit version number is 08.11.09.829 I am not using Microstation in ProjectWise environment. I am using the MicroStation V8i programming API with C# I am using...
View ArticleRE: How to disable or enable the Menuitem or Toolitem of microstation using c#?
[quote user="Sudhakar Arimanda"]I want to disable some menu items in the custom menu[/quote]With MicroStation V8i, you can use Named Expressions to define conditions under which a menu or menu item is...
View ArticleHow to disable or enable the Menuitem or Toolitem of microstation using c#?
I am developing an addin for microstation. For this we are using a custom menu. While the addin is loaded the custom menu will be loaded from .dgnlibI want to disable some menu items in the custom menu...
View ArticleRE: Using PRINTORGANIZER keyins as INITAPP
[quote user="Cathy Rust"]Can PRINTORGANIZER still be run as an INITAPP[/quote]The best time to load a VBA macro is in the Application.OnProjectLoad event. Is that what you mean by INITAPP? It's hard...
View ArticleUsing PRINTORGANIZER keyins as INITAPP
Hello Bentley Community-ites.When trying to port our printing application from MicroStation V8i to CONNECT Update 2 I ran into a problem causing MicroStation to crash.Taking the code from Example 1 of...
View ArticleRE: Using PRINTORGANIZER keyins as INITAPP
Thanks for the quick reply Jon. When I refer to INITAPP, I mean when the VBA application is started with the -WA switch on the command line, e.g.: microstation.exe model1.dgn -waMyVba.mvba <----...
View ArticleRE: Using PRINTORGANIZER keyins as INITAPP
[quote user="Cathy Rust"]ustation.exe model1.dgn -waMyVba.mvba [/quote]VBA is not designed or intended to operate as an INITAPP. That's reserved for MDL applications. I'm not surprised that it doesn't...
View ArticleRE: [Connect update 4 MDL API] Error when including
If you look at "msmesh.h", you'll see this note:All mdlMesh functions are deprecated. It is strongly recommended that code PolyfaceHeaders be used in their place.
View ArticleRE: [Connect update 4 MDL API] Error when including
In addition to Bruce's recommendation to consider using the new Polyface APIs, specific to this error: Defect 659004 was filed to address the missing MtgStructs.h error message, and should be corrected...
View Article[Connect update 4 MDL API] Error when including
Hi,My system is windows 7, Connect update 4, Visual Studio 2013I get error when including <msmdlmesh.fdf>When I opened msmdlmesh.fdf I found this line:#include <Mtg\MtgStructs.h>However,...
View ArticleRE: Removing a Geographic Coordinate System
Please follow the MicroStation Programming forum best practices.Identify Your PlatformPlease identify the version of MicroStation, or other product such as PowerDraft, that you are using: MicroStation...
View ArticleRE: Removing a Geographic Coordinate System
Hi Bill, I guess you should use DeleteGCS method. With regards, Jan
View ArticleRemoving a Geographic Coordinate System
There are VBA commands to report the currently attached GCS and one to attach a GCS. How would you detach the current GCS with VBA?
View ArticleRE: [V8i VBA] Detecting if coordinate is above or below target element
[quote user="Barry Lothian"]I do not know how I can detect if a coordinate is south of the chainage line[/quote]One way to find if a point is 'left' or 'right' of a line is to use vector algebra....
View Article[V8i VBA] Detecting if coordinate is above or below target element
As a followup to one of my previous threads here, the image below is is my target element (its 22miles long) with the placed cells also shown (very hard to see at this scale)This is a close-up where...
View ArticleRE: [Connect update 4 MDL API] Error when including
[quote user="Bruce Reeves SRNS"]If you look at "msmesh.h", you'll see this note:All mdlMesh functions are deprecated. It is strongly recommended that code PolyfaceHeaders be used in their...
View Article[CONNECT C++] DgnElementSetTool::_UnHiliteAgendaEntries()
I've got a tool that needs a single element picked (no fence, no selection set). Once the element is picked, I want that element to be un-hilited. I'm calling _UnHiliteAgendaEntries(false) in...
View ArticleRE: VBA does not recognize reference logical name change unless file is...
Hi Roland,I tried to simulate the workflow you described and it works fine. My code is:' Attach defined DGN file as reference with logical set to BORDER Public Sub AttachReferenceBorder() Dim refFile...
View ArticleVBA does not recognize reference logical name change unless file is closed...
I have a vba that attaches a reference with a logical name as "BORDER". The reference dialog box shows the attached reference with logical name as "BORDER". I will then run a second vba that looks for...
View Article[CONNECT C++] How do I stop an EC area formatter appending a unit decorator?
Here's what I do to create an area formatter corresponding to the Mstn Property Formatter schema...WCharCP AreaClassName { L"AreaClass" }; ECN::ECClassCP formatClass { formatSchema->GetClassCP...
View Article