Toolbar Question

Toolbar Question

richie_hodgson
Collaborator Collaborator
501 Views
2 Replies
Message 1 of 3

Toolbar Question

richie_hodgson
Collaborator
Collaborator

Working on a lisp to turn on missing toolbars, have the following

 

(Defun Toolbarson ()
 (Command "-toolbar" "properties" "s")
 (command "-toobar" "layers" "s")
)

 

But it isn't working, what is the equivalent lisp version of -toolbar, I haven't been able to find something with internet searches.

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

ВeekeeCZ
Consultant
Consultant
(defun C:ToolbarsON ()
  (command "-toolbar" "properties" "s")
  (command "-toolbar" "layers" "s")
  (princ)
)

Without "C:" you need to run this routine like this: 

(toolbarson)

 

With "C:" is 

toolbarson

just enought.

 

And you have a typo.

0 Likes
Message 3 of 3

richie_hodgson
Collaborator
Collaborator
Accepted solution

Magic, need to take better care with my spellings, now I can tinker a bit to get a template working.

Richie
0 Likes