mdlModelRefList_getCount gives unexpected results
I am working with Microstation SS3 and using this code:fObjP = mdlDgnFileObj_getMasterFile(); refListP = mdlDgnFileObj_getModelRefList(fObjP);modelCnt = mdlModelRefList_getCount(refListP);The...
View Articlelevel override colors off
Win 7 V8i, I have searched found the following but do not seem to understandActiveDesignFile.levels("Kerb Invert").UsingOverrideColor=FalseAnd make sure you update the design file...
View Articledifferent Element classes
Hi,with the functionElement.GetFromElementRef I get aBentley.DgnPlatformNET.Elements.Element objectthen I need to read the XData of the object. Till now i usedelement.GetXData1(AppName);but this...
View ArticleError building CONNECT SDK sample application
Hello guys,I am getting the following LINK error when attempting to build the CONNECT SDK sample application called steel:LINK : fatal error LNK1104: cannot open file...
View ArticleMicroStation v8i MDL SS3 - question about outputting messages to ANYWHERE
I'm trying to drop lines of code into source, just lines to indicate which piece of code is running so I know if I am in the right MC file. I can't seem to get anything to go anywhere (prompts, message...
View ArticleCannot Detach a model from a managed model
I've been using MS V8i (SS4) for about a year or more, but just in the last couple weeks I've been suddenly unable to detach any reference files. I get this notice:I've not changed my settings (that...
View Article[v8i SelectSeries 4] Creating complex chain around outer coordinates of a shape
Hi all,I'm looking at creating a complex chain/line element around the most outer edges of the shape I've attached below. My macro is written in excel VBAWhat commands should I be looking at to achieve...
View Article[CONNECT C#] GetFloodBoundary return null
Hi!It is necessary to construct an element bounded by other elements.The function is used GetFloodBoundary.BCOM.Element[] elms = app.ActiveDesignFile.Fence.GetContents().BuildArrayFromContents();...
View Article[v8i SS3 VBA] Attach Cell Library Folder
Hi everyone,I want to attach more than one cell libraries.1, I've tried these code:DetachCellLibraryAttachCellLibrary lib_path_1AttachCellLibrary lib_path_2Library 1 will automatically be detached and...
View Article[CONNECT U7] Dependency vs AssociationPoint
I've got a tool that automatically "splits" a line or lineString and places a cell in the opening between the two resulting lines/lineStrings. I've also got a tool that enables the user to delete the...
View ArticleError compiling MT resource file with CONNECT SDK Type Resource File Generator
Hello guys,I recently installed the latest CONNECT SDK platform and also Microsoft Visual Studio 2015.I am in the process of migrating several of our MDL applications. I tested and built some of the...
View Article[CONNECT VBA] Project Load Event Handler: UserForm hidden by MicroStation
I have a VBA macro that shows a UserForm when loaded. It has a class that does Private WithEvents m_hooks As Application, just as the example in VBA help.When I start MicroStation CONNECT, the event...
View Article[CONNECT U7] View Rotations and Projections of a Line
Given two points in "global" coordinates, how does one determine the "apparent" XY rotation of a line drawn between them when you're in a rotated 3D view? I can determine the inverse RotMatrix of the...
View ArticleMissing Dynamic Array API in the CONNECT SDK
Hello guys,I am in the process of migrating several of our MDL applications to run under Microstation CONNECT. My current application relies heavily on dynamic array manipulation...
View Article[Connect up.6] problem with mdlSolid_listNthEl
Hi,My system is windows 7, vs 2015 , connect update 6I am trying to get info about solid element ( slab). Code: double UM = 0; // UORs in Master mdlCnv_masterToUOR (&UM, 1, MASTERFILE);...
View Article[Connect CPP] Create label programmaticaly
HiI've made a function that can be used to place a label with data taken from Item Types. It is listed below:BentleyStatus lifalib_placeLabel(ElementRefP elmRefIn, char *cellName, double scale,...
View Article[CONNECT U7 C++] Rerference File Attachments
In V8i I was able to specify a reference file attachment method by: ReferenceFile *pRefFile=mdlRefFile_getInfo( attachedModelRefP ); if ( pRefFile ) { pRefFile->display.fb_opts.attachMethod =...
View ArticleMicroStation Connect SDK v10.07.00.40
I am having trouble building all of the examples. I used the following steps:I started the MicroStation shell developer as Administrator and entered the following:MicroStationDeveloperShell.bat...
View Article[V8i C#] Manipulate DGN Without Making it Active
Greetings, I would like to add elements to a file opened with `Bentley.MicroStation.InteropServices.Utilities.ComApp.OpenDesignFileForProgram()`. I have a functional solution that allows users to batch...
View ArticleAECOSim Drawing Extraction Manager Output Folder
Is there a way to have the Drawing Output Folder updated for multiple extractions and multiple drawings in batch?Thanks.
View Article