Navigation:  CADtools Tools > Batch Process's >

CADtools Ustn Batch Process

Previous pageReturn to chapter overviewNext page

CADtools includes a number of tools for batch processing of drawings. Depending on what these tool do, they either use the inbuilt Microstation 'Batch Process' tool or are based upon custom routines.

Batch Process utility

CADtools provids a number of command files suitable for use with the Batch Process utility ( Utilities > Batch Process). This allows you to apply a series of commands to a list of files.

 

Differences between v8 2004 and XM when using the Batch process tool

Under XM, using the batch command files listed below, it's possible to select a list of files, and set them to process the 'Default Model Only. Any of the batch commands that work on elements in the Sheet model should contain an initial command which switches to the sheet model, and then does the batch changes.

When using v8 2004, it seems the Batch Process tool is a bit touchy.

It seems to processes the file that is already open, along with all the other files in the batch process list.

It won't allow macros to 'switch models' like the XM version. The user needs to manually select the model to which the changes need to be applied.

This means for changes to be applied in the Sheet model, you need to individually select each file in the processing list, and set the 'Model' column to be 'Sheet1'.

If the dialog is left open for a while, and you swap command files, or DGN's to process, then it gets all mixed up, and sometimes runs through all the files, but doesn't actually make any changes!

Setting the model to 'Sheet1'

 

Batch Command files available in CADtools Microstation

Batch File

Purpose

CADtools_Attach_DGNlib_Update_Levels_Detach_DGNlib.txt

Attaches a specific levels DGNlib

(C:\CADtools_Ustn\Data\update.dgnlib), updates the level definitions in the file using that attached DGNlib, then detaches the DGNLib.

CADtools_Dims_Terminators_Update.txt

Imports the dimension terminators and Dimstyles used by the Arup CAD standard.

Was used during the upgrade from v8.1 to v8 2004. Possibly still works, refer to Technote 4 here: http://mccweb/cadtools_ustn/CADtools_MicroStation/CADtools_TechNotes.htm

CADtools_Drawing_ActivateSheet.txt

Opens all the drawings and sets the 'Sheet Model' to active

CADtools_Drawing_Reinsert_TextCell.txt

Re-inserts the text cell in the title block. This is useful when the drawing borders have been amended after the drawing sheets have been created. This routine relies on the following conditions.

1.The new drawing borders are the same paper size (i.e can't replace A1 with A0)

2.The Drawing border files must be in the same directory, with the same file names as before

3.The drawing text will be re-inserted in the new correct positions, but existing drawing issues will NOT be modified or moved

4.The Mock border will not be modified either, so this routine may not work if the mock border has changed significantly

CADtools_Drawing_RelocateMockBorder.txt

Opens all the drawings, switches to the sheet model and re-aligns the sheet to the mock border in the default model.

CADtools_Drawing_Update_Address_Local.txt

Sets the title block address to the address of the local office.

CADtools_Drawing_Update_Address_Main.txt

Set the title block address to the Arup head office address in London

CADtools_Drawing_Update_BorderPath.txt

Updates the location of the drawing borders that is embedded in each file with a drawing sheet. The value is set to whatever is currently defined in ProjectSettings.txt This is useful when the Drawing borders have moved location AFTER a number of drawing sheets have been set up.

CADtools_Drawing_Update_Client.txt

Update the Client details to match what is currently set in ProjectSettings.txt

CADtools_Drawing_Update_JobNumber.txt

Update the Job number to match what is currently set in ProjectSettings.txt

CADtools_Drawing_Update_Job_Title.txt

Update the Job title to match what is currently set in ProjectSettings.txt

CADtools_Drawing_Update_Client_Title_JobNo.txt

Updates the Client Details, Job Number & Job title to match what is currently set in ProjectSettings.txt

CADtools_Drawing_Update_Current_Issue.txt

Update details of the current Revision/Issue cell. This allows you to set the date of the current issue cells to be a date in the future, update the 'By', 'Checked' etc.

Note: Before running this command file, the user must set the details to be applied to the Revision/Issue using the keyin "vba run [CADTools_Drg_setup]Issue.Set_Issue_Details_For_Batch_Update", then use the Batch Process tool with this command file. See the demo video - Media:CADtools-Ustn-Batch_Update_Issue_cbr.wmv

CADtools_Drawing_Update_Current_Issue_Todays_Date.txt

Update the current Revision/Issue cell so the date is set to today's date. Unlike the CADtools_Drawing_Update_Current_Issue batch process command (above) this one does not need any 'setup' to be run.

CADtools_Drawing_Update_DocNumber.txt

Update the Drawing number to match the name of the file it is in (without file extension like .DGN)

CADtools_Drawing_Update_PlotLabel.txt

Updates the 'Plot Label' on the title block, which is the File path location. Useful when drawings have moved directory. (Note: May be obsolete in future if the Plot label is 'auto-updated')

CADtools_Drawing_Update_Status.txt

Updates the 'Status' on the title block.

Note: Before running this command file, the user must set the current 'Status' to be applied to the drawings using the keyin "vba run [CADtools_Drg_Setup]Tags.Set_Status_For_Batch_Update", then use the Batch Process tool with this command file.

CADtools_Example_Batch_Script.txt

An example command script for use with the Batch processor. It moves all element 1 unit in the X direction, then scales them by 0.5 and finally rotates them.

CADtools_History_Delete.txt

Deletes any 'Design History' in the file. Needs 'History Delete' permissions generally reserved for CAD managers.

CADtools_Levels_Delete_Unused.txt

Deletes any unused levels in the design file, needs 'layer write' permissions generally reserved for CAD managers. Note, the layer definition is not removed from any layer libraries, so it will still be 'available'

CADtools_Levels_Detach_Libraries.txt

Detaches any of the Arup CAD standard layer libraries

CADtools_Levels_Update_From_Library.txt

Updates the level definitions from the attached layer library. Useful when the layer library has been updated and a number of drawings need to be updated.

CADtools_Model_View1_LevelsOn_FitAll.txt

Activates the default model, maximizes view 1 and closes all other views, turns on all levels and then fits the design file to the view.

CADtools_Ref_Detach_All.txt

Detach's all reference files

CADtools_Ref_Detach_All_that_are_off.txt

Detach's all reference files that the display is turned off

CADtools_Ref_Remap.txt

Batch remapping of reference file paths.

Reads the file C:/CADtools_Ustn/Vba/RefFileRemap.csv (You may need to create the directory and file) to remap reference file directories and or filenames. Refer to CADtools_Ustn_Batch_Remap_References for more details

CADtools_Raster_Remap.txt

Batch remapping of raster file paths.

Reads the file C:/CADtools_Ustn/Vba/RasterFileRemap.csv (You may need to create the directory and file) to remap raster file directories and or filenames. Refer to CADtools_Ustn_Batch_Remap_Rasters for more details

There maybe additional steps required to complete the Batch Processing should a file have been upgraded from MS v8 2004 Edition to MS v8 XM Edition. Please refer to your local CAD Manager

 

 

Batch Insert Issue

A PDF has been prepared which explains the use of the Batch Insert Issue tool, it can be found here Media:CADtools Ustn Using the Batch Insert issue Tool.pdf

 

Batch Create Drawings

To Batch Create a number of drawings, please follow these instructions: CADtools_Ustn_Batch_Create_Drawings

 

Batch Update Drawings titles

To Batch update the titles of a number of drawings, please follow these instructions: CADtools_Ustn_Batch_Update_Drawing_Titles

 


Direct link to this topic:

© 2013 Arup