RE: [Connect add ins c#] ElementScanCriteria
[quote user="Nenad Poljcic"]Using DgnPlatformNET means writing a lot of code from scratch and I have more than 100 active projects[/quote]Both the C++ MicroStationAPI and the .NET DgnPlatformNet API...
View ArticleRE: [Connect add ins c#] ElementScanCriteria
Hi,I am am continuing with COM InterOp but will go over to DgnPlatformNet API as soon as possible.cheersNenad
View Article[Connect add ins c#] ElementScanCriteria
Hi,I am having trouble using ElementScanCriteria.code in v8i isusing BCOM = Bentley.Interop.MicroStationDGN; BCOM.ElementScanCriteria sc = new BCOM.ElementScanCriteriaClass(); sc.ExcludeAllTypes();...
View ArticleRE: [CONNECT] TextField API
Hello Jon,I recently wrote a such example as below. FYITextFieldPtr createField(DgnModelR model) { // "DgnElementSchema" and "ArcElement" are found from...
View ArticleRE: [CONNECT C++] Of Carets and TextBlocks
Hello Bruce,I think MoveToNextParagraph() or MoveToNextRun() always set current caret to the beginning of paragraph or run, but MoveToNextCharacter() can make current caret at the end of text block. To...
View ArticleRE: [CONNECT C++] TextBlocks and text weight
Have you tried ElementPropertiesGetter and ElementPropertiesSetter ? They apply to all kinds of graphic elements.
View ArticleRE: [CONNECT C++] How do I measure dimensional properties?
Hello Jon,I think using EC technology is another way to obtain these information. The following code snippet is a test example for you.void getElemInfoTest() { DgnECManagerR ecMan =...
View ArticleRE: [CONNECT C++] Of Carets and TextBlocks
I have not verified what you said, but I'm certain it's most likely correct. However, in my example, I am using sample code from the documentation. and (apparently) that example is not correct. Maybe...
View Article[CONNECT MicroStatonAPI] Misleading comment in ElementsExample
I'm tentatively navigating my way through the maze of MicroStation CONNECT SDK examples. I got lost when attempting to analyse this comment in...
View ArticleRE: [CONNECT C++] TextBlock->Remove() to clear text
Hi Bruce, could you please provide a simple drawing sample with one element that shows the problem, and one element that is correct. Thanks Artur
View Article[CONNECT C++] TextBlock->Remove() to clear text
When extracting a TextBlock from a text element, If I dump out the UserOrigin before and after calling Remove(), I get different "y" values for the UserOrigin. Why would clearing text cause the origin...
View ArticleRE: vba how to attach raster reference and set the level for that attachement
set the active level before you attaching the raster!Have you tried GetElementFromRaster Method to get the raster as an element, like we can see a raster with element info.With that element you may...
View ArticleRE: vba how to attach raster reference and set the level for that attachement
Hi John,[quote user="John Drsek"]Any one have any ideas to how to set the level[/quote]Raster files are a bit specific (comparing to "normal" graphic elements), because their setting can be changed...
View ArticleRE: vba how to attach raster reference and set the level for that attachement
Hi John,another approach could be to modify the level for the raster frame of each attached raster: Dim ee As ElementEnumerator Dim Sc As New ElementScanCriteria Sc.ExcludeAllTypes Sc.IncludeType...
View ArticleRE: vba how to attach raster reference and set the level for that attachement
thanks everyone for the help. you all helped me go the direction I needed.Frank, setting the active level would work if I wasn't setting a default level for rasters in my preferences. but the get...
View Articlevba how to attach raster reference and set the level for that attachement
I having trouble in how to do this. Attaching the raster is no problem but there appears to be no setting for the level at the time of attachment. I'm using the below code to attach a raster.Any one...
View ArticleRE: [Connect API] Working with PointCloud
[quote user="Nenad Poljcic"]I am guessing some reference is missing[/quote]First, include MdlApi.h, because that includes lots of common headers...#include <Mstn/MdlApi/MdlApi.h>OrientedBox is...
View Article[Connect API] Working with PointCloud
Hi,My system is w7 and I am using vs 2013I am trying to migrate from v8i code to Connect.When including files:#include <Mstn\MstnPlatformAPI.h> #include <DgnPlatform\DgnPlatform.h> #include...
View ArticleRE: [v8i add ins NET] convert rgb to internal long value
[quote user="Nenad Poljcic"]How do I convert RGB values to internal microstation rgb index ( 0 to 254 ) [/quote]From VBA help...InternalColorFromRGBColorThis retrieves a number that contains 2 indices....
View Article