RE: How to activate a model in C# V8i
Another problem with my posted code is that it only iterates through loaded models. A workaround is to write a quick VBA to activate each model in the design file and then to run the code. A much...
View ArticleRE: How to activate a model in C# V8i
Hi,[quote user="HDR_Coder"]Another problem with my posted code is that it only iterates through loaded models.[/quote]What do you mean by "only loaded models"?With regards, Jan
View ArticleRE: How to activate a model in C# V8i
mdlDgnFileObj_getModelRefList description says, "Create a DgnModelRefList containing an entry for each of the loaded models in the specified design file. Note, any DgnModelRefList created with this...
View Article[CONNECT .NET SDK] All SDK examples do not work right away
When recently trying to test the .NET examples of the latest Connect Update4 SDK, i noticed several problems with them, which i would like to describe/report here.1. All examples have .NET 4 as Target...
View ArticleRE: [CONNECT C++] Dialog Layout Manager
There is more descriptive documentation and examples under the "Migrating to Layout Manager" section of MicroStationAPI.chm
View Article[CONNECT C++] Dialog Layout Manager
Some example MicroStationAPI apps have dialog definitions with auto layout management. For example...CmdItemListRsc ItemList_ECSChemaExample = {{...
View ArticleRE: [CONNECT MicroStationAPI help] Typos in 'Best Practices Working With...
Defect 691335 has been filed to address this issue. Thank you, Bob
View Article[CONNECT MicroStationAPI help] Typos in 'Best Practices Working With Schemas'
MicroStationAPI help for CONNECT has a section Best Practices Working With Schemas. It includes these paragraphs having spelling mistakes...Units should be assigned to all properties that represent a...
View ArticleRE: [V8i VBA] Detecting if coordinate is above or below target element
Hi Barry, I solve this with a 2 dimensional approach in my programs, so I am curious how to do it the way Jon suggests. I've been studying that link about the cross product and I don't fully understand...
View Article[V8i VBA] Detecting if coordinate is above or below target element
As a followup to one of my previous threads here, the image below is is my target element (its 22miles long) with the placed cells also shown (very hard to see at this scale)This is a close-up where...
View ArticleRE: [VBA] Activate a dgnlib textstyle
Modify the function in the article I cited. The existing MDL function gets a C pointer to the text style. The following MDL function adds a new text style to the active DGN file...Declare Function...
View ArticleRE: Custom line-style text always horizontal, regardless of line orientation.
[quote user="theGreg"]I have a peculiar problem with my custom line-styles[/quote]Is this a programming question? You might be better off posting to the MicroStation Forum.
View ArticleCustom line-style text always horizontal, regardless of line orientation.
Good day all, I have a peculiar problem with my custom line-styles. I do a lot of electrical reticulation work, and with that we have custom line styles we use for representing different cables in our...
View ArticleRE: [VBA] Activate a dgnlib textstyle
[quote user="Jon Summers"] ConstLockEntry AsLong= 0 ' No idea what that does! AddTextStyle = (SUCCESS = mdlTextStyle_addToFile ( _ newId, styleAddress, name,...
View Article[Connect - CPP] Problems with pattern angle
Hi allI got some problems with the pattern angle in Connect. The angle of the pattern is relative to the angle between the first two points in the shape. I expected it to be relative to a horizontal...
View ArticleRE: VBA does not recognize reference logical name change unless file is...
Hi Rolands,[quote user="Roland Cyr"]My guess is that the following only opens the Default model.[/quote]No. The name is OpenDesignFileForProgram, not OpenModelForProgram. And it's mentioned also in the...
View ArticleRE: How to activate a model in C# V8i
[quote user="HDR_Coder"]One needs to activate each model beforehand in order for my previously posted code to iterate through each model. [/quote]Thanks for your explanation, I missed this specific...
View ArticleRE: [CONNECT C++] Need to modify text/textNodes in a cell
For a single line of text, how do I get a TextString from a TextBlock ?
View ArticleRE: [CONNECT C++] Need to modify text/textNodes in a cell
By 'TextString', you mean the DgnPlatform::TextString class? That's pretty much only used for rendering. From the description of that class:> To create a TextString from a text element, see...
View Article