Design World Network | 3DCADTips | 3DCADTutorials | 3DCADForums | 3DCAD Store | 3DCAD Models | Design World






Get CAD tips and tutorials on your desktop when you register at 3DCADTips.com!

3DCADTips Weekly
Latest Issue
Archive

3DCADTips Forum Update
Latest Issue
Archive











Go Back   3DCADForums > CAD Communities > AutoCAD Forum
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read



Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old May 23rd, 2006, 06:32 AM
4StringHell
 
Posts: n/a
Default Lisp to convert points to blocks..?

Hello all !!!

I'm a complete rookie to the site but ma somewhat desperate to find a lisp routine that will convert points into blocks using the same insertion point. Anyone know if this is possible?

I came across Geotools which sounds like it does it but I dont want to have to buy that whole package just to do one task.

Any help would be greatly appreciated!!

Cheers
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Link


  #2 (permalink)  
Old May 23rd, 2006, 01:55 PM
support
 
Posts: n/a
Cool What version of AutoCAD?

Hello 4StringHell,

Please tell us what version of AutoCAD you're running.

Thanks.
3DCADTips Help Desk
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old May 23rd, 2006, 02:53 PM
CADMiester
 
Posts: n/a
Wink Got this from the Autodesk discussion board.

I found this on the Autodesk discussion boards:


Courtesy of: Jeff Mishler
This does exactly this. You must pass it the block name and the desired
scale, like so:
(pt2block "well" 100)

(defun pt2block (bname scale / ss i ent elist)
(if (and (tblobjname "BLOCK" bname)
(setq ss (ssget '((0 . "POINT"))))
)
(progn
(setq i -1)
(while (setq ent (ssname ss (setq i (1+ i))))
(setq elist (entget ent))
(entmake (list (cons 0 "INSERT")
(cons 2 bname)
(assoc 10 elist)
(assoc 8 elist)
(cons 41 scale)
(cons 42 scale)
(cons 43 scale)
(cons 50 0)
)
)
(entdel ent)
)
)
)
)

CADMiester
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old May 23rd, 2006, 02:58 PM
support
 
Posts: n/a
Cool Try this LISP routine...

Hello 4StringHell,

Here is a LISP routine you can try courtesy of Holger Brischke:

Lisp 'PKT_BLK'

Good Luck
3DCADTips Help Desk
Attached Files
File Type: zip pkt_blk.zip (9.0 KB, 46 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old May 25th, 2006, 11:54 AM
bacalhau
 
Posts: n/a
Default

Quote:
Originally Posted by 4StringHell
Hello all !!!

I'm a complete rookie to the site but ma somewhat desperate to find a lisp routine that will convert points into blocks using the same insertion point. Anyone know if this is possible?

I came across Geotools which sounds like it does it but I dont want to have to buy that whole package just to do one task.

Any help would be greatly appreciated!!

Cheers
More thatn just the autocad version you are using, please tell briefly what are you trying to achieve.
are you trying to create blocks/shapes out of points, or do you need to create a 3D terrain?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old May 26th, 2006, 03:44 PM
support
 
Posts: n/a
Cool Another LISP routine...

Hello 4StringHell,

Here is another routine we located off the Autodesk discussion board.

Reply From: Phil Clark
Date: May/23/06 - 18:41 (CDT)
You might check this out. Wrote it a long time ago (and frankly forgot
about it). It will replace not only points, but circles, arcs, text, and
other blocks (entities with one significant point) with a specified block.
Gives options for replacing objects globally or only specified layer and
scaling, rotation, and exploding of block.

Hope this helps.
3DCADTips Help Desk
Attached Files
File Type: zip multins.zip (3.8 KB, 38 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -6. The time now is 07:59 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0