Browse By Tags

  • [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++/.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…
  • [PW Explorer CONNECT] Can I copy out or check out a DGN document without its references?

    aaApi_CopyOutDocument() does what it says on the tin. However, for the task we are implementing there's a lot of baggage that goes with it. For example, the project has a lot of large DGN files and each file has several large attachments. The task is…
  • [CONNECT C++ and .NET] UnitDefinition.GetName ()

    Both C++ and .NET provide method UnitDefinition.GetName (bool singular, bool alsoStandard) . What is the purpose of arg alsoStandard ?
  • [CONNECT] Distinguish between multiple Tables in a DGN model

    Named Tables I recently came across a situation where a MicroStation CONNECT user had placed several Tables in a DGN model. It occurs to me that there's no simple way to distinguish between tables. For example, let's suppose you place two Tables of…
  • [CONNECT .NET/C++] Queue command to .NET AddIn from Native App.

    I have a .NET AddIn that behaves as expected if I manually send a command. I have a native app. that wants to send that same command to the .NET AddIn . However, the .NET AddIn doesn't seem to see the command queued from the native app... const bool…
  • [CONNECT] Detect Associative Region Element

    I'm attempting to measure the area of shapes in a DGN model. If my model scanner finds a shape or complex shape then the measurement is straightforward. Some things that look like shapes are associative regions . They seem to be a cell named AssociativeRegion…
  • [CONNECT C++, .NET, VBA] Can a Picklist have a Description?

    It would be useful, when managing Picklists, for a Picklist to have a description as well as a name. For example, a Picklist named "Door Furniture" might be described "Assign this Picklist to Item Type Door.Fittings ."
  • [CONNECT] Create Item Type Property Expression Programmatically

    MicroStation Update 12 introduced Item Type Property Expressions . What a great feature! I could already use Expressions in my apps. Is there an API for Expressions ? in .NET in C++
  • Add a CreateCellInstance method to place a Cell from a Cell Library

    There is no way in .NET to place a new cell instance by reading a cell definition from a cell library. When creating a new cell instance, there is a lot of unseen work involved in copying a cell definition. In addition to the graphic elements, there…
  • [CONNECT] Place Normal Cell Instance from Library

    The MicroStationAPI and the DgnPlatformNet have a CreateSharedCellElement() method (as of Update 10). It creates an instance, or placement, of a shared cell element in a DGN model. Why isn't there a C++ .NET similar method for creating instances of…
  • [Microstation v8i, C#/C++] How to get the ElementRef and DgnModelRef from a C# API element?

    I am trying to get the ElementRef and DgnModelRef from C# API of elements I have selected so I can pass through to some Native MDL code that needs to use them? From searching through these community forums and browsing the C# functions/properties I…
  • RE: [V8i C++/C#] Native MDL and ProStructures

    Unknown said: The properties/attributes of each item we are interested in are ProStructures specific and can be accessed from the ProStructures .Net API If you write a C# AddIn for MicroStation V8 i then you are stuck with the VBA (COM) InterOp. That…
  • ProjectWise tool to rename file(s) using environment attributes

    Hello, I am wondering if I could get some help creating a tool to rename drawing file(s) (DGN or DWG) from their original file name to the following environment title block attributes or symbols: <Environment.SUBSTATION_NUMBER>_<Environment.DWG_N0>…
  • C++/CLI

    Hello. I have figured out how to compile DLLs in VS for Excel and create my own C++ functions. My ultimate goal is to be able to write C++ programs that operate within Excel and Microstation. My question concerns C++/CLI or the C++.net. Is one able to…
  • I am having error on call of aaApi_Initialize(AAMODULE_ALL); function

    Hello, In my code when I call aaApi_Initialize(AAMODULE_ALL); method to initialize my custom console application it is giving me hooks related initialization errors. My code is working on one machine but it does not work on another machine because of…
  • RE: Dot net application not working in multiple microstation DGN

    Hi Mr. Jon & Mr.Stack I created this using C++ inside Visual Studio 2010. It is a winform application so it will work externally. Please find the Read.h (C++ header file ), where i have written the code to draw blocks give some suggestions. Thanks…
  • Dot net application not working in multiple microstation DGN

    Hi Everyone, I have written one application to create blocks in microstation. Its working fine if one .dgn file is open. If i will open multiple dgn file , its only working in the dgn which was opened first. I used visual studio 2010, C++.net…
  • RE: Create Blocks along center line and count points opened in micro station using Terra scan

    Thanks Mr. Jon Please find the Extract.rar. This is a sample C++ project to copy element made in visual studio 2008. Please can you give any suggestion to make a .ma or .dll file so that i can call it from microstation Regards Manoj
  • Create Blocks along center line and count points opened in micro station using Terra scan

    Hi All, I am using Visual Studio 2010 , Microstaion V8i and C++/C#.net I loaded the laser points to microstation using terrascan. I want to create blocks along the center line having certain length and width. i want to count the number of laser…
  • Copy document attributes to another document

    Hi, guys. Is there a simple way to copy all the environment attributes of a file to another? I could do that using some tricks with Databse Triggers, but i don't want to do it. What I want is to do it using Project Wise SDK. Thanks in advance!
  • [V8i C++]How can I disable locate by Levels

    Hello everyone! I wanna develop a new tool to disable users from selecting elements belonging to a specified level.The final effect shows below.Whenever cursor hovers over those elements,it will show forbidden.It would be very helpful if you can show…
  • Can't call DLL function that makes ProjectWise API calls

    Using Visual C++ (in Visual Studio 2012), I've made a DLL with a function openDoc(int projID,int docID) that calls the ProjectWise API to open a document. I'm trying to call this function from either C# or VBA, but haven't succeeded with either one…
  • C++ clients for a .NET DLL

    C++ client implementations The question "How do I use .NET with my MicroStation application?" crops up frequently on these Forums. In an earlier post I described how to implement a .NET COM server . A COM server is compatible with VBA, C++,…
  • is there a mdl api to publish the dgn file to i-model file?

    Hi there, Is there any api to publish a dgn file to the i-model file?either native or managed api? Thanks in advance. Gang