Jump to content

acad.pgp


Recommended Posts

hi

 

regarding to acad.pgp.

 

it has two applications ,

 

1. mapping aliases to autcad commands

2. passing commands and parameters to the OS

 

i want to talk about the second ,

 

its true that every application must be defined in the system search path in order to be invoked from autocad?

 

how can i know all the available parameters of shell commands? for example , i want to set external command that invoke explorer.exe with specific folder opened?

 

Thanks

S

Link to comment
Share on other sites

Huh Explorer.exe c:\acadtemp

 

Folders with spaces in ther names will be a problem need explorer.exe %1 old DOS days now where is that 20 year old book.

 

No need (startapp "explorer" (getvar "dwgprefix")) check out the double slashes in the getvar.

 

(startapp "explorer" "C:\\Acadtemp\\test dir space\\")

Edited by BIGAL
Link to comment
Share on other sites

Couple examples:

My Documents Folder:

^C^C^P(progn(startapp "explorer" (strcat "/n,/e," (getvar "mydocumentsprefix")))(princ))

Open Windows Explorer in Roamable Support Folder:

^C^C^P(progn(startapp "explorer" (strcat "/n,/e," (getvar "roamablerootprefix")"Support"))(princ)) 

Icon Folder:

^C^C^P(startapp "explorer" (strcat "/e, "(vla-get-CustomIconPath (vla-get-Files (vla-get-Preferences (vlax-get-acad-object))))));

Express Folder:

^C^C^P(progn(startapp "explorer" (strcat "/n,/e," (vl-filename-directory (findfile "acetauto.lsp"))))(princ));

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...