Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: Adding modify data to dxf code

  1. #1
    100 Club
    Join Date
    2003-06
    Location
    North Dallas
    Posts
    168
    Login to Give a bone
    0

    Default Adding modify data to dxf code

    I'm going to try and explain this the best I can so here goes:
    I've got a lisp program that modifies a block with over 200 attributes. What I'd like to do is add some arbitrary DXF code to the association list of an attribute that tells the program that the attribute has been previously modified. The question here (finally) is:

    Is there a DXF code that is in place for programmatic data?
    Is there some other way of adding my own DXF code to the assoc list?

  2. #2
    100 Club
    Join Date
    2003-06
    Location
    North Dallas
    Posts
    168
    Login to Give a bone
    0

    Default Re: Adding modify data to dxf code

    Just went through help looking at DXF codes and found:
    300-309-Arbitrary text strings
    will this work for my purpose?

  3. #3
    AUGI Addict
    Join Date
    2008-02
    Posts
    1,141
    Login to Give a bone
    0

    Default Re: Adding modify data to dxf code

    XData or LData is an option.

  4. #4
    100 Club
    Join Date
    2003-06
    Location
    North Dallas
    Posts
    168
    Login to Give a bone
    0

    Default Re: Adding modify data to dxf code

    Please explain further? How would I use XData or LData?

  5. #5
    The Silent Type RobertB's Avatar
    Join Date
    2000-01
    Location
    Seattle WA USA
    Posts
    5,859
    Login to Give a bone
    0

    Default Re: Adding modify data to dxf code

    Quote Originally Posted by mvsawyer View Post
    Please explain further? How would I use XData or LData?
    XData is documented in the LISP help files.
    R. Robert Bell
    Design Technology Manager
    Stantec
    Opinions expressed are mine alone and do not reflect the views of Stantec.

  6. #6
    AUGI Addict
    Join Date
    2008-02
    Posts
    1,141
    Login to Give a bone
    0

    Default Re: Adding modify data to dxf code

    Forget LData, that's for dictionaries anyway. Sorry about that.

  7. #7
    AUGI Addict
    Join Date
    2015-12
    Posts
    2,095
    Login to Give a bone
    0

    Default Re: Adding modify data to dxf code

    XDATA is probably best, but have a look into XRECORDS as well. They can be attached to the entities' extension dictionary and having them indexed with a look-up value is helpful.

  8. #8
    The Silent Type RobertB's Avatar
    Join Date
    2000-01
    Location
    Seattle WA USA
    Posts
    5,859
    Login to Give a bone
    0

    Default Re: Adding modify data to dxf code

    Quote Originally Posted by dgorsman View Post
    XDATA is probably best, but have a look into XRECORDS as well. They can be attached to the entities' extension dictionary and having them indexed with a look-up value is helpful.
    Yeah, I should have mentioned that extension dictionaries are usually preferred to XData these days.
    R. Robert Bell
    Design Technology Manager
    Stantec
    Opinions expressed are mine alone and do not reflect the views of Stantec.

  9. #9
    100 Club
    Join Date
    2003-06
    Location
    North Dallas
    Posts
    168
    Login to Give a bone
    0

    Default Re: Adding modify data to dxf code

    Quote Originally Posted by dgorsman View Post
    XDATA is probably best, but have a look into XRECORDS as well. They can be attached to the entities' extension dictionary and having them indexed with a look-up value is helpful.
    I want the information attached specifically to the attribute entity. My lisp modifies the attribute's justification (default is middle, modify right or left). Now I need some way of attaching data to the attribute's entity definition to show that it was modified. I'm not understanding the use of XDATA or XRECORD in conjunction with entity's association list. Is there an existing DXF code that I can set a value to without XDATA or XRECORD?

  10. #10
    AUGI Addict
    Join Date
    2015-12
    Posts
    2,095
    Login to Give a bone
    0

    Default Re: Adding modify data to dxf code

    Quote Originally Posted by mvsawyer View Post
    I want the information attached specifically to the attribute entity. My lisp modifies the attribute's justification (default is middle, modify right or left). Now I need some way of attaching data to the attribute's entity definition to show that it was modified. I'm not understanding the use of XDATA or XRECORD in conjunction with entity's association list. Is there an existing DXF code that I can set a value to without XDATA or XRECORD?
    Not that I know of, directly anyways. XDATA and XRECORDs do just that, but handle the interfacing for you. Have a couple of read-throughs in the LISP help on both types, its laid out well.

Page 1 of 2 12 LastLast

Similar Threads

  1. Adding code generated entities to a selection set
    By lambwill in forum Dot Net API
    Replies: 3
    Last Post: 2010-08-19, 05:51 AM
  2. Replies: 2
    Last Post: 2009-02-10, 02:25 PM
  3. Courtesy, adding comments to code
    By artisteroi in forum VBA/COM Interop
    Replies: 8
    Last Post: 2007-05-25, 01:56 AM
  4. Modify deployment (by adding Service Pack 1)
    By jgratton in forum CAD Management - General
    Replies: 11
    Last Post: 2005-12-09, 03:03 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
  •