Query Current Project +

how do i query current project (set project).. is there an environment varible?

also if i want to make a script that imports a file... where will it look for the file?

i want to do something like this:

file -import -type "DWG_DXF" -gr -namespace "x" -options ";overrideUnits=1;units=1;scaleFactor=1" "x.dwg";

but i want the lookup path to be something like this:
%currentproject%/data/x.dwg

please be as remedial as you want...
cass

To query a full name of current project path:

CODE
workspace -fn;

look into workspace command for more options.

Hi

CODE
string $getCurrDir=workspace -q -dir;

this code will give the current project dir

CODE
string $getcurrdatfld=$getCurrDir+"data";

print $getcurrdatfld

this will give where is ur current data folder

enjoy

regds

o.S.k