<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: updating an entity's object data in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/updating-an-entity-s-object-data/m-p/5443167#M145498</link>
    <description>&lt;P&gt;Quick and dirty (without check)&lt;/P&gt;&lt;PRE&gt;((lambda ( / js_pl n_pl ent dxf_ent z_pl)
  (setq js_pl (ssget '((0 . "LWPOLYLINE") (100 . "AcDbEntity") (67 . 0) (410 . "Model") (100 . "AcDbPolyline"))))
  (cond
    (js_pl
      (repeat (setq n_pl (sslength js_pl))
        (setq ent (ssname js_pl (setq n_pl (1- n_pl))))
        (setq dxf_ent (entget ent))
        (setq z_pl (cdr (assoc 38 dxf_ent)))
        (if z_pl
          (progn
            (ade_odaddrecord ent "Working_Floor_Contour")
            (ade_odsetfield ent "Working_Floor_Contour" "Height" 0 z_pl)
          )
        )
      )
    )
  )
))&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 15 Dec 2014 08:43:51 GMT</pubDate>
    <dc:creator>CADaSchtroumpf</dc:creator>
    <dc:date>2014-12-15T08:43:51Z</dc:date>
    <item>
      <title>updating an entity's object data</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/updating-an-entity-s-object-data/m-p/5440943#M145495</link>
      <description>&lt;P&gt;i am looking at updating an entity's object data table field with a selected geometry value of that entity. That is of am wanting to extract from the entity's property the x,y,z value and have that value assigned to a field&amp;nbsp;in a table of an defined object data&lt;/P&gt;</description>
      <pubDate>Fri, 12 Dec 2014 03:55:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/updating-an-entity-s-object-data/m-p/5440943#M145495</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-12-12T03:55:19Z</dc:date>
    </item>
    <item>
      <title>Re: updating an entity's object data</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/updating-an-entity-s-object-data/m-p/5441248#M145496</link>
      <description>&lt;P&gt;Odd request, you want to add data to an entity that it already has?&amp;nbsp; If you want entity data to be put in a (text) field you should be able to do that directly.&amp;nbsp; Can you be more specific about what you're trying to do?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Dec 2014 12:29:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/updating-an-entity-s-object-data/m-p/5441248#M145496</guid>
      <dc:creator>TomBeauford</dc:creator>
      <dc:date>2014-12-12T12:29:26Z</dc:date>
    </item>
    <item>
      <title>Re: updating an entity's object data</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/updating-an-entity-s-object-data/m-p/5442930#M145497</link>
      <description>&lt;P&gt;it is a large 3d file that is dynamic. i would like to extract z value from&amp;nbsp;an object and have it placed in a field of an object data table automatically instead of manually editting field through property box. At&amp;nbsp; the moment each time file is added to i have to manually insert data into field through the object property box and this is very time consuming.&lt;/P&gt;&lt;P&gt;refer to attached jpeg&lt;/P&gt;&lt;P&gt;red line is new 3d line object which i have assigned an odject data table to. i wish to update/extract the Z value of that&amp;nbsp;line into a field of the table.&lt;/P&gt;&lt;P&gt;with 100s of new lines added each 3 monthly period you can see how time consuming it can become&lt;/P&gt;</description>
      <pubDate>Sun, 14 Dec 2014 22:48:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/updating-an-entity-s-object-data/m-p/5442930#M145497</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-12-14T22:48:57Z</dc:date>
    </item>
    <item>
      <title>Re: updating an entity's object data</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/updating-an-entity-s-object-data/m-p/5443167#M145498</link>
      <description>&lt;P&gt;Quick and dirty (without check)&lt;/P&gt;&lt;PRE&gt;((lambda ( / js_pl n_pl ent dxf_ent z_pl)
  (setq js_pl (ssget '((0 . "LWPOLYLINE") (100 . "AcDbEntity") (67 . 0) (410 . "Model") (100 . "AcDbPolyline"))))
  (cond
    (js_pl
      (repeat (setq n_pl (sslength js_pl))
        (setq ent (ssname js_pl (setq n_pl (1- n_pl))))
        (setq dxf_ent (entget ent))
        (setq z_pl (cdr (assoc 38 dxf_ent)))
        (if z_pl
          (progn
            (ade_odaddrecord ent "Working_Floor_Contour")
            (ade_odsetfield ent "Working_Floor_Contour" "Height" 0 z_pl)
          )
        )
      )
    )
  )
))&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Dec 2014 08:43:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/updating-an-entity-s-object-data/m-p/5443167#M145498</guid>
      <dc:creator>CADaSchtroumpf</dc:creator>
      <dc:date>2014-12-15T08:43:51Z</dc:date>
    </item>
    <item>
      <title>Re: updating an entity's object data</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/updating-an-entity-s-object-data/m-p/5444293#M145499</link>
      <description>Thanks very much. Will give it a g. Let you now how i went</description>
      <pubDate>Mon, 15 Dec 2014 23:44:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/updating-an-entity-s-object-data/m-p/5444293#M145499</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-12-15T23:44:23Z</dc:date>
    </item>
    <item>
      <title>Re: updating an entity's object data</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/updating-an-entity-s-object-data/m-p/5451287#M145500</link>
      <description>&lt;P&gt;I am new to &amp;nbsp;LISP and scripts. Have readup looking to run your Lisp but i am lost without the defun statement. unsure how to start it up.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i have come across a LISP that is similar to what i am looking to do and it has (defun z2_ODfield_Height () to start.&lt;/P&gt;&lt;P&gt;can you revise or provide me with help to run your version. is it a matter of just loading it up.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i have loaded up your version but get no change to z values&lt;/P&gt;</description>
      <pubDate>Tue, 23 Dec 2014 05:36:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/updating-an-entity-s-object-data/m-p/5451287#M145500</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-12-23T05:36:39Z</dc:date>
    </item>
    <item>
      <title>Re: updating an entity's object data</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/updating-an-entity-s-object-data/m-p/5451473#M145501</link>
      <description>&lt;P&gt;To make the code a permanent function (new Command) and not a temporary function (executable only once after load)&lt;BR /&gt;It is simply necessary to substitute:&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #00ff00;"&gt;(&lt;/SPAN&gt;lambda ( / js_pl n_pl ent dxf_ent z_pl)&lt;BR /&gt;....&lt;BR /&gt;&lt;SPAN style="color: #00ff00;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;)&lt;/SPAN&gt;&lt;BR /&gt;by&lt;BR /&gt;&lt;SPAN style="color: #00ff00;"&gt;(&lt;/SPAN&gt;defun C:z2_ODfield_Height ( / js_pl n_pl ent dxf_ent z_pl)&lt;BR /&gt;...&lt;BR /&gt;&lt;SPAN style="color: #00ff00;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;After loading, execute &lt;SPAN style="color: #0000ff;"&gt;z2_ODfield_Height&lt;/SPAN&gt; at command line&lt;BR /&gt;In this code, I assumed that the table was existent, I am only bringing to update the field "Height"&lt;BR /&gt;To test my function with only a slide is difficult for me...&lt;/P&gt;</description>
      <pubDate>Tue, 23 Dec 2014 13:50:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/updating-an-entity-s-object-data/m-p/5451473#M145501</guid>
      <dc:creator>CADaSchtroumpf</dc:creator>
      <dc:date>2014-12-23T13:50:10Z</dc:date>
    </item>
  </channel>
</rss>

