<?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: Set Z-Heights of objects by layer or color in AutoCAD Forum</title>
    <link>https://forums.autodesk.com/t5/autocad-forum/set-z-heights-of-objects-by-layer-or-color/m-p/11182932#M56689</link>
    <description>&lt;P&gt;I'm probably modifying the code incorrectly - so could use some additional help here - attached is a sample cad file -&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So all lines/polylines on layer...&lt;/P&gt;&lt;P&gt;A-ELEV-L002 = 1.5 ZHEIGHT&lt;/P&gt;&lt;P&gt;A-ELEV-L003 = 3.5 ZHEIGHT&lt;/P&gt;&lt;P&gt;and so on for the remaining layers... possible in one single command?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;here is what I tried to do with the command line:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(command&lt;/P&gt;&lt;P&gt;"_.move" (ssget "_X" '((8 . "A-ELEV-L002"))) "" "0,0,1.5" ""&lt;/P&gt;&lt;P&gt;"_.move" (ssget "_X" '((8 . "A-ELEV-L003"))) "" "0,0,3.5" ""&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;that didn't work - is there an additional part of the code I need to modify other then the layer name? And would you select the lines before or after you enter the command?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;also - using LT if that matters (unable to move in z-axis with LT?) - plus, we have polylines and line segments which have different ways of describing z-height - polyline uses "elevation" and a line segment uses "start/end Z" - not sure if that matters (maybe not if it is just a move command in the z axis), but we can always explode everything so we stay with "start/end Z"&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Fri, 20 May 2022 16:38:48 GMT</pubDate>
    <dc:creator>samsona</dc:creator>
    <dc:date>2022-05-20T16:38:48Z</dc:date>
    <item>
      <title>Set Z-Heights of objects by layer or color</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/set-z-heights-of-objects-by-layer-or-color/m-p/11182770#M56684</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to assign a z-height of lines/polylines by layers or colors? Layer1 or Blue = ZHeight of 1.5 for example...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are importing a set of lines which come in (pre assigned to layers from Revit) - We then have to assign a z-height to the objects - so... {Layer-1 = ZHeight of 1.5} and {Layer-2 = ZHeight of 3.5} and so on... Currently we have to select a line on the layer, then &lt;EM&gt;select similar&lt;/EM&gt; to select all lines on the layer and manually assign the z-height to the selection - this can be time consuming as we have a lot of layers...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;is there a way to automate this? Set up an autocad template that has a z-height assigned to a layer or color? So when the lines are imported they are automatically given the z-height data?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;**there doesn't seem to be a way to carry z-height data from Revit to AutoCAD, but also open to a solution here as well...&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 May 2022 15:09:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/set-z-heights-of-objects-by-layer-or-color/m-p/11182770#M56684</guid>
      <dc:creator>samsona</dc:creator>
      <dc:date>2022-05-20T15:09:37Z</dc:date>
    </item>
    <item>
      <title>Re: Set Z-Heights of objects by layer or color</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/set-z-heights-of-objects-by-layer-or-color/m-p/11182842#M56685</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3987949"&gt;@samsona&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For better understanding, and maybe get further help, please upload such sample.dwg&lt;/P&gt;</description>
      <pubDate>Fri, 20 May 2022 15:45:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/set-z-heights-of-objects-by-layer-or-color/m-p/11182842#M56685</guid>
      <dc:creator>devitg</dc:creator>
      <dc:date>2022-05-20T15:45:25Z</dc:date>
    </item>
    <item>
      <title>Re: Set Z-Heights of objects by layer or color</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/set-z-heights-of-objects-by-layer-or-color/m-p/11182852#M56686</link>
      <description>&lt;P&gt;Are they all initially at &lt;STRONG&gt;Z=0&lt;/STRONG&gt;?&amp;nbsp; If so:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" color="#000000"&gt;&lt;STRONG&gt;(command&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" color="#000000"&gt;&lt;STRONG&gt;&amp;nbsp; "_.move" (ssget "_X" '((8 . "Layer-1"))) "" "0,0,1.5" ""&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" color="#000000"&gt;&lt;STRONG&gt;&amp;nbsp; "_.move" (ssget "_X" '((8 . "Layer-2"))) "" "0,0,3.5" ""&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" color="#000000"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;[That assumes the Layers are unlocked, and the things on them are in the current space.]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If there might not be anything on some Layer(s), it could be made to check for the existence of a given Layer name and whether there's anything drawn on it, before trying the MOVE.&lt;/P&gt;</description>
      <pubDate>Fri, 20 May 2022 15:58:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/set-z-heights-of-objects-by-layer-or-color/m-p/11182852#M56686</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2022-05-20T15:58:21Z</dc:date>
    </item>
    <item>
      <title>Re: Set Z-Heights of objects by layer or color</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/set-z-heights-of-objects-by-layer-or-color/m-p/11182859#M56687</link>
      <description>&lt;P&gt;that makes sense - will give this a shot - thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 20 May 2022 15:57:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/set-z-heights-of-objects-by-layer-or-color/m-p/11182859#M56687</guid>
      <dc:creator>samsona</dc:creator>
      <dc:date>2022-05-20T15:57:17Z</dc:date>
    </item>
    <item>
      <title>Re: Set Z-Heights of objects by layer or color</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/set-z-heights-of-objects-by-layer-or-color/m-p/11182861#M56688</link>
      <description>&lt;P&gt;Template? Probably not.&lt;/P&gt;&lt;P&gt;If the relationships between Layer (and/or Color) and "Z-height" are well-defined and consistent, then I think it would be relatively "easy" for a competent LISP programmer to devise an automation. Posting in the Customization group will get results faster.&lt;/P&gt;</description>
      <pubDate>Fri, 20 May 2022 15:57:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/set-z-heights-of-objects-by-layer-or-color/m-p/11182861#M56688</guid>
      <dc:creator>dmfrazier</dc:creator>
      <dc:date>2022-05-20T15:57:52Z</dc:date>
    </item>
    <item>
      <title>Re: Set Z-Heights of objects by layer or color</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/set-z-heights-of-objects-by-layer-or-color/m-p/11182932#M56689</link>
      <description>&lt;P&gt;I'm probably modifying the code incorrectly - so could use some additional help here - attached is a sample cad file -&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So all lines/polylines on layer...&lt;/P&gt;&lt;P&gt;A-ELEV-L002 = 1.5 ZHEIGHT&lt;/P&gt;&lt;P&gt;A-ELEV-L003 = 3.5 ZHEIGHT&lt;/P&gt;&lt;P&gt;and so on for the remaining layers... possible in one single command?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;here is what I tried to do with the command line:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(command&lt;/P&gt;&lt;P&gt;"_.move" (ssget "_X" '((8 . "A-ELEV-L002"))) "" "0,0,1.5" ""&lt;/P&gt;&lt;P&gt;"_.move" (ssget "_X" '((8 . "A-ELEV-L003"))) "" "0,0,3.5" ""&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;that didn't work - is there an additional part of the code I need to modify other then the layer name? And would you select the lines before or after you enter the command?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;also - using LT if that matters (unable to move in z-axis with LT?) - plus, we have polylines and line segments which have different ways of describing z-height - polyline uses "elevation" and a line segment uses "start/end Z" - not sure if that matters (maybe not if it is just a move command in the z axis), but we can always explode everything so we stay with "start/end Z"&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 20 May 2022 16:38:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/set-z-heights-of-objects-by-layer-or-color/m-p/11182932#M56689</guid>
      <dc:creator>samsona</dc:creator>
      <dc:date>2022-05-20T16:38:48Z</dc:date>
    </item>
    <item>
      <title>Re: Set Z-Heights of objects by layer or color</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/set-z-heights-of-objects-by-layer-or-color/m-p/11182965#M56690</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3987949"&gt;@samsona&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;SPAN&gt;.... using LT if that matters ....&lt;/SPAN&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Yes, it does.&amp;nbsp; LT doesn't have AutoLisp capability, so it can't run that code.&lt;/P&gt;</description>
      <pubDate>Fri, 20 May 2022 16:55:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/set-z-heights-of-objects-by-layer-or-color/m-p/11182965#M56690</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2022-05-20T16:55:34Z</dc:date>
    </item>
    <item>
      <title>Re: Set Z-Heights of objects by layer or color</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/set-z-heights-of-objects-by-layer-or-color/m-p/11183000#M56691</link>
      <description>&lt;P&gt;got it - will install full version and try it again..&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 May 2022 17:09:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/set-z-heights-of-objects-by-layer-or-color/m-p/11183000#M56691</guid>
      <dc:creator>samsona</dc:creator>
      <dc:date>2022-05-20T17:09:48Z</dc:date>
    </item>
  </channel>
</rss>

