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

Can not new Bentley.GeometryNET.Viewport()

CS1729 C# does not contain a constructor that takes 0 argumentshow to new Viewport?

View Article


V8i PowerDraft SS4 VBA - Calling Print Organizer, opening PSETs error handling?

Hi Guys,I'm using Excel VBA to call Microstation and then from a list of directories open .pset files (previously created manually) contained within each directory. The intention is to open each pset,...

View Article


[CONNECT .NET] ECQuery

I'd like to compose a query to use with DgnECManager.FindInstances using an ECQuery.  Unfortunately, the MstnPlatformNet documentation continues to ignore that class.  The SDK examples help little,...

View Article

[CONNECT .NET] EncodeToValidName unavailable

Various EC classes have a name and a label.  The label is what you and I might write: e.g. Area Feature.  The name is what the API uses internally e.g. Area__00x20__Feature.  The MicroStationAPI...

View Article

Image may be NSFW.
Clik here to view.

TransientElementContainer failing to initialize. VBA, Connect

VBA code that used to work in V8i fails in Connect: Dim tec As TransientElementContainer Set tec = CreateTransientElementContainer1(Nothing, msdTransientFlagsOverlay, msdViewAll,...

View Article


[CONNECT .NET] Reverse look-up of XML command

A .NET AddIn often has an XML command table (see the examples delivered with the MicroStation SDK).That XML file contains a map of command words to a .NET function that implements the command.  For...

View Article

Microstation V8i SDK programming environment (SS10)

I have an MDL application that I originally wrote in V7 that was recompiled into V8i SS2 around 2005 (with slight modifications) by another developer who has since retired.  The Engineering group has...

View Article

How can I delete a cell definition in cell library by VBA or keyin

Hello All,I have some dgn files which are converted from dwg, there is no cell library attached, there are many cell defintions in the cell library, I'd like to delete some of them(not all of them,...

View Article


SDK installation error

Hi All,I seem to be having issues installing the SDK, I am running Visual Studio 2017 and Microstation CE update 12. Whenever I go to build all examples i get "BMAKE: Error - Attempting to build with...

View Article


[CONNECT Update 12 C++] Can't build examples

Hi,Could you help me out, I think it has something to do with my paths. I have installed visual studios professional 2017. Maybe good to know that I also have an visual studio ultimate 2013 and...

View Article

[CONNECT .NET] DgnDocument.CreateXxx

There are several DgnDocument.Create static methods...CreateForEmbeddedFileCreateForLocalFileCreateForNewFileCreateFromFileNameCreateFromMonikerThe MstnPlatformNet help is, as usual, terse.  What do...

View Article

Bulk fillet linestring via script file or VBA

I am working on viaduct post tensioning & have managed to plot a 3D smart line for the tendons (~700 done automatically) but I am now trying to add fillets to them via a macro or VBA to bulk fillet...

View Article

[CONNECT .NET] .DgnFile.LoadDgnFile

When this code runs...DgnDocument doc = DgnDocument.CreateForLocalFile (filePath); DgnFileOpenMode openMode = DgnFileOpenMode.ReadWrite; DgnFileOwner owner = Bentley.DgnPlatformNET.DgnFile.Create (doc,...

View Article


[CONNECT .NET] Activate DgnModel

Enhancement Request #432451How's that request progressing?  The missing functionality, a .NET method to activate a DGN model, was reported in the era of Update 5.

View Article

[Connect C++] Deleting an ACS

In my model, I have several defined ACS's that I am unable to delete. When I pick one, the "delete" option does not enable. When I try to delete one via code:StatusInt iStatus =...

View Article


[CONNECT C++] Locating Elements using DgnElementSetTool

When AutoLocate is enabled, as the cursor is moved over elements in the model, those elements are filtered trough _OnPostLocate() where you can accept or reject the element. Is there a function to...

View Article

Image may be NSFW.
Clik here to view.

[CONNECT Ribbon] Display Icon for a submenu under DropDownButton SplitButton

I am using a Ribbon containing Splitbuttons and DropDownButtons. Under one of these I want to make a SubMenu with a few MenuItems. Now the SplitButton and DropDownButton each have their appropriate...

View Article


[CE U12] How to "unset" AccuDraw LockAngle programmatically?

In my tool, I use AccuDraw::GetInstance().SetContext() to enable an angle lock (ACCUDRAW_LockAngle) at various angles, depending on user tool settings. I have one particular case however, where I need...

View Article

[CONNECT C++] Issues trying to fill an ellipse

When I create an Arc via DraftingElementSchema::ToElement() I am unable to obtain a valid IAreaFillPropertiesEdit pointer. When I create create a Shape via the ShapeHandler::CreateShapeElement method,...

View Article

[CONNECT .NET] Set MicroStation Main Window to Form

My dialog inherits from Windows Form.  I show the dialog using dlg.Show (System.Windows.Forms.IWin32Window owner).I would like my dialog to be owned by the MicroStation main window.  How do I get a...

View Article
Browsing all 4331 articles
Browse latest View live


Latest Images