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

    hervecuzon
    hervecuzon
    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…
    • 1 month ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [CONNECT C++] NamedBoundaryGroup Type

    Jon Summers
    Jon Summers
    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…
    • 1 month ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [CONNECT Update 17 C++] Visual Studio 2019 Project Settings

    Jon Summers
    Jon Summers
    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…
    • Answered
    • 9 months ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [CONNECT Update 17 C++] Excel Reader

    Jon Summers
    Jon Summers
    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?
    • Answered
    • 9 months ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [CE U16 C++] FitView and ViewCallback::SetSubstituteElemFunction()

    Tobias Ostendorf
    Tobias Ostendorf
    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…
    • over 1 year ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [CONNECT] Tool Development

    Jon Summers
    Jon Summers
    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…
    • over 1 year ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [CONNECT C++] Problem using TagElementHandler to create a tag element

    John Majerle
    John Majerle
    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…
    • over 1 year ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [CONNECT Update 16 C++] MultiCppCompileGo.mki

    Jon Summers
    Jon Summers
    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…
    • Answered
    • over 1 year ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [CONNECT C++ U16.2] Item Type iteration fails

    Manuel Höger
    Manuel Höger
    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…
    • over 1 year ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [CONNECT C++] GUI Layout Classes

    Jon Summers
    Jon Summers
    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…
    • over 1 year ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [CONNECT Update 16 C++] LevelHandle.GetName() vs LevelHandle.GetDisplayName()

    Jon Summers
    Jon Summers
    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…
    • Answered
    • over 1 year ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [CONNECT Update 16 C++/C#] What is the C++ equivalent of ElementFillColor.FromBinaryECColor?

    Jon Summers
    Jon Summers
    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…
    • over 1 year ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [CONNECT Update 16 C++] EC Classes: What has area?

    Jon Summers
    Jon Summers
    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…
    • Answered
    • over 1 year ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [CONNECT C++/.NET] TextBlock Help

    Jon Summers
    Jon Summers
    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…
    • Answered
    • over 1 year ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [OBD SDK Connect Update 8] - modifying Structural Elements with Open Building SDK (STFC-Api)

    Manuel Höger
    Manuel Höger
    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…
    • Answered
    • over 1 year ago
    • OpenBuildings | AECOsim | Speedikon
    • OpenBuildings | AECOsim | Speedikon | Forum
  • [CONNECT Update 16 C++] Compare ECInstance.GetValue and ECInstance.GetValueUsingAccessor

    Jon Summers
    Jon Summers
    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…
    • over 1 year ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [CONNECT Update 16 C++] How do I navigate EC element properties?

    Jon Summers
    Jon Summers
    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…
    • Answered
    • over 1 year ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [MSCE U8 c++] how to associate one element with another in different DGN model under same file?

    amender carapace
    amender carapace
    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…
    • Answered
    • over 1 year ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [CONNECT Update 16 C++] Has Element Property X?

    Jon Summers
    Jon Summers
    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…
    • Answered
    • over 1 year ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [CONNECT Update 16 C++] TextTable Internal Structure: Cell Text

    Jon Summers
    Jon Summers
    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…
    • over 1 year ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • Example DgnLink Project

    Jon Summers
    Jon Summers
    I've written an example C++ app that performs CRUD operations on DgnLinks . The example includes source code.
    • http://www.la-solutions.co.uk/content/CONNECT/MicroStationAPI/MicroStationAPI-DgnLink.htm
    • View
    • Hide
    • over 1 year ago
    • MicroStation Programming
    • MicroStation Programming Blog
  • [CONNECT Update 16.2 C++] Problem creating DgnLink for a URL

    Jon Summers
    Jon Summers
    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…
    • Answered
    • over 1 year ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • C++ EditElementRewriter

    Jon Summers
    Jon Summers
    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.
    • over 1 year ago
    • MicroStation Programming
    • MicroStation Programming Blog
  • [CONNECT Update 16 C++] DgnLinkManager::WriteLinkTree

    Jon Summers
    Jon Summers
    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…
    • Answered
    • over 1 year ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [CONNECT Update 16 C++] Delete DgnLink

    Jon Summers
    Jon Summers
    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…
    • Answered
    • over 1 year ago
    • MicroStation Programming
    • MicroStation Programming Forum
>