RE: [V8i C++] MstnElementSetTool and complex element "picking"
Thanks !! I'll give this a test drive. A somewhat related question regarding selecting elements. When I allow DragSelect and I drag the "select" line across elements, the locate process "finds" the...
View ArticleRE: tooltips in Microstation
the definition of point2d was the magic. Great observation and thanks much.
View ArticleRE: [V8i C++] MstnElementSetTool and complex element "picking"
[quote user="Bruce Reeves SRNS"]Is there some way to "force" the selection/location process to NOT pick the element the cursor is over IF the mouse is down and held and use the "drag" line elements...
View Article[V8i C++] MstnElementSetTool and complex element "picking"
I've got a question about how to develop a MstnElementSetTool that needs to be able to select text elements in order to "fill-in" an existing Data Field. I imagine the tool to work in the following...
View ArticleRE: [CONNECT DgnPlatformNet] Enumerate DGN Model Elements
ScanCriteria is overkill unless you need to filter by spatial criteria. The only filtering mechanism provided by ModelElementsCollection is to select graphical elements, control elements, or both....
View ArticleRE: Determine Range of elements in Reference Where Displayed
Hi Andrew,[quote user="Andrew Womsley"]I have tried to use ActiveModelReference.range(True)[/quote]It does something quite different than you want to do: It gets a range of the active model (defined by...
View ArticlemdlWindow_showBalloonTooltip change font to a fixed width font for aligning...
Is there any way to change the font for mdlWindow_showBalloonTooltip? The proportional font used makes aligning columns impossible.I would like to change the font to Consolas.
View ArticleRE: [CONNECT MicroStationAPI] Where is the element type enum?
Hmm. They (e.g. CELL_LIB_ELM) don't appear to be in my "dgnplatform.r.h"
View ArticleRE: Determine Range of elements in Reference Where Displayed
Thanks for your answer Jan. I'd already tried your first suggestion. It too brings back the range of all elements regardless of display being on or off so is redundant to my needs. So it looks as...
View Article[v8i SS4 C#] Cannot open lots of files with print dialog open
We have a print addon for MicroStation that have worked on MicroStation v8i for many years. But now with ss4, if we try to select many files (10+), MicroStation crashes with the following error:...
View ArticleRE: [CONNECT DgnPlatformNet] Enumerate DGN Model Elements
Filtering by element type also seems to be quicker with ScanCriteria.. In other cases, the ModelElementsCollection is indeed faster.public static ScanCriteria AddElementTypes(this ScanCriteria...
View ArticleRE: [CONNECT DgnPlatformNet] Enumerate DGN Model Elements
[quote user="Maury"]foreach(MSElementType type intypes) bitMask.SetBit((uint)type - 1, true);[/quote]Thanks for showing us how to set the ScanCriteria element type mask.
View Article[CONNECT DgnPlatformNet] Enumerate DGN Model Elements
I have found two ways to enumerate the elements of a DGN model using the DgnPlatformNet...Scan method, which uses a ScanCriteria object to optionally filter elementsModelElementsCollection, which...
View ArticleRE: Determine Range of elements in Reference Where Displayed
[quote user="Andrew Womsley"] It looks as though I'll be iterating through every element in the attachment [/quote]That's simple enough: create a ScanCriteria object and set the element type to find...
View ArticleDetermine Range of elements in Reference Where Displayed
I have a border file which caters for many sizes. This in turn is attached to designs. The users control what size border they want though the use of level display on the reference file attachment....
View ArticleRE: mdlMeasure_elmDscrArea : is this changed in connect version
Please follow the MicroStation Programming forum best practices.Identify Your Programming LanguageIt looks like you're writing MicroStation VBA and calling an MDL function using...
View ArticlemdlMeasure_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: [CONNECT MicroStationAPI] Where is the element type enum?
[quote user="Bruce Reeves SRNS"]They (e.g. CELL_LIB_ELM) don't appear to be in my "dgnplatform.r.h"[/quote]You picked the one value (CELL_LIB_ELM) that is not defined any more. Cell libs haven't been...
View ArticleRE: [V8i] and [CONNECT] mdlFileList_edit OR mdlStringList_getMember bugs with...
Hi Jon,WCharCP str;WChar filestr[MAXFILELENGTH];StringList *strListP;The stringlist is freed at the end of the function using mdlStringList_destroy(strListP);The files themselves are...
View ArticleRE: [V8i] and [CONNECT] mdlFileList_edit OR mdlStringList_getMember bugs with...
[quote user="Loren"]WCharCP str;WChar filestr[MAXFILELENGTH];StringList *strListP;[/quote]Like you, I thought that MicroStation CONNECT had abandoned 8-bit character strings. I looked up...
View Article