neekcotrack 发表于 2022-7-6 17:12:40

Ctrl+Page Up

Is there a way to have lisp do a Control Page Up?
 
I what to do a lisp that prints all my tabs sept for the model tab.
 
The only way I know how to move from tab to tab is control page up/down.
 
Thanks for everything.

Lee Mac 发表于 2022-7-6 17:35:44

I'm not sure if this would work but:
 
If there is maybe an Active X method of retrieving a list of all the layout tabs in the drawing, then running a print LISP using the "foreach" function on the list.?

ASMI 发表于 2022-7-6 18:10:27

There is special function:
 

Command: (layoutlist)("Layout1" "Layout2")

Lee Mac 发表于 2022-7-6 18:14:39

Yay, thanks ASMI,
 
Then do something like this maybe:

(defun c:layplot ()(setvar "cmdecho" 0)(setq laylist (layoutlist))(foreach lay laylist(command "-plot""Y"layetc etc etc) ; end plot) ; end foreach(setvar "cmdecho" 1)(princ)) ; end function
页: [1]
查看完整版本: Ctrl+Page Up