Placing lips for AutoCAD

Placing lips for AutoCAD

EmreYucel34
Advocate Advocate
506 Views
4 Replies
Message 1 of 5

Placing lips for AutoCAD

EmreYucel34
Advocate
Advocate

Hello, we want to do Nesting via AutoCAD, is it possible to show a sample Lips? And are there ready-made Lips for this process, thanks in advance for your help, good day

0 Likes
507 Views
4 Replies
Replies (4)
Message 2 of 5

Kent1Cooper
Consultant
Consultant

Do some Searching.  This topic has come up before.

 

[And it's AutoLisp.  "Placing lips" is something one would do in a kiss.]

Kent Cooper, AIA
Message 3 of 5

Moshe-A
Mentor
Mentor

@EmreYucel34  hi,

 

if by saying 'nesting' you mean Recursion, than AutoLISP supports recursion as other top programing languages.

here is a nice example from Mr Lee Mac to return a list from a string.

 

(LM:str->lst "one,two,three,four" ",") return ("one" "two" "three" "four")

 

 

 

(defun LM:str->lst ( str del / pos )
    (if (setq pos (vl-string-search del str))
        (cons (substr str 1 pos) (LM:str->lst (substr str (+ pos 1 (strlen del))) del))
        (list str)
    )
  )

 

0 Likes
Message 4 of 5

LDShaw
Collaborator
Collaborator

This one has two different ways.
It;s running striptext and one that plays with the layers 

(c:G-GEN)

(defun c:exl ()
(load "stripmtext.lsp")
(setq all_ss (ssget "x"))

(StripMtext all_ss '("c" "f" "h" "q" "o" "s" "t" "u" "w" "n"))
  (c:G-GEN)

 

0 Likes
Message 5 of 5

Kent1Cooper
Consultant
Consultant

@EmreYucel34 wrote:

.... we want to do Nesting via AutoCAD, ....


Please clarify what you mean.  People are interpreting it differently.  I suspect it is about fitting cut-out shapes most efficiently into sheets of material for minimal waste:

Kent1Cooper_0-1719936865999.png

That is from a company that makes nesting software -- www.nestfab.com -- but there are many others.  I don't know about that one, but surely some of them can be used in conjunction with AutoCAD.  A Search in this Forum will probably lead to some.

Kent Cooper, AIA