Helllo,
Hey :) thanks for answer.
Unknown said:Is there any instruction to write these kinds of scripts?
A batch script is little more than a sequence of MicroStation key-ins. Search MicroStation help for Batch Process Dialog...
The Batch Process utility lets you create and run a script that can be performed on individual files or entire directories of files. The script is a text file that contains a series of MicroStation key-ins that can run commands, MicroStation BASIC macros, VBA Macros, or MDL applications.
You need to know about MicroStation command key-ins. The key-in browser (menu Utilities|Key-in) will help, and some key-ins are even documented in MicroStation help.
Another way to find what commands MicroStation is using is to record a VBA macro while you perform some task. If you look at the recording, you will see the commands used.
Unknown said:reference merge layer "A
MicroStation has levels. Other CAD tools may use the term layer.
Unknown said: I tried to also sth with choosing A layer and then merge, but also wrong
Experiment with reference merge interactively before you write your batch script. What happens if you turn off all levels except level A, then do reference merge?
Regards, Jon Summers LA Solutions
thanks a lot, I try to later, because I have to do another things with Batch.
First I think you should create the new levels first in your active file
then later (I snipped this out from the microstation help under levels keyins, lots of good stuff there worth printing for future use)
you can use the level element move, to move all objects from one level to another level
LEVEL ELEMENT MOVE [dest:level-spec2] <level-spec1>
Moves all elements on “level-spec1” to specified destination “level-spec2”. The destination level specification is optional. If it is not specified, then the elements are moved to the “Default” level.
Then use the keyin to delete empty levels or the compress command with all the options preset
I suggest you break your script up and test it then join back up if it all works...
if you save your script say c:\temp\script.txt
you can add it to an F key as @c:\temp\script.txt then you can run it on a single file by pressing the assigned F key instead of batch processor this is also a quick way to test the script so you dont damage a lot of files with trial and error or just want to do it to one file, plus its quicker than typing @c:\temp\script.txt ...
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
Hello, I used Beatas script and I wrote another. But I met a problem with moving elements from layer, which weren'`t written in script . this script moved all my objects from korrect layers to another. I don`t want to that. My question: I have to change some properties or variable in Microstation?