I'm using version V8i 08.11.09.919
I tried using the data cleanup to find text, text nodes, under the duplicates section. It does not find them. All i'm trying to do is search for any duplicate strings within all kinds of text (text, nodes, data fields). And highlight/report any duplicate line strings. Example: 1.2.3.4, 01.02.03.04
I don't see any write ups on this on the forum, but any help is welcomed, vba's, keyins, or an existing tool would be great. I have an autocad lisp routine for this but that obviously won't work. Thank you,
Which version you are using?
CONNECT version has some issues with Data Cleanup as also lost confidence in this tool and have no interest to be beta tester and investigate further then created my own macro to do that - https://communities.bentley.com/products/programming/microstation_programming/f/microstation-programming---forum/223986/vba-ce-scanning-file-statusThat would have not been possible without Jon's writeup - http://www.la-solutions.co.uk/content/CONNECT/mvba/MVBA-ElementsIdentical.htm
What I am missing in this macro is option to ignore level(COMPAREOPT_IGNORE_LEVEL)
Cole DeBolt said:I tried using the data cleanup to find text, text nodes, under the duplicates section. It does not find them. Example: 1.2.3.4, 01.02.03.04
Those strings are not duplicates, so data cleanup is working as designed.
What you seem to be telling us is this...
At what point do you consider two strings to be identical?
Cole DeBolt said:I don't see any write ups on this on the forum
It's an unusual and very specific request: somebody implemented a LISP algorithm for AutoCAD. In other words, AutoCAD's cleanup tools don't cope with your need. A custom macro is required and the author preferred LISP over VBA.
You would like similar functionality in MicroStation V8i. A VBA macro could probably do the job.
Regards, Jon Summers LA Solutions
As stated, i'm using V8i Version 08.11.09.919
I'm just trying to find any tool that will read duplicate numbers within a drawing. The specific example format i sent is:
1.2.3.4, if more than one of those is on the drawing, i'd like it to find them, however, you can't do this with the find and replace tool, because a period designates (any single character)
As these state in this article i've followed for many batch find/replace tools:
I showed another syntax 01.02.03.04 for example, even if that has an exact duplicate, i want to report it. I'm asking if there are any known tools out there for this, because i don't know how to get microstation to not pick up on the period as being delimited? Any ideas? Does this make sense?
that being said, the \c should undo the special character meaning of the period, but i'm not finding that true, but maybe that only applies to true type fonts or something odd. not sure
Cole DeBolt said:i don't know how to get microstation to not pick up on the period as being delimited
It looks like you're attempting to use a regular expression (RegEx) to find the string. You can 'escape' a character in a RegEx using the backslash character. Here's a RegEx to find 1.2.3.4...
1.2.3.4
[0-9]\.[0-9]\.[0-9]\.[0-9]
And this expression matches 01.02.03.04...
0[0-9]\.0[0-9]\.0[0-9]\.0[0-9]
Here's a web page where you can test your RegEx.
The RegEx parser supplied with MicroStation V8i is not the bees knees. That's one reason why we wrote a VBA search/replace tool for MicroStation with a more modern RegEx parser.
Cole DeBolt said: maybe that only applies to true type fonts or something odd
Fonts have nothing to do with this.