View Full Version : Working with blocks
sabaka_z33
30th Sep 2004, 05:25 am
Is it possible to draw lines/plines/arcs, and then create a block from them using nothing but LISP?
also, to check if a block exists and insert it into the drawing?
any reference to block functions would be helpfull, i think http://home.comcast.net/~sabaka33/cool.png i can't seem to find any info on this on this website, and even google http://home.comcast.net/~sabaka33/shocked.png
fuccaro
30th Sep 2004, 05:55 am
Can you do it in AutoCAD? If so, probably it will be possible in AutoLisp too. To convert something to block:
(command "-block" ... ) exactly lyke in AutoCAD.
To check if a block is defined in the curent drawing use TBLSEARCH -read the help file to learn more about.
David Bethel
30th Sep 2004, 05:34 pm
In short "Yes"
Do you to draw the line etc with lisp as well?
You can (entmake) entites as well as block table defintions. I do it all of the time. There several scenarios, each takes a bit of a different approach. -David
SpeedCAD
17th Oct 2004, 04:58 pm
Is it possible to draw lines/plines/arcs, and then create a block from them using nothing but LISP?
also, to check if a block exists and insert it into the drawing?
any reference to block functions would be helpfull, i think http://home.comcast.net/~sabaka33/cool.png i can't seem to find any info on this on this website, and even google http://home.comcast.net/~sabaka33/shocked.png
Yeah, using reactors :yes:
Powered by vBulletin™ Version 4.1.2 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.