mdlMeasure_elmDscrArea : is this changed in connect version
if have this function that works in V8i version :Private Function CalculateArea(ByRef area As Double, ByRef perimeter As Double, ByRef desc As Long) As Boolean Dim cExpression As String cExpression =...
View ArticleRE: [V8i] and [CONNECT] mdlFileList_edit OR mdlStringList_getMember bugs with...
This function is definitely bugged and Bentley need to fix or replace it. I often get an exception error if I try to reuse a StringList via the second argument, and I've noticed memory corruption...
View Article[V8i] and [CONNECT] mdlFileList_edit OR mdlStringList_getMember bugs with too...
1) When over 1,000 files are selected with mdlFileList_edit() and mdlStringList_getMember() is used to extract the file names, the last file in the list is corrupt.2) When over 2,000 files are...
View Article[V8i C++] Getting the Visible Edges setting for a reference file
I've had a look at the the ReferenceFile C structure, the mdlRefFile_getParameters() function and also the newer DisplayStyleManager C++ class, but I can't seem to find the correct API function to...
View ArticleRE: [MVBA]How to let the text string to move with cursor when place text...
[quote user="Changsong Ling"]I want the text string move with cursor[/quote]Write a class that Implements IPrimitiveCommandEvents. There are examples in VBA help.[quote user="Changsong...
View ArticleRE: [V8i] and [CONNECT] mdlFileList_edit OR mdlStringList_getMember bugs with...
[quote user="Piers Porter"]I often get an exception error if I try to reuse a StringList via the second argument, and I've noticed memory corruption straight after using it[/quote]Preferably, dump the...
View ArticleRE: [MVBA]How to let the text string to move with cursor when place text...
Hi Changsong, as Jon wrote, the right way is to implement IPrimitiveCommandEvent class that ensures your command can behave quite the same way as standard MicroStation tools (element selection and...
View Article[MVBA]How to let the text string to move with cursor when place text elment ?
Hello All,I'm creating codes to place label. I have already succeed to get all necessary information except the location, which I'm going to let the user to pick up in the drawing manually. I don't...
View ArticleRE: [V8i VBA] Cell Creation and Annotation Scale
Thanks for the suggestion Jan, I was wondering how one was able to target a cell after it is written to the designfile and that method sounds exactly what I was looking for. I'll give it a try later if...
View ArticleRE: mdlMeasure_elmDscrArea : is this changed in connect version
Finally found time again to work on this project. This works. Don't know why the old code contained the GetCExpression, I just copied the old code and found this not working. I don't even think about...
View ArticleRE: mdlMeasure_elmDscrArea : is this changed in connect version
Hi jon, thanks for the tip, but yes, i'm using Jan's suggestion.
View ArticleRE: mdlMeasure_elmDscrArea : is this changed in connect version
Sorry, I meant to say " I had not thought to call the function directly." :-)
View ArticleRE: [V8i MDL C++] Getting a BSIColorDescr from an element colour
BSIColorDescr and BSIColorPalette are legacy concepts from the days before 32 bit displays. BSIColorDescr remains for use with some gui items. For example mdlTreeCell_getColorDescr. There isn't any...
View ArticleRE: [V8i] and [CONNECT] mdlFileList_edit OR mdlStringList_getMember bugs with...
[quote user="Jon Summers"]Preferably, dump the StringList and move into the 21st century...StatusInt FindFilesFunction (std::vector<std::wstring>& files, ...);[/quote]Is this the world where...
View ArticleRE: [V8i MDL C++] Getting a BSIColorDescr from an element colour
Hi Brien, thanks for your reply.I am only using a BSIColorDescr because it's the only way I can see to create a symbology preview in a list model. I want to show the colour of design elements in a...
View Article[V8i MDL C++] Getting a BSIColorDescr from an element colour
I need to get a BSIColorDescr for a given element colour. If the element colour is 0-256 then this is trivial with mdlColorPal_getElemColorDescrByModelRef(), but of course MicroStation allows the...
View ArticleRE: VBA support in the future
Hi minion,I agree you are probably safe for at least several years. If talking about VBA and VBA apps future, in my opinion 3 different aspect exist: Support of VBA as language itself, support of VBA...
View ArticleVBA support in the future
Hi Guys and Gals,Okay, now that I've written my Microstation VBA programs. I am wondering how long they will be able to be used. I probably should have wondered that first, but when I started in 2014...
View ArticleRE: [V8i] and [CONNECT] mdlFileList_edit OR mdlStringList_getMember bugs with...
[quote user="Piers Porter"]I only use mdlFileList_edit() because there isn't any replacement for it that does the same thing on all Bentley platforms.[/quote]On re-reading my comment, I see that you...
View ArticleRE: [V8i] and [CONNECT] mdlFileList_edit OR mdlStringList_getMember bugs with...
7 foot joke for a 6 foot bloke! Never mind, I agree that a replacement for this function would be grand.
View Article