Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Home
Help
Login
Register
TheSwamp
»
Code Red
»
AutoLISP (Vanilla / Visual)
»
Topic:
Multiple blocks to files
« previous
next »
Print
Pages: [
1
] |
Go Down
Author
Topic: Multiple blocks to files (Read 1212 times)
0 Members and 1 Guest are viewing this topic.
Fitzandantilus
Guest
Multiple blocks to files
«
on:
October 04, 2016, 11:47:13 AM »
Does anyone know of or have a lisp that will take all the blocks in a single drawings file and extract them to individual files?
I have a single file with all the standards blocks in it and I would like to wblock each block to individual files.
Any help would be appreciated.
Logged
ChrisCarlson
Guest
Re: Multiple blocks to files
«
Reply #1 on:
October 04, 2016, 11:51:22 AM »
Code - Auto/Visual Lisp:
[Select]
;; ;;
;; By: Andrea Andreetti ;;
;; ;;
(
defun
c:BLE
(
/
blocklist fextr
)
(
setq
blocklist
(
ai_table
"block"
8
)
)
(
setq
fextr
(
acet
-
ui
-
pickdir
"Select your folder for extraction:"
"c:
\\
"
"BLE BlockLIST Extractor"
)
)
(
if
fextr
(
progn
(
foreach
n blocklist
(
command
"._-wblock"
(
strcat
fextr
"
\\
"
n
)
n
)
)
)
(
alert
"Please select a folder."
)
)
)
(
c:BLE
)
Logged
danallen
Guest
Re: Multiple blocks to files
«
Reply #2 on:
October 04, 2016, 11:53:43 AM »
tip - in the routine, set current layer to 0, dim & text styles to standard to avoid embedding those items unnecessarily in the block files
Logged
Print
Pages: [
1
] |
Go Up
« previous
next »
TheSwamp
»
Code Red
»
AutoLISP (Vanilla / Visual)
»
Topic:
Multiple blocks to files