Browse By Tags

  • [Connect C++] How to change the size of text element in annotation scale

    Hi all, I would like to developp the same functionnality as we can do with the property dialog of the model. I would like to change all the text defined in annotation scale by changing the annotation scale of the model. Here is my code to change the…
  • [CONNECT C++] NamedBoundaryGroup Type

    Class NamedBoundaryGroup has properties Name , Description and Type . Name and description have getters and setters, but Type has only a getter ( WString NamedBoundaryGroup.GetType() ). However, there's no way to set the Type of a NamedBoundaryGroup…
  • [CONNECT Update 17 C++] Visual Studio 2019 Project Settings

    I have been using Visual Studio 2019 to build C++ projects for CONNECT for a couple of years. However, after a recent Microsoft update I have a problem. Here are my current Viz Studio project settings... Note the C++ Platform Toolset is Visual Studio…
  • [CONNECT Update 17 C++] Excel Reader

    I notice that the SDK/library folder includes a number of files named ExcelReaderWrapper.xxx . The MicroStationAPI documentation does not mention Excel. How do we use those Excel wrapper DLLs? Any chance of seeing some documentation?
  • [CE U16 C++] FitView and ViewCallback::SetSubstituteElemFunction()

    Hi everyone, I'm working on a MicroStation Connect C++ app that was migrated from V8 to Connect. The app uses the function ViewCallback::SetSubstituteElemFunction() to control which elements to display based on some settings from a dialog box, which…
  • [CONNECT] Tool Development

    dominic SEAH asked: "Will the SDK also cover the Tech Preview tools or will this be after they go to commercial release?" The CONNECT SDK provides a set of classes that derive from DgnPrimitiveTool . Several supplied classes inherit from that base class…
  • [CONNECT C++] Problem using TagElementHandler to create a tag element

    I have installed: MicroStation CONNECT Edition 10.15.0.74 MicroStation CONNECT Edition SDK 10.16.02.022 See my test code snippet below. I am getting an exception when calling TagElementHandler::Create(). Stepping in the debugger I find that tagData…
  • [CONNECT Update 16 C++] MultiCppCompileGo.mki

    The example steel supplied with the SDK uses an unusual bmake file. Unusual because it %includes a pair of supplementary make files MultiCppCompileGo.mki and MultiCppCompileRule.mki . It's found in only four or five other C++ examples (I don't think it…
  • [CONNECT C++ U16.2] Item Type iteration fails

    Hello all, I want to iterate over all Itemtypes in a all Libraries but I get an Memory Exception in the second iteration in following Code: try { ItemTypeLibraryPtr itemTypeLibrary = ItemTypeLibrary::FindByName(libName.c_str(), *ISessionMgr…
  • [CONNECT C++] GUI Layout Classes

    The MicroStationAPI help doc mentions a number of GUI layout classes including the LayoutControl base class... There are no examples of those classes and MicroStationAPI help provides no information about using them. What is their purpose? Are they…
  • [CONNECT Update 16 C++] LevelHandle.GetName() vs LevelHandle.GetDisplayName()

    Other than the way that LevelHandle.GetName() and LevelHandle.GetDisplayName() obtain a level name, what's the difference? Does a level have both a name and a display name ? If there's only one name, why isn't there an overloaded GetName() method? WCharCP…
  • [CONNECT Update 16 C++/C#] What is the C++ equivalent of ElementFillColor.FromBinaryECColor?

    An EC ShapeElement inherits MstnClosedBoundary (see BaseElementSchema ), which has property Fill . Its data type is binary... <ECProperty propertyName="Fill" typeName="binary" displayLabel="Fill"> ... </ECProperty> Use Byte* ECValue.GetBinary() to…
  • [CONNECT Update 16 C++] EC Classes: What has area?

    The EC classes mentioned here refer to those found in two EC schemas delivered with MicroStation... Base Element Schema ( BaseElementSchema.01.00.ecschema.xml ) DGN Element Schema ( DgnElementSchema.01.00.ecschema.xml ) A DGN Line Element has…
  • [CONNECT C++/.NET] TextBlock Help

    Both the DgnPlatformNet and the MicroStationAPI help documents provide terse information about the TextBlock class. Concealed in the MicroStationAPI help document are some examples that show how to use the TextBlock API. However, they are cunningly…
  • [OBD SDK Connect Update 8] - modifying Structural Elements with Open Building SDK (STFC-Api)

    Hello, I need to change some Properties of a Steel Beam Element in Open Building Designer Update 8 using the C-Api "stfc-api".. Until now I've been able to read the "LinearMember" out of the EditElementHandle and to change some Properties in it…
  • [CONNECT Update 16 C++] Compare ECInstance.GetValue and ECInstance.GetValueUsingAccessor

    An ECInstance contains one or more properties. The value of a property can be obtained using ECInstance.GetValue() or ECInstance.GetValueUsingAccessor() . Both methods work OK. What is the purpose of an ECValueAccessor ? There is an enigmatic description…
  • [CONNECT Update 16 C++] How do I navigate EC element properties?

    I'm attempting to navigate the EC properties of a line or line-string element. From a user perspective, an element has a segments property, leading to a list of segments... I have extracted the Segments property of the line-string element to an ECValue…
  • [MSCE U8 c++] how to associate one element with another in different DGN model under same file?

    amender carapace said: and could not find the dependency API you mentioned Why you want to use DependencyAPI? It is very low API, where it is not expected it is used by 3rd party developer (even when it is possible). There are other tools / options…
  • [CONNECT Update 16 C++] Has Element Property X?

    How can we find programmatically whether a DGN element has a particular property? For example, several elements have a Length property. It's valid for lines, line-strings, arcs and I believe curve vectors in general. The picture is blurred because sometimes…
  • [CONNECT Update 16 C++] TextTable Internal Structure: Cell Text

    If I analyse a TextTable programmatically I can see rows, columns and cells. The TextTableCell class hosts whatever text a user provides and provides method GetTextBlock() . Suppose I want to add a DgnLink to a cell in a TextTable . DgnLinks are attached…
  • Example DgnLink Project

    I've written an example C++ app that performs CRUD operations on DgnLinks . The example includes source code.
  • [CONNECT Update 16.2 C++] Problem creating DgnLink for a URL

    Following the examples posted on this Forum, I am experimenting with the DgnLink C++ API. I can successfully create a File DgnLink and a Folder DgnLink . For example, this is working code (error-catching omitted) … template<> bool CreateDgnLink<DgnFolderLinkP…
  • C++ EditElementRewriter

    EditElementRewriter is a trivial C++ class that helps encourage use of the correct idiom when modifying a DGN element. It's modest in size and stored in a *.hpp file. This article discusses EditElementRewriter in more detail.
  • [CONNECT Update 16 C++] DgnLinkManager::WriteLinkTree

    Explain Method Overloads There are two overloads of DgnLinkManager::WriteLinkTree ... StatusInt WriteLinkTree (DgnLinkTreeR linkTree) StatusInt WriteLinkTree (DgnLinkTreeR linkTree, EditElementHandleR elemHandle) The documentation is terse in…
  • [CONNECT Update 16 C++] Delete DgnLink

    Thanks to a tip from Yongan.Fu we know how to add (attach) a DgnLink to an element... DgnLinkTreeSpecPtr spec = DgnLinkManager::CreateTreeSpec(eh); const bool CreateIfUnavailable {true}; DgnLinkTreePtr linkTree = DgnLinkManager::ReadLinkTree(*spec…