PDA

View Full Version : How to associate/launch AutoCAD with a CAL raster file?



claymont
14th May 2007, 06:18 pm
Is there a way to have AutoCAD automatically launch and insert a given CAL raster image when doubleclicking that CAL file in Explorer? We are using the GTX Raster plug-in. I have asked the GTX folks, and they basically said the solution would be purely in the AutoCAD domain (i.e. their program does not facilitate such an action).

I tried to find info on ways to do this using AutoCAD command line switches (to use in Window's file association), scripting, bat files, AutoLisp, etc. but have come up empty so far. Please bear in mind that I am a AutoCAD newbie (I am actually inquiring on behalf of one of my colleagues).

Thanks!
Brian

rkmcswain
14th May 2007, 07:23 pm
I'm sure you could associate AutoCAD with .CAL files, but what would AutoCAD do once it opened? It can't open a CALS file for editing. The image has to be attached to the drawing first.

You can open AutoCAD with a script file and have the script file attach the CALS file, but how would you pass the name of the CALS file to the script...? If you get that to work, let us know.