The Real JD
Usenet Archive
- Joined
- Jul 28, 2003
- Messages
- 183
- Reaction score
- 0
Does anyone have or know of a lisp routine to do this? TIA
and Happy New Year everybody!
and Happy New Year everybody!
Jesús Padilla said:This is a very rough program that I just finished
I hope this works for you.
JPadilla
(DeFun C2B ( / #PiPoi #PiBlk #LiBlk #InCon #EnPro)
(PrompT "\nSelect the Points")
(SetQ #PiPoi (SSGet (List (Cons 0 "Point"))))
(PrompT "\nSelect the Block")
(SetQ
#PiBlk (SSGet ":S" (List(Cons 0 "Insert")))
#LiBlk (EntGet(SSName #PiBlk 0))
#InCon 0
);SetQ
(Repeat
(SSLength #PiPoi)
(SetQ
#EnPro (EntGet(SsName #PiPoi #InCon))
#InCon (1+ #InCon)
);SetQ
(EntMake (Subst (Assoc 10 #EnPro)(Assoc 10 #LiBlk) #LiBlk)) (EntDel (Cdr(Assoc -1 #EnPro))) );Repeat (PrinC)
);DeFun