Message 1 of 11
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello programmers!
I have the following issue with my lisp code. I am trying to explode all items on a certain layer so that they can be exported to excel. The problem i have is that the code makes a nice selection of all the items on that layer, and when i manually enter the explode command all works fine. But the explode command in my lisp code does not work.
This may be a really simple question to answer but im new to lisp and autocad so im having a rough time figuring it out. Any help would be appreciated!!
My code:
(setq layerName "Maatvoering_Export") ; set layername to "maatvoering_export"
(command "-LAYER" "M" layerName "") ; Give layer command in autocad using M to make current layer.
(sssetfirst nil (ssget "X" (list (cons 8 (getvar "clayer"))))) ; selects everything
(command "EXPLODE") ; This explodes everything on the curent layer so it can be brought into excel
Solved! Go to Solution.