Raster File Validation in C# Connect Update 4 and SDK 4
Hello,I can validate any dgn file if exist in active dgn file as suchpublic static bool ValidateReferenceDisplay(string file_fullpath) { bool boolVal = false; foreach (DgnAttachment dgn in...
View ArticleRE: [Connect - C++] FenceManager - set clip mode
FenceManager::BuildAgenda just returns the set of persistent elements that satisfy the FenceParams, it's doesn't modify them. So, in the case of clip, it's treated the same as overlap. You can then use...
View ArticleRE: [Connect - C++] FenceManager - set clip mode
[quote user="EvanH"]I would like to use a fence ...[/quote]I found this note about the DgnElementSetTool class in MicroStationAPI help...The DgnElementSetTool class can be used to implement a modify...
View Article[Connect - C++] FenceManager - set clip mode
Hi alli would like to use a fence and set the clip mode but I can't make it work. Here is my code:virtual StatusInt _OnElementModify(EditElementHandleR eeh) override { if (eeh.GetElementType() ==...
View ArticleRE: [V8i VBA] Copying listbox items to 2D array but getting wrong number of...
Morning JonI did spend some time last week speaking with other VBA experts (more familiar to office products) and they found the code gives the correct results though I have read that Word VBA differs...
View ArticleRE: [CONNECT C++] mdlSystem_newDesignFile
Hi jan, Thank you for the answer."Auto-save design changes" is on. The changes are already saved before the file is closed. I just want to suppress the question Best regards, Patrice
View ArticleRE: [CONNECT C++] mdlSystem_newDesignFile
Hmmm ... I have not time to test it, but if autosave is used, the dialog has not sense, so it sounds weird. Maybe SessionManager methods like SwitchToNewFile or FindDesignFile can be used instead of...
View ArticleRE: Scancriteria fence and selection set
[quote user="blumax57"]the depth of the tag is " " should skipped[/quote]Dim text As String text = " " If vbNullString = Trim (text) Then ' text is empty Else ' do something with text End If[quote...
View ArticleScancriteria fence and selection set
https://translate.google.it/Good morningI have a questionI do a double selectionfirst scan criterion is everything that is inside a fence or selection setsecond scan criterion are elements with tag or...
View ArticleRE: Scancriteria fence and selection set
good morningThank you for the replyok for the check text = " "but the second check text is numericplaced inside Select Case produces an erroralso the macro produces another error...
View ArticleRE: Scancriteria fence and selection set
Massimo, shouldn't your if statement be:If oEl.IsTextElement Then ' if element is text and level name = ril_quote numbercase = 2 If oEl.Level.Name = "ril_quote" Then numbercase = 2 ElseIf...
View ArticleRE: Scancriteria fence and selection set
[quote user="blumax57"]Else oEl.Level.Name = "z_profondita"[/quote]Barry is correct. Your statement attempts to assign the value "z_profondita" to the element. That's possibly why you see the error...
View ArticleRE: Scancriteria fence and selection set
thank youone more thingtag_definitionname case "6_prof" is defined as a Stringthis morning I slam my head against the wallwhere am I wrong Case "6_prof" Dim text As String text = tg(i) '...
View ArticleRE: Scancriteria fence and selection set
Firstly, its unclear from your code what 'corprof' is. It doesn't return a result in google translate so I can only assume its a text string so I've just appended to the existing tag value. Secondly,...
View ArticleRE: Scancriteria fence and selection set
[quote user="blumax57"]text = tg(i)[/quote]You're attempting to assign a TagElement (tg(i)) to a String. Those are incompatible data types. You already have the solution a few lines later...text =...
View ArticleRE: Scancriteria fence and selection set
Perfect I thought it was easy, but not so easy :)one more thinguserform macrothere is a textbox boxwhen I insert positive number workingerror with negative value' corquo is defined public as...
View ArticleRE: [CONNECT C++] mdlSystem_newDesignFile
Hi Patrice and Jan,I agree this dialog should only come up in case of unsaved changes and if autosave is not enabled.In my environment (Win10, MicroStation CONNECT Update 4, local DGN file) I have...
View ArticleRE: Scancriteria fence and selection set
[quote user="blumax57"]one more thing[/quote]Please don't hijack your own thread! New question = new post.
View ArticleRE: [CONNECT C++] mdlSystem_newDesignFile
Thank you Jan and Artur, I use W7, MicroStation CONNECT Update 3 (French version) and a local DGN File. It is probably a very particular case. If I can reproduce that issue in a small test case,I...
View ArticleRE: input numeric value in userform text box
[quote user="blumax57"]in userform macro there is a textbox boxwhen I insert positive number working error with negative value[/quote]As I may have mentioned, VBA developers in Excel, Word and Access...
View Article