Quantcast
Channel: MicroStation Programming Forum - Recent Threads
Viewing all articles
Browse latest Browse all 7260

RE: VBA help, cannot delete tags(or any element) on a level in all models, in all files, in a folder

$
0
0

Hi Jonas,

[quote user="Jonas Wahlberg"]I thought OpenDesignFileForProgram was much quicker than OpenDesignFile[/quote]

These two functions have very different purposes. I did not do any speed test, but it makes sense that OpenDesignFileForProgram is faster, because not the whole MicroStation is initialized. Consequently not all features are available "for program" design file (e.g. Raster Manager functions) or it's necessary to implement extra code.

[quote user="Jonas Wahlberg"]I guess that is another issue in my code.[/quote]

To be frank with you, your code is not good (lets say it's dirty), not only because it's not formatted and colorized (please use Syntaxhighlighter tool - yellow pencil icon - when you post any code). Reading such code it's more difficult to find what is wrong.

I put together code snippets from older macros, all togerther it deletes all graphical elements from defined level in specified design file. And no key-in is used, because I dislike to use key-in in VBA code (sometimes it's necessary, but not in this case ;-).

With regards,

  Jan

(Please visit the site to view this file)


Viewing all articles
Browse latest Browse all 7260

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>