[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: [CONNECT C++] Combo Box: remove unwanted items
Jon,The entry {18*XC, 46, ALIGN_LEFT, "dummy"}, is defining one column in the ComboBox. The last field "dummy" is the header label for that column. Leave the field as an empty string to get rid of the...
View Article[CONNECT C++] Combo Box: remove unwanted items
Here's my Combo Box resource definition...DItem_ComboBoxRsc COMBOBOXID_AreaAltFormatChoice = { NOCMD, LCMD, NOSYNONYM, NOHELP, MHELPTOPIC, HOOK_CBO_AreaAltFormatChoice, NOARG, 46, "", "", "", "",...
View ArticleRE: MDL function difficulties: Converting string to long
[quote user="Darin Rodberg"]The problem is that one of the MDL functions seems to require a long in place of a string[/quote]You've encountered one of the hurdles you must leap if you want to mix MDL...
View ArticleRE: MDL function difficulties: Converting string to long
Hi Darin,[quote user="Darin Rodberg"]The problem is that one of the MDL functions seems to require a long in place of a string[/quote]To be precise, it's not the string, because MDL is C and C does not...
View ArticleRE: [CONNECT C++] Add Formatting to a Report Column
By formatting are you referring to column values sort options (SetColumnName, SetAscending, SetCaseSensitive, SetApplyBeforeFormatting, and SetHideDuplicateValues) performed within ECReportNode...
View ArticleRE: [CONNECT C++] Add Formatting to a Report Column
[quote user="Robert Hook"]By formatting are you referring to column values sort options?[/quote]No, I mean formatting. When annotating an element with Item Types, for example, we can create formatted...
View ArticleRE: MDL function difficulties: Converting string to long
I presume the user function you were looking for was "UnicodeStringGet", where I was able to find the copy below that wraps StrPtr as Jan...
View ArticleMDL function difficulties: Converting string to long
Hi all. I'm attempting to set up some dimension styles using VBA. Of course, VBA doesn't have the ability to do this on its own, so after some searching, I found an example of what I want on this...
View ArticleRE: [CONNECT C++] Add Formatting to a Report Column
Jon, You will not find a convenient API for this. The Reports dialog uses the XDataTree API to do it. Basically the formatting is stored as an extra ECInstance on the column definition's XDataTreeNode....
View ArticleRE: [CONNECT C++] Add Formatting to a Report Column
[quote user="Paul Connelly"]As you've probably noticed, the XDataTree API is not especially user-friendly[/quote]I was keeping quiet about that ...[quote user="Paul Connelly"]You may prefer to request...
View ArticleRE: [CONNECT C++] Add Formatting to a Report Column
Keeping quiet doesn't improve the SDK. Complaining loudly at least stands a chance of doing so. Since I can more or less freely modify the API to reduce my own inconvenience, I'll have to defer to Bob...
View ArticleRE: [CONNECT C++] Add Formatting to a Report Column
The preferred trackable accountable way would be to file a help request located bottom right on your personal Connection Portal page (connect.bentley.com) and ask to file an Enhancement or Defect....
View Article[CONNECT C++] Add Formatting to a Report Column
The SDK example Annotations\ReportsExample shows how to create a report definition programmatically: create a set of ColumnDefinitionNodes...ColumnDefinitionNodePtr columnNode =...
View ArticleRE: [CONNECT C++] Combo Box: remove unwanted items
[quote user="Daniel MacNeil"]The entry {18*XC, 46, ALIGN_LEFT, "dummy"}, is defining one column in the ComboBox.[/quote]Aha! You've solved my riddle. Everything OK now...
View ArticleRE: [V8i VBA] Detecting if coordinate is above or below target element
I've been researching all sorts of mathematical topics relating to this, its been a bit of a time warp going back to linear algebra and 2D rotations around an arbitrary point.I believe I now have an...
View ArticleRE: [V8i VBA] Detecting if coordinate is above or below target element
Hi Barry, Unfortunately, my organization blocks where ever it is that hosts your images, so I can't see what you are describing. I will check it out this weekend on another computer. It does sound a...
View ArticleRE: [V8i VBA] Detecting if coordinate is above or below target element
[quote user="Barry Lothian"]The cross product still calculates as a positive number[/quote]The cross product of two 3D vectors A and B is a third 3D vector C. Vector C is perpendicular to the plane of...
View ArticleRE: [V8i VBA] Detecting if coordinate is above or below target element
[quote user="Jon Summers"]One way to find if a point is 'left' or 'right' of a line is to use vector algebra. Construct one vector V1 from the chainage element's direction at the point of...
View Article