Message 1 of 9

Not applicable
02-09-2020
09:44 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Please someone put me out of my misery and tell me what I am doing wrong:
(foreach tab (layoutlist) (setvar "ctab" tab) (COMMAND "pspace") (if sr (list (cons 8 lay)(cons 410 (getvar "ctab"))) ;fix this. (if exists in paper space / current tab)) (command "_CHANGE" sr "" "P" "LA" "XREF" "") );end if );foreach tab
sr is a variable for xrefs. When I take away the 'if' lines it works perfectly.
I've tried many different ways of writing it with different filters and can not for the life of me get it working.
Many many thanks in advance.
Solved! Go to Solution.