Community
AutoCAD Forum
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Autolisp and Designcenter

4 REPLIES 4
SOLVED
Reply
Message 1 of 5
scottemiddleton
615 Views, 4 Replies

Autolisp and Designcenter

I have this code:

 

(defun openTemplatesinDC ()
  (progn
    (command "adcnavigate" "C:/Templates/Templates.dwt")(princ)
   )

)

 

Is there any way to have it go one step further and open the "Layouts" sub-section?

4 REPLIES 4
Message 2 of 5

Try adding this line before the last (princ) and let me know if it works for  you:

 

(setvar "ctab" "layout1")

 

Warm regards from Los Angeles,

 

Emmanuel

Message 3 of 5
hmsilva
in reply to: scottemiddleton


@smiddleton wrote:

I have this code:

 

(defun openTemplatesinDC ()
  (progn
    (command "adcnavigate" "C:/Templates/Templates.dwt")(princ)
   )

)

 

Is there any way to have it go one step further and open the "Layouts" sub-section?


Hi smiddleton,

 

try

 

(defun openTemplatesinDC ()
    (command "adcnavigate" "C:/Templates/Templates.dwt/Layouts")
  (princ)
)

 

Hope that helps

Henrique

EESignature

Message 4 of 5
scottemiddleton
in reply to: hmsilva

That worked PERFECT!  Seems way to logical now that I've been shown!

 

Thanks to all!

Message 5 of 5
hmsilva
in reply to: scottemiddleton

You're welcome, smiddleton
Glad I could help

Henrique

EESignature

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost