Results 1 to 4 of 4

Thread: Get me started

  1. #1
    psilzle Guest

    Get me started

    I am new to lisp and was trying to write a program to check and see if
    a layer "interior_loops" exists and if it does move everything on that
    layer to layer 0. I need to do this for a few different layers. What
    I have tried so far, tries to move the entities even if the layer does
    not exist. Of course, that crashes the progam.

    Any help is appriciated...

    Thank you,

    Paul Silzle

  2. #2
    Ben Gun Guest
    please post what you have got so far.
    ben

    On 18 Oct 2005 05:04:12 -0700, "psilzle" <psilzle@bbei.com> wrote:

    I am new to lisp and was trying to write a program to check and see if
    a layer "interior_loops" exists and if it does move everything on that
    layer to layer 0. I need to do this for a few different layers. What
    I have tried so far, tries to move the entities even if the layer does
    not exist. Of course, that crashes the progam.

    Any help is appriciated...

    Thank you,

    Paul Silzle

  3. #3
    psilzle Guest
    I was able to achive what I wanted a different way. I just froze the
    layers I didn't want changed and then changed all the remaining
    entities to layer 0 and then thawed the layers that were frozen.

    Thanks for checking...

    Paul

  4. #4
    Join Date
    Sep 2005
    Posts
    121
    If you want to save a few steps...

    (if (tblsearch "layer" "interior_loops")
    (command "change" (ssget "x" '((8 . "interior_loops"))) "" " "la" "newlayername" "")
    )

Similar Threads

  1. Getting started on the BIM thing...
    By Bert in forum AutoCAD
    Replies: 0
    Last Post: 11-05-2009, 07:07 AM
  2. Replies: 8
    Last Post: 06-18-2005, 05:10 PM
  3. Replies: 3
    Last Post: 06-17-2005, 01:10 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other forums: Access Forum - Microsoft Office Forum - Exchange Server Forum