<?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: Change Linestyle parameter? in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/change-linestyle-parameter/m-p/6282867#M66219</link>
    <description>&lt;P&gt;Or how about setting the default detail line style to a desired line style, whenever I create a line with the API now, it always puts lines on the "Thin Lines" style.&lt;/P&gt;</description>
    <pubDate>Wed, 20 Apr 2016 19:36:06 GMT</pubDate>
    <dc:creator>bcampbell11</dc:creator>
    <dc:date>2016-04-20T19:36:06Z</dc:date>
    <item>
      <title>Change Linestyle parameter?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/change-linestyle-parameter/m-p/6282852#M66218</link>
      <description>&lt;P&gt;Is it even possible to change the linestle parameter of a line via the API? &amp;nbsp;For example, change a detail "Line Style" from Centerline to Hidden. &amp;nbsp;I can change the color, but that is not what I want to do. &amp;nbsp;Please help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 20 Apr 2016 19:28:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/change-linestyle-parameter/m-p/6282852#M66218</guid>
      <dc:creator>bcampbell11</dc:creator>
      <dc:date>2016-04-20T19:28:05Z</dc:date>
    </item>
    <item>
      <title>Re: Change Linestyle parameter?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/change-linestyle-parameter/m-p/6282867#M66219</link>
      <description>&lt;P&gt;Or how about setting the default detail line style to a desired line style, whenever I create a line with the API now, it always puts lines on the "Thin Lines" style.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Apr 2016 19:36:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/change-linestyle-parameter/m-p/6282867#M66219</guid>
      <dc:creator>bcampbell11</dc:creator>
      <dc:date>2016-04-20T19:36:06Z</dc:date>
    </item>
    <item>
      <title>Re: Change Linestyle parameter?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/change-linestyle-parameter/m-p/6283488#M66220</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Dear Bcampbell,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you for your query.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Can you achieve the desired changes manually through the user interface?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If so, it is probably possible programmatically as well.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The procedure for you to explore this yourself is always the same:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Set up a simple minimal starting point situation manually through the user interface.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Explore the elements and their properties using RevitLookup, BipChecker, the element lister, and other, more intimate database exploration tools:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/2013/11/intimate-revit-database-exploration-with-the-python-shell.html" target="_blank"&gt;http://thebuildingcoder.typepad.com/blog/2013/11/intimate-revit-database-exploration-with-the-python-shell.html&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Make the desired modification.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Analyse what changed.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Now you know what to do to achieve the desired result.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I hope this helps.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Jeremy&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Apr 2016 05:34:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/change-linestyle-parameter/m-p/6283488#M66220</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2016-04-21T05:34:33Z</dc:date>
    </item>
    <item>
      <title>Re: Change Linestyle parameter?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/change-linestyle-parameter/m-p/6283651#M66221</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; internal static void SetLineStyles(CurveElement element, string styleName)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;foreach (ElementId lineID in element.GetLineStyleIds())&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;GraphicsStyle style = element.Document.GetElement(lineID) as GraphicsStyle;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;if ((style != null)&amp;amp;&amp;amp;(style.Name == styleName))&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;if (style.GraphicsStyleType == GraphicsStyleType.Projection)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;element.LineStyle = style;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Revitalizer&lt;/P&gt;</description>
      <pubDate>Thu, 21 Apr 2016 07:22:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/change-linestyle-parameter/m-p/6283651#M66221</guid>
      <dc:creator>Revitalizer</dc:creator>
      <dc:date>2016-04-21T07:22:44Z</dc:date>
    </item>
    <item>
      <title>Re: Change Linestyle parameter?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/change-linestyle-parameter/m-p/6283716#M66222</link>
      <description>&lt;P&gt;A much better and more helpful answer than mine &amp;nbsp;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Apr 2016 07:59:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/change-linestyle-parameter/m-p/6283716#M66222</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2016-04-21T07:59:33Z</dc:date>
    </item>
    <item>
      <title>Re: Change Linestyle parameter?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/change-linestyle-parameter/m-p/6284735#M66223</link>
      <description>&lt;P&gt;Wow, thanks! &amp;nbsp;This did it, looking at the code, I am not sure I would of figured this out any time soon. &amp;nbsp;It looks simple but does a couple things&amp;nbsp;with the graphicsstyle&amp;nbsp;I am not used to. &amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!!&lt;/P&gt;</description>
      <pubDate>Thu, 21 Apr 2016 15:36:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/change-linestyle-parameter/m-p/6284735#M66223</guid>
      <dc:creator>bcampbell11</dc:creator>
      <dc:date>2016-04-21T15:36:36Z</dc:date>
    </item>
  </channel>
</rss>

