Problem using DWFAttach in Accoreconsole

Problem using DWFAttach in Accoreconsole

alexisgacia
Advocate Advocate
751 Views
3 Replies
Message 1 of 4

Problem using DWFAttach in Accoreconsole

alexisgacia
Advocate
Advocate

Hi guys. I'm having problem using DWFAttach.

I tried to create script to automate the process of conversion from DWF to DWG by using the command DWFAttach in Accoreconsole. When it reached to DWFAttach it crashes the accoreconsole. I'm thinking there's another dialog box that I need to turn off aside from FILEDIA that is switch already to 0.

Below the sample script that I'm using. 

( 
(command "filedia" "0") 
(command "ucs" "w") 
(command "_-DWFATTACH" "S:\\Common\\Alex\\test.dwf" "" "0,0" "1" "0") 
(command "_Zoom" "_E") 
(command "._DELAY" 1000) 
(command "_SaveAs" "LT2013" "S:\\Common\\Alex\\test.dwg" "*" "Y" ) 
(command "filedia" "1") 
(_quit) 
)

Thanks in advance.

 

Best regards,

 

Alex

0 Likes
752 Views
3 Replies
Replies (3)
Message 2 of 4

Sea-Haven
Mentor
Mentor

Try (command "-DWFATTACH"

0 Likes
Message 3 of 4

cadffm
Consultant
Consultant

1. You don't need filedia by using  command (script, macro,sendcommand)

2. You don't need to use the associated commandlineversion (- in front of the command name)  

 

Both are only a good helper for testing by hand in Acad commandline.

(It's ok and i do it the same way, all what i want to say is: Technically, it's not good for anything)

 

-DWFATTACH is the same command as _-DWFATTACH because the international call/command is the english command.

 

.DWFATTACH or _.DWTATTACH would be senseful, but more in ACAD as in the ACC.

It starts the original command, instead the command without the point in front of can be modified.

 

_

 

DWFATTACH

I tested for you and the result is: Yes the command DWFATTACH is defined, BUT NOT WORKING

In older version you get an error message(and the crash), in newer versions only the crash.

 

 

Sebastian

0 Likes
Message 4 of 4

alexisgacia
Advocate
Advocate

Thank you for the immediate response. I tried 2018 and 2020 version but the same problem happen. It always crash without message.

Is there any alternative solution?

0 Likes