I am new to Autocad.we have created new windows service using .net.One task is to convert the dwg file to dxf file.
to perform the task we are using Script pro.
DWG files are located in P:\TRI_PRODUCTION.
XREF is located in different folder.
we need to bind and convert to DXF.
the script file contains following commands
File name : DXFout.scr
_.-XREF
BIND
*
dxfout
DWG2DXF.bpl
[General_Start]
Version*3
Product*2011
Script*C:\testdrwg\DXFOut.scr
TimeOut*30
RestartCount*30
IniScript*
LogFileName*
AutoCADPath*
Sleep*0
RunwithoutOpen*False
[General_End]
[DWGList_Start]
P:\TRI_PRODUCTION\X1LETDRA1.dwg,1
[DWGList_End]
It is creating the DXF file in P:\TRI_PRODUTION Folder.
We would like to create the DXF file in Different folder let say
source file : P:\TRI_PRODUCTION\X1LETDRA1.dwg
destination file : c:\DXFFiles\X1LETDRA1.dxf
I will appreciate any help to reslove my issue.
Solved! Go to Solution.
Solved by satheesh_msb. Go to Solution.
You should first get some clarification on your process. I believe running the program as a service like you are suggesting (as opposed to running it on an individual user's computer) could be in violation of the terms of service.
I resolved my issue.. I have used the saveas command to save the file in required location and then i used the dxfout.
_.-XREF
BIND
*
FILEDIA
0
(COMMAND "_SAVEAS" "2010" (STRCAT "C:/testdrwg/Process/" (GETVAR 'DWGNAME)))
FILEDIA
1
dxfout