.NET

Reply
Member
satheesh_msb
Posts: 4
Registered: ‎02-20-2014
Message 1 of 4 (301 Views)
Accepted Solution

DWG to DXF conversion issue with Script Pro

301 Views, 3 Replies
02-20-2014 04:05 PM

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.

 

 

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

*Expert Elite*
dgorsman
Posts: 5,402
Registered: ‎10-12-2006
Message 2 of 4 (239 Views)

Re: DWG to DXF conversion issue with Script Pro

02-24-2014 11:58 AM 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.
Adopt. Adapt. Overcome. Or be overcome.
A good question will be halfway to a good answer.


Member
satheesh_msb
Posts: 4
Registered: ‎02-20-2014
Message 3 of 4 (229 Views)

Re: DWG to DXF conversion issue with Script Pro

02-24-2014 05:00 PM 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.



Member
satheesh_msb
Posts: 4
Registered: ‎02-20-2014
Message 4 of 4 (217 Views)

Re: DWG to DXF conversion issue with Script Pro

02-25-2014 02:29 PM 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

Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.