Jump to content

(layoutlist)


FazBear

Recommended Posts

Morning All

 

I have a lisp that will run a series of commands on multiple layouts which have standard layout names, problem is i am switching to each layout by specifying the layout name, but occasionally some of the layouts will be removed. so the lisp is running commands in error on those missing layouts.

 

Does anyone know a better method than whay i am using. i was thinking somthing like

 

(if (= [layoutname] "500") (command "-layout" "s" "500"))

 

Cheers all.

Link to comment
Share on other sites

As Patrick says, its better to use CTAB (if the version has it), so:

 

(if (member "500" (layoutlist))
 (setvar "CTAB" "500"))

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...