Results 1 to 4 of 4

Thread: Obtain layer name from insertion point

  1. #1
    I could stop if I wanted to
    Join Date
    2001-01
    Posts
    257
    Login to Give a bone
    0

    Default Obtain layer name from insertion point

    Hi All

    I have a routine that I use to insert arrows blocks at the end of selected lines or objects. The routine automatically sets the osnap to endpoint upon insertion. What I would like the routine do is determine the layer of object from the insertion point. This way I can change the layer of the arrow block after insertion. Thanks in advance.

    Manuel A. Ayala

  2. #2
    Member
    Join Date
    2009-06
    Posts
    16
    Login to Give a bone
    0

    Default Re: Obtain layer name from insertion point

    Suppose the insertion point is set to pt, have you tried:
    Code:
    (cdr (assoc 8 (entget (car (nentselp pt)))))

  3. #3
    I could stop if I wanted to
    Join Date
    2001-01
    Posts
    257
    Login to Give a bone
    0

    Default Re: Obtain layer name from insertion point

    Steve.K

    That seems to have done the job. Many thanks.

    Manuel

  4. #4
    Member
    Join Date
    2009-06
    Posts
    16
    Login to Give a bone
    0

    Default Re: Obtain layer name from insertion point

    Great! You're welcome Manuel.

Similar Threads

  1. Replies: 21
    Last Post: 2012-10-10, 02:38 PM
  2. Obtain Section View Band Information from Point Codes
    By civil3d.wishlist1941 in forum Civil 3D Wish List
    Replies: 0
    Last Post: 2008-05-22, 10:05 PM
  3. RL insertion point
    By kristreagus in forum Dynamic Blocks - Technical
    Replies: 18
    Last Post: 2007-11-08, 03:33 AM
  4. Placing insertion point at mid-point of flange on a steel section
    By Spenner in forum Dynamic Blocks - Technical
    Replies: 4
    Last Post: 2007-06-18, 01:53 PM
  5. Replies: 3
    Last Post: 2007-04-20, 12:33 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
  •