Results 1 to 5 of 5

Thread: Removing extended entity data

  1. #1
    Active Member
    Join Date
    2000-12
    Posts
    71
    Login to Give a bone
    0

    Default Removing extended entity data

    How can I remove all of the extended entity data from an object? I thought maybe vl-remove and then entmod-ing back but that doesn't seem to work.

    Thanks,
    Jason Self

  2. #2
    Active Member
    Join Date
    2000-12
    Posts
    71
    Login to Give a bone
    0

    Default Re: Removing extended entity data


  3. #3
    I could stop if I wanted to
    Join Date
    2009-03
    Location
    London, England
    Posts
    304
    Login to Give a bone
    0

    Default Re: Removing extended entity data

    I use something like this:

    Code:
    (defun c:DelX ( / appID ss )
      ;; © Lee Mac  ~  16.06.10
    
      (setq appID "APP") ; Application Name
    
      (if (setq ss (ssget "_:L" (list (list -3 (list appID)))))
        (
          (lambda ( i / ent )
            (while (setq ent (ssname ss (setq i (1+ i))))
              (LM:RemoveXData ent appID)
            )
          )
          -1
        )
      )
      
      (princ)
    )
    
    (defun LM:RemoveXData ( entity appID )
      ;; © Lee Mac  ~  26.05.10
      (if (assoc -3 (entget entity (list appID)))
        (entmod (list (cons -1 entity) (list -3 (list appID))))
      )
    )

  4. #4
    Active Member
    Join Date
    2000-12
    Posts
    71
    Login to Give a bone
    0

    Default Re: Removing extended entity data

    Thanks. I'm surprised to see you on AUGI, your a legend with the guys in my office that frequent CAD Tutor.

  5. #5
    I could stop if I wanted to
    Join Date
    2009-03
    Location
    London, England
    Posts
    304
    Login to Give a bone
    0

    Default Re: Removing extended entity data

    Hehe thanks, I feel honoured

    A started an account on here a while back, just thought I'd stop by

Similar Threads

  1. CP9300-1: Extended Entity Data
    By Autodesk University in forum Customization and Programming
    Replies: 0
    Last Post: 2014-12-01, 01:42 AM
  2. CP34-1: Extended Entity Data
    By Autodesk University in forum Customization and Programming
    Replies: 0
    Last Post: 2013-03-30, 02:11 AM
  3. PR34-3: Extended Entity Data
    By Autodesk University in forum Computer Programming
    Replies: 0
    Last Post: 2012-11-24, 07:38 PM
  4. PG41-2: Extended Entity Data
    By Autodesk University in forum Computer Programming
    Replies: 0
    Last Post: 2012-11-19, 03:44 PM
  5. Three programs using EXTENDED ENTITY DATA
    By aaronic_abacus in forum AutoLISP
    Replies: 1
    Last Post: 2007-01-02, 01:13 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •