RE: [MVBA]How to get the elements in ref file which shows in the drawing sheet?
[quote user="Changsong Ling"]For those partially in, it would be better if I know which parts are in the range. [/quote]As far as I know there is no API for such task, so you have to implement own...
View ArticleRE: Determine Range of elements in Reference Where Displayed
It is my pleasure :-)If you are really interested in clean and easy to maintain code, I recommend to read Clean Code book from Robert C. Martin. It's one from "must read" for any professional...
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: [CONNECT DgnPlatformNet] ScanCriteria.SetElementTypeTest doesn't do what...
It is not nessessary to call EnsureCapacity before setting the bit. Using SetBit will adjust the capacity of the BitMask to the amount required by the bit being set.EnsureCapacity will just make sure...
View ArticleRE: [MVBA]How to get the elements in ref file which shows in the drawing sheet?
Hello,My dgn files attached. The ref file is openplant imodel.And my codes are attached also:Sub ScanCallout(MyAtt) ' As Attachment) Dim MyAttachment As Attachment Dim oScan As...
View Article[MVBA]How to get the elements in ref file which shows in the drawing sheet?
Hello All,I created a callout and referenced it in a drawing sheet. please refer to communities.bentley.com/.../389712Now I can scan all the elements in the ref files. But I don't know which are show...
View ArticleRE: [MVBA]How to get the elements in ref file which shows in the drawing sheet?
Hi Changsong,at first: Please always use Syntaxhighlighter tool (ne exception!) when placing any code and select a proper language (e.g. VB in this case). Isn't this display much better and easier to...
View ArticleRE: [MVBA]How to get the elements in ref file which shows in the drawing sheet?
Thanks a lot! 1. Please always use Syntaxhighlighter tool--would you please tell me how? Sorry I don't know how yet. 2. Use ElementScanCriteria properly. --I'm sorry I used these codes to scan other...
View ArticleRE: [MVBA]How to get the elements in ref file which shows in the drawing sheet?
Quickly: 1. A yellow pencil icon in Advanced editor. 2. In my opinion it's wrong style (wrote bad code where it's easy and shorter to write right code and to postpone the correction to refactoring),...
View ArticleRE: [MVBA]How to get the elements in ref file which shows in the drawing sheet?
Code Syntax Highlighting[quote user="Changsong Ling"] 1. Please always use Syntaxhighlighter tool--would you please tell me how? [/quote]When you post code, use the Forum advanced editor's syntax...
View ArticleRE: [Microstation v8i] Dialog Builder and Command Table Editor etc.
Hi Ines,[quote user="Ines Wieland"]I know, that new Dialogs can be created with MFC as well[/quote]It's correct, but MFC is in my opinion even more obsolete and complex technology than MicroStation GUI...
View Article[Microstation v8i] Dialog Builder and Command Table Editor etc.
Hi everyone,I know, that new Dialogs can be created with MFC as well, but for certain Tasks where e.g. colorpicker or Level-picker are necessary it seemed to be more useful, to use the MDL-Dialogs...
View ArticleRE: [CONNECT DgnPlatformNet] ScanCriteria.SetElementTypeTest doesn't do what...
[quote user="Maury"]It is not nessessary to call EnsureCapacity before setting the bit[/quote]Incorrect! A Bitmask seems to have capacity for small bit indices, such as for a line element (type 3) or...
View ArticleRE: The server threw an exception. (Exception from HRESULT: 0x80010105...
Hi. I don't believe this question is related to the Communications products. May I suggest you ask in the Programming forum, under the Microstation section?
View ArticleRE: [CONNECT DgnPlatformNet] ScanCriteria.SetElementTypeTest doesn't do what...
Jon, I just tried with Text type (17) and with mesh type (105) and both are setting the capacity automatically when SetBit is called and working with the code above. I am not sure why you are seeing...
View ArticleRE: [CONNECT DgnPlatformNet] ScanCriteria.SetElementTypeTest doesn't do what...
[quote user="Maury"] I just tried with Text type (17) and with mesh type (105) and both are setting the capacity automatically when SetBit is called[/quote]If that's always true, then ...I should not...
View ArticleRE: [CONNECT DgnPlatformNet] ScanCriteria.SetElementTypeTest doesn't do what...
Well the problem was originally occurring due to the capacity not being the "required" size for SetElementTypeTest.. SetBit is setting the capacity to the minimum required bits.. Ex: if you set bit 17,...
View ArticleRE: The server threw an exception. (Exception from HRESULT: 0x80010105...
Please follow the MicroStation Programming forum best practices.Identify Your PlatformPlease identify the version of MicroStation, or other product such as PowerDraft, that you are using: MicroStation...
View ArticleRE: The server threw an exception. (Exception from HRESULT: 0x80010105...
Be aware this post is quite old (31.1.2016) and it seems it lay somewhere else unanswered. It would be nice if the author can confirm if it's still an issue or not. Regards, Jan
View ArticleRE: The server threw an exception. (Exception from HRESULT: 0x80010105...
Ah, you are right Jan. I decided to check the Communications forum in case I could help someone and I believe this appeared at the top as if it was recent. It's either a bug in the forum or I have...
View Article