[solved I think ] Error when I use dwg2bmp

Use this forum to ask questions about how to do things in QCAD.

Moderator: andrew

Forum rules

Always indicate your operating system and QCAD version.

Attach drawing files and screenshots.

Post one question per topic.

Post Reply
fdixon
Junior Member
Posts: 21
Joined: Thu Sep 17, 2020 6:22 pm

[solved I think ] Error when I use dwg2bmp

Post by fdixon » Fri Mar 25, 2022 5:46 am

Windows 10
Qcad/cam 3.27.1.0 Rev 2726424

Someone please help.

How do I use the dwg2bmp

I didn't see anything in the search about qcadcmd not being recognized.

I am trying to use the DWG2BMP.bat file.
When I use this file I get an error qcadcmd.com is not recognized as an internal or external command.
Qcad is in the path.
If I open a command window and type in the cmd window qcadcmd.com runs when I use the dwg2bmp batch file I get an error, "qcadcmd.com is not recognized as an internal or external command"
I put a pause in the bat file to see the error.
I have uninstalled and reinstalled qcad
I am drag and dropping a file on the bat file to get this error.
If I open a prompt in the folder and call the bat from the command line I get pop up saying windows can't find the file

I wanted to run this on a folder of files.
I can't wrap my head around js so I used the "for" command in windows.

Edit:
I am able to do 1 file at a time from the cmd line.
I tried using the "for" command in the bat file and get the error above.
I tried using AutoHotkey to loop the folder and pass the Dwg2bmp 1 file at a time and got the error above.
I know I am not doing something correctly, I am kind of frustrated. The cam upgrade has given me headaches, all self inflicted too.

Edit:
I'm sorry to waste your time, I think.
I am just calling the Dwg2bmp file and it works, I think.
I was trying to edit the file Dwg2bmp to insert the loop.
That was not working at all.

Mateus Jacobus
Newbie Member
Posts: 3
Joined: Fri Jun 09, 2023 4:25 pm

Re: [solved I think ] Error when I use dwg2bmp

Post by Mateus Jacobus » Fri Jun 09, 2023 4:29 pm

Hello!

Im having the same problem and same message ( qcadcmd.com is not recognized as an internal or external command.) when i try to run the bat. file.
I do have the pro version.

How did you fix this?

User avatar
andrew
Site Admin
Posts: 9019
Joined: Fri Mar 30, 2007 6:07 am

Re: [solved I think ] Error when I use dwg2bmp

Post by andrew » Sun Jun 11, 2023 2:14 pm

Unfortunately, this is a Windows Batch programming issue, unrelated to QCAD. Most likely a PATH environment issue, I'd guess but I'm not a Windows Batch expert.

User avatar
Husky
Moderator/Drawing Help/Testing
Posts: 4931
Joined: Wed May 11, 2011 9:25 am
Location: USA

Re: [solved I think ] Error when I use dwg2bmp

Post by Husky » Sun Jun 11, 2023 6:15 pm

Mateus Jacobus wrote:
Fri Jun 09, 2023 4:29 pm
... ( qcadcmd.com is not recognized as an internal or external command.) when i try to run the bat. file.
Where did you try to run the bat file? Within the QCAD installation folder or somewhere else ...?
Work smart, not hard: QCad Pro
Win10/64, QcadPro, QcadCam version: Current.
If a thread is considered as "solved" please change the title of the first post to "[solved] Title..."

Mateus Jacobus
Newbie Member
Posts: 3
Joined: Fri Jun 09, 2023 4:25 pm

Re: [solved I think ] Error when I use dwg2bmp

Post by Mateus Jacobus » Mon Jun 12, 2023 1:00 pm

Actually from a Excell VBA. I've created i code to run the .bat file. The function of this button is to convert .dxf files into .bmp and place in the label automatically, i'll send here the code and .bat file.

VBA code:

Sub ConvertDXF()
folderPath = Range("K4").Value
Call Shell("""" & "C:\Users\Diego Schmidt\OneDrive\Administração\Pedidos\Convert_DXF.bat" & """" & " " & """" & folderPath & """", 4)

End Sub
Attachments
Convert_DXF.txt
(429 Bytes) Downloaded 160 times

Mateus Jacobus
Newbie Member
Posts: 3
Joined: Fri Jun 09, 2023 4:25 pm

Re: Error when I use dwg2bmp

Post by Mateus Jacobus » Thu Jun 15, 2023 3:05 pm

Hello everione!

I still trying to figure it out, how to use this .bat. Can someone please help me?

Best regards.

Post Reply

Return to “QCAD 'How Do I' Questions”