Visual LISP, AutoLISP and General Customization
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
layoutlist function
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
(layoutlist) ... returns a list of strings of the layout tabs in the drawing.
I've used this ages... Isn't it a core lisp function, or is it coming from express tools or somewhere else?
Solved! Go to Solution.
Re: layoutlist function
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
LayoutList is a core LISP function found in the developer documentation.
~ BlackBox
"Potential has a shelf life." - Margaret Atwood
Re: layoutlist function
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
I thought I recognized you from recent post concerning accorconsole.
acoreconsole says it is unknown function.
Re: layoutlist function
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
I see... I took the phrasing of your OP to mean "core" = basic, standard, vanialla AutoLISP (i.e. no Visual LISP, etc.), and not core console.
Having read your recent post in your AcCoreConsole thread, this makes much more sense to me now... I'll be interested to see what becomes of it.
Cheers!
~ BlackBox
"Potential has a shelf life." - Margaret Atwood
Re: layoutlist function
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
I found what I needed... the below works in AcCoreConsole.
(defun GetLayoutListACoreConsole ()
(defun massoc (key alist / x nlist)
(foreach x alist
(if (eq key (car x))
(setq nlist (cons (cdr x) nlist))
)
)
(reverse nlist)
)
(massoc 3 (dictsearch(namedobjdict)"acad_layout"))
)
Re: layoutlist function
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Glad you got is sorted; thanks for posting the solution for others to find.
Here's wishing Autodesk would enbled full Visual LISP functionality for AcCoreConsole. *throws penny in wishing well*
~ BlackBox
"Potential has a shelf life." - Margaret Atwood
