Dear Forumi would like to report what is in a Model. Id like to have text export of hiw many of certain items reside in a Model, so:
456 Solids123 Line Strings74 Bspiles523 Text Nodesetc.something ,like this? it can have all associated data with it or not, but initially im after knowing about Solids [which ever type of Smart Solid, Feature, etc] and Surfaces.any current tools do this?
If your not going to use vba ( with the scan element criteria ) then I think the select tool will give you what you want but not a report it it can select by element type and in the information center or bottm left in the bar gives you the selection counts .. you can just select everything with the power selector and deselect what you dont want ie leave only text nodes and it tells you how many are in the selection..
While not automated you could create a series of macros using the the Basic macro recorder with the select by tool and chose the element type and it would work the same as by hand just not keep the result in a text table or file .. but running these file by file element type by element type is pretty easy.. you just have to write down the results one at a time..
Now if this is mission critical and you have a business case then you can just PAY as decent VBA skilled drafter or programmer to write said macro for you it would then be run in the batch processor tool and report to a text file the file name and tallies of those desired elements file by file ...
If you have projectwise I think it too can do that kind of analysis too... but I'm not real sure...
Lorys
Started msnt work 1990 - Retired Nov 2022 ( oh boy am I old )
But was long time user V8iss10 (8.11.09.919) dabbler CE update 16 (10.16.00.80)
MicroStation user since 1990 Melbourne Australia.click link to PM me
Unknown said:Right-click on a blank spot Select All Open Element Information You will be shown how many of what is selected. If that's what you really need, quick way to find out.
Of course! .. it summarises but I always click on this without thinking to see the individual stuff never been interested in the summary before...
BTW
I looked up the information tool in help to try to build a keyin script he could use like the
Select all; MDL LOAD ELEMENTINFO ...
etc then I noticed in the help you can
create an output file of the info ... fence the entire file and key in ELEMENT LIST hit return and it will prompt you where to name and save
filename.ULF
Now I cant find what will open this Universal List format in msnt ... but there must be something on google that will open it and let you edit it so you only keep the summary...
file name by file name.... I tried copy to clipboard of the info tool summary .. while it lets you select ie highlights it wont copy to clipboard...
Will look into this more on google ...
If anyone at Bentley knows how to view the ULF files let us know as the help file only tells you how to make and save not open , read or edit...
I attached a little VBA that does a quick and dirty count and creates a text file. Drop it in a configured VBA path, or somewhere you'll remember. Launch it with:
VBA LOAD COUNTTYPES
VBA RUN COUNTTYPES
If it is not in a configured path, you'll need to include the path with the filename.
I have the text file going to C:\_JUNK\. Let me know if you want that path changed. It needs to exist on your C-Drive before running the VBA.
You need to select first what you want to count, so can either do a select all if you want everything or just grab the stuff you do want. Run the vba. Nothing will happen, it just creates the file.
Like I said, it isn't fancy. It reports the element types. Search here or with google for "MicroStation element types" and you should find a list of what each number represents (3 = line, 7 = text node, etc).
CountTypes.mvba
Unknown said: I attached a little VBA that does a quick and dirty count and creates a text file. Drop it in a configured VBA path, or somewhere you'll remember. Launch it with: VBA LOAD COUNTTYPES VBA RUN COUNTTYPES If it is not in a configured path, you'll need to include the path with the filename. I have the text file going to C:\_JUNK\. Let me know if you want that path changed. It needs to exist on your C-Drive before running the VBA. You need to select first what you want to count, so can either do a select all if you want everything or just grab the stuff you do want. Run the vba. Nothing will happen, it just creates the file. Like I said, it isn't fancy. It reports the element types. Search here or with google for "MicroStation element types" and you should find a list of what each number represents (3 = line, 7 = text node, etc). (Please visit the site to view this file)
(Please visit the site to view this file)