AutoCAD 2023 - Command string not working on all computers ^C^C_start

AutoCAD 2023 - Command string not working on all computers ^C^C_start

jdrury1
Explorer Explorer
1,964 Views
30 Replies
Message 1 of 31

AutoCAD 2023 - Command string not working on all computers ^C^C_start

jdrury1
Explorer
Explorer

We created a tool pallet that enables you to open our criteria for drawings.  The Command string works on some computers but not all.  Any suggestions?  AutoCAD 2023.

 

^C^C_start "explorer" "C:/MARTA-Tools/Toolpalette/Documents/CFD.pdf";

 

[ The subject line of this post has been edited for clarity by @handjonathan Original: Command string not working on all computers ^C^C_start ]

0 Likes
1,965 Views
30 Replies
Replies (30)
Message 2 of 31

pendean
Community Legend
Community Legend
what does "not working" for some computers mean exactly please? Elaborate please, for example your file pathing is very specific for one single computer and one folder on a C-drive, so access to many others computers would be a challenge.
0 Likes
Message 3 of 31

jdrury1
Explorer
Explorer

The file paths are the same on both computers as are the file names.  When we click on the icon in the tool pallet, the PDF does not open.  The command line states unknown command "PDF"" 

 

 

0 Likes
Message 4 of 31

paullimapa
Mentor
Mentor

On the computers that don’t work do they have an app that is associated to open a pdf file?


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Likes
Message 5 of 31

cadffm
Consultant
Consultant

I have to guess, but:

 

>>"The command line states unknown command "PDF"" "

Are you sure that's all?

Run the macro and press [F2], read all line starting from "Command: _start" to the end..

 

>>"AutoCAD 2023."

For me it sounds the workstation in question don't use AutoCAD 2023.

Are you sure it is not AutoCAD LT?

 

Sebastian

0 Likes
Message 6 of 31

jdrury1
Explorer
Explorer

I'm not sure what you mean by app. Do you mean Adobe or Bluebeam? If so, yes to both.  Adobe is set at the default.

 

0 Likes
Message 7 of 31

jdrury1
Explorer
Explorer

It is 100% 2023, it was installed a month ago. 

 

Here is the log.

Command: "C:/MARTA-Tools/Toolpalette/Documents/CFD.pdf"

Unknown command "PDF"".  Press F1 for help.

 

Command:

Command:

Command: _start Unknown command "START".  Press F1 for help.

 

Command: "explorer" Unknown command ""EXPLORER"".  Press F1 for help.

 

Command: "C:/MARTA-Tools/Toolpalette/Documents/CFD.pdf"

Unknown command "PDF"".  Press F1 for help.

 

Command:

Command:

Command: _start Unknown command "START".  Press F1 for help.

 

Command: "explorer" Unknown command ""EXPLORER"".  Press F1 for help.

 

Command: "C:/MARTA-Tools/Toolpalette/Documents/CFD.pdf"

Unknown command "PDF"".  Press F1 for help.

0 Likes
Message 8 of 31

paullimapa
Mentor
Mentor

Is it possible hat not all computers have the same folder location or file name where the pdf is stored

"C:/MARTA-Tools/Toolpalette/Documents/CFD.pdf"


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Likes
Message 9 of 31

cadffm
Consultant
Consultant

@paullimapa  the command START is unknown, so it has nothing to do with the path.

 

@jdrury1 2023 or 2015, the question is: AutoCAD or AutoCAD LT

Sebastian

0 Likes
Message 10 of 31

jdrury1
Explorer
Explorer

AutoCAD not LT

0 Likes
Message 11 of 31

paullimapa
Mentor
Mentor

Could Start have been undefined?

try typing it at command prompt 

precede command with a period:

_.Start


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
Message 12 of 31

pendean
Community Legend
Community Legend

@jdrury1 wrote:

Command:

Command: _start Unknown command "START".  Press F1 for help.


That error message means that command is disabled: it means nothing else. You need to find out why.

 

Walk over to one of those PCs, start AutoCAD, at the commandline type .START (there is a period in the name) then hit <enter>. What happens? Also check ABOUT command for AutoCAD vs LT vs OEM version running on that workstation, and if any addons may be locking out .START command.

 

TIA

0 Likes
Message 13 of 31

jdrury1
Explorer
Explorer

It does not allow _start.  It automatically changes to _Startup

0 Likes
Message 14 of 31

paullimapa
Mentor
Mentor

since you're using AutoCAD on all stations try this lisp code:

^C^C(startapp "explorer" "C:/MARTA-Tools/Toolpalette/Documents/CFD.pdf")


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Likes
Message 15 of 31

jdrury1
Explorer
Explorer

.start automatically changes to startup.

0 Likes
Message 16 of 31

paullimapa
Mentor
Mentor

try this at command prompt:

REDEFINE

START

then enter START again


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Likes
Message 17 of 31

jdrury1
Explorer
Explorer

Yeah, it is apparent it does not like start. 

 

It automatically changed startapp to startup when we ran your lisp.

 

C^C(startapp "explorer" "C:/MARTA-Tools/Toolpalette/Documents/CFD.pdf")

0 Likes
Message 18 of 31

jdrury1
Explorer
Explorer

try this at command prompt:

REDEFINE

START

then enter START again  

We get unknow command name

0 Likes
Message 19 of 31

paullimapa
Mentor
Mentor

wow...are you sure you're running AutoCAD?


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Likes
Message 20 of 31

jdrury1
Explorer
Explorer

lol, yes.  I'm not a guru but I'm sure it's AutoCAD.   Same copy is on my machine, and it works great. 

0 Likes