.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

DWG to DXF conversion issue with Script Pro

4 REPLIES 4
SOLVED
Reply
Message 1 of 5
satheesh_msb
1517 Views, 4 Replies

DWG to DXF conversion issue with Script Pro

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.

 

 

Tags (2)
4 REPLIES 4
Message 2 of 5
dgorsman
in reply to: satheesh_msb

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.

----------------------------------
If you are going to fly by the seat of your pants, expect friction burns.
"I don't know" is the beginning of knowledge, not the end.


Message 3 of 5
satheesh_msb
in reply to: dgorsman

We have enterprise license for Autocad 2012 .We are developing the windows service using VS2008. Problem is we don't have VS2010 .So we couldn't use the API . So for time being we are planning to use the Script pro as a comand line tool to convert the drawing from DWG to DXF.. 1. All the drawings are stored in the Network folder.
2. Script pro opening the file and trying to convert the DXF file in the same folder..
3.We would like put the DXF files in the Local drive.
i can copy the file from the network folder to local folder but XREF files are located in different folder so i can't do it.



Message 4 of 5
satheesh_msb
in reply to: satheesh_msb

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

Message 5 of 5
dikeyart
in reply to: satheesh_msb

 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost