Script for batch conversion of *.stp files

Script for batch conversion of *.stp files

tstorzuk
Advocate Advocate
896 Views
2 Replies
Message 1 of 3

Script for batch conversion of *.stp files

tstorzuk
Advocate
Advocate

I found this link;

https://www.autodesk.com/support/technical/article/caas/tsarticles/ts/2kr9xuxR4Hu1bt2OiPV59Q.html

for batch converting *.stp files into *.dwg files.

 

I've checked and rechecked to see if my script file matches the examples, and it does.

I have added;

_Filedia 0

to the top of the script file as well as added;

_Filedia 1

to the bottom of the script file as the instructions say to.

 

I run it and every time I keep getting this error information at the command prompt;

 

Enter template file name or [. (for none)] <C:\Users\xxxxx\AppData\Local\Autodesk\AutoCAD 2023\R24.2\enu\Template\acad.dwt>:_IMPORT Template drawing _IMPORT
is not on file.  Using defaults.Regenerating model.


AutoCAD menu utilities loaded.; error: bad character read (octal): 0

Command:
Command:

Command:
Command: "C:\TEMP\HalfCoupling\3000-SocketWeld-1-BonneyForge-3D-04-24-2023.stp"
Unknown command "STP"".  Press F1 for help.

**** System Variable Changed ****
1 of the monitored system variables has changed from the preferred value. Use SYSVARMONITOR command to view changes.

 

Any suggestions as to how to make this actually work? I'd really rather not have to import hundreds more *.stp files one at a time. I've already done a couple hundred, but it's a super slow process.

0 Likes
Accepted solutions (1)
897 Views
2 Replies
Replies (2)
Message 2 of 3

komondormrex
Mentor
Mentor
Accepted solution

hey,

you need to add blank line after command _qnew to confirm using default template for creating a new dwg file.

Message 3 of 3

tstorzuk
Advocate
Advocate

@komondormrex 

 

Thanks so much for the quick reply. That's exactly what was missing. Just ran a batch of 31 stp files with no issue.

 

Today is going to be a productive day!!!!

 

Thanks so much!!!

0 Likes