Fence file command in a batch process
Fence file command in a batch process
(OP)
HI!!! I'm new in microstation and I need some help! I hundreds of dgn files in a folder and I need to apply "fence file" command on all of this dgn files. Can anyone tell how to fence file or functions as a fence file, all the these dgn files in a batch process? thanks a lot!





RE: Fence file command in a batch process
Here is a string of commands that you could run for batch process. Not exactly sure if this is what you will need but it is a start.
# Command file for batchprocess utility
fit view extended
selview 1
place fence view
selview 1
ff=c:\temp\FenceFileExport.dgn
selview 1
#
There is always the option to use Batch Converter under the Utilities pull down. You can convert a V8 file and keep it a V8 design. The batch converter has options for Reference files etc.
HTH,
Bob Mecham
Training | Consulting | Programming
www.EnvisionCAD.com
Facebook: http://www.facebook.com/EnvisionCAD
Twitter: http://twitter.com/envisioncad
Youtube: http://www.youtube.com/user/envisioncad
RE: Fence file command in a batch process
RE: Fence file command in a batch process
#
fit view extended
selview 1
place fence view
selview 1
ff=F\:Mywork\fencefile
selview 1
#
and applied this to 40 sheets of dgn using batch process. What happen is that all fence file export save on the same dgn file name which is "fencefile.dgn". But the "fencefile" in "ff=F\:Mywork\fencefile" is just another folder. Why is it not saving the same dgn file name accordingly? Is there a way or do I miss something in my command?
RE: Fence file command in a batch process
I guess using the keyin you need to give it a new name each time.
Have you ever used Batch Converter? There are options to merge reference files etc that will give you the same result as the fence file command. It will also allow you to copy the files with new names to a different directory.
HTH,
Bob Mecham
Training | Consulting | Programming
www.EnvisionCAD.com
Facebook: http://www.facebook.com/EnvisionCAD
Twitter: http://twitter.com/envisioncad
Youtube: http://www.youtube.com/user/envisioncad