need lisp code to extract all blocks from the .dwg file and add them to bricscad toolpalette automat
i need a small lisp code to extract all the blocks from the current .dwg document opened
and add them to the toolpalette of bricscad, so that these blocks canbe used in all dwg documents.
thanks in advance.
Comments
-
If they all exist in one file, you could Insert that file in each new new job as a block.
Or copy and paste the blocks into an empty file using drawing explorer, save that file to use as the template or to insert into new files as needed.
Cancel the insert before completing it and all the blocks should be available within the new file.
I believe drawing explorer and the block insert dialogue should do a good enough job of what you want.
0 -
thanks a lot. in case you have lisp code also please give me.
your suggestion is working perfectly. right now, i can proceed with my work without any hitch.
0 -
Sorry I don't have a lisp to do that.
I'm not sure how possible it is for a lisp to work across multiple files and I don't believe it could provide much advantage.
It's only a two or three step operation for each new job, depending mainly on whether there is one or multiple current.dwg's.
If all the block definitions are in a file used as a template, all you have to do is keep the template updated.
In drawing explorer blocks can be manipulated with all the same functionality as files in a windows explorer - they don't have to exist on screen, only their definitions within a file.
0 -
Kotesh,
Perhaps you are trying to do something else, but via the drawing _EXPLORER (CTRL + 2) BricsCAD will generate toolpalettes for of blocks contained within a drawing file. This blog post here talks about how to do this
http://blog.bricsys.com/2012/08/tip-working-with-blocks.html
Regards,Jason Bourhill
0