Continue to Site

Welcome to 3DCADForums

Join our CAD community forums where over 25,000 users interact to solve day to day problems and share ideas. We encourage you to visit, invite you to participate and look forward to your input and opinions. Acrobat 3D, AutoCAD, Catia, Inventor, IronCAD, Creo, Pro/ENGINEER, Solid Edge, SolidWorks, and others.

How to Pass Command Line Arguments to CATScript Macro




I have a question regarding a macro.

I am in need of automating the tool catalog creation using batch file. I want to pass the address of the csv file and catalog file in command line

Command: CNEXT -batch -macro "D:\test\catalog.catscript" D:\test\tool.csv D:\test\tool.catalog.

In CATScript I used an argument as

Sub CATMain (arg1 arg2). But the script is not taking the arguments. It is working only interactively. Is it possible to pass the arguments to CATScript in command line?

Thanks in advance.

Articles From 3DCAD World