<?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: Creating a new Line Style in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/creating-a-new-line-style/m-p/5943398#M68995</link>
    <description>&lt;P&gt;Many Thanks, it works well&lt;/P&gt;</description>
    <pubDate>Wed, 09 Dec 2015 12:54:08 GMT</pubDate>
    <dc:creator>mm1452</dc:creator>
    <dc:date>2015-12-09T12:54:08Z</dc:date>
    <item>
      <title>Creating a new Line Style</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/creating-a-new-line-style/m-p/5941766#M68991</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I add new line style via revit api?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;</description>
      <pubDate>Tue, 08 Dec 2015 16:27:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/creating-a-new-line-style/m-p/5941766#M68991</guid>
      <dc:creator>mm1452</dc:creator>
      <dc:date>2015-12-08T16:27:19Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a new Line Style</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/creating-a-new-line-style/m-p/5943347#M68992</link>
      <description>&lt;P&gt;I do nothing at all that cannot be shared and published, and share and publish absolutely everything I work on.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I therefore avoid discussing questions like this, and actually all questions whatsoever, one-on-one.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I prefer discussing everything in public and enabling the entire community to contribute and share:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/about-the-author.html#1" target="_blank"&gt;http://thebuildingcoder.typepad.com/blog/about-the-author.html#1&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Therefore, please post your query as a question on the Revit API discussion forum, Stack Overflow, or a comment on an appropriate discussion on The Building Coder blog, both for knowledge sharing and so others can chip in with answers as well:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://forums.autodesk.com/t5/Revit-API/bd-p/160" target="_blank"&gt;http://forums.autodesk.com/t5/Revit-API/bd-p/160&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://stackoverflow.com/questions/tagged/revit-api" target="_blank"&gt;http://stackoverflow.com/questions/tagged/revit-api&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That has several advantages. Among others, your peers can join in and help you, and our conversation becomes visible to others, to help them resolve their issues as well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I know that you already did this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://forums.autodesk.com/t5/revit-api/creating-a-new-line-style/td-p/5941766/jump-to/first-unread-message" target="_blank"&gt;http://forums.autodesk.com/t5/revit-api/creating-a-new-line-style/td-p/5941766/jump-to/first-unread-message&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I wish you patience and good luck.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Alternatively, you can try to find a solution for yourself, e.g. by searching on the Internet and elsewhere.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would have to do the same thing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Maybe nobody is answering because the answer is out there already?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jeremy&lt;/P&gt;</description>
      <pubDate>Wed, 09 Dec 2015 12:24:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/creating-a-new-line-style/m-p/5943347#M68992</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2015-12-09T12:24:33Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a new Line Style</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/creating-a-new-line-style/m-p/5943353#M68993</link>
      <description>&lt;P&gt;Sorry for this weird answer.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It happened because the public forum question was reposted as a private message.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I do not reply to private messages except in the manner that you can see above.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your understanding!&lt;/P&gt;</description>
      <pubDate>Wed, 09 Dec 2015 12:27:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/creating-a-new-line-style/m-p/5943353#M68993</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2015-12-09T12:27:49Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a new Line Style</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/creating-a-new-line-style/m-p/5943364#M68994</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Settings settings = doc.Settings;&lt;BR /&gt;Categories cats = settings.Categories;&lt;BR /&gt;Category lineCat =&amp;nbsp; cats.get_Item(BuiltInCategory.OST_Lines);&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Category lineStyleCat = cats.NewSubcategory(lineCat, "MyLineStyle");&lt;BR /&gt;lineStyleCat.LineColor = new Color(0, 0, 255);&lt;BR /&gt;lineStyleCat.SetLineWeight(2, GraphicsStyleType.Projection);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Revitalizer&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Edit: don't mark it as solved if the code does not work...&lt;/P&gt;&lt;P&gt;Changed&lt;/P&gt;&lt;P&gt;Category lineStyleCat = lineCat.NewSubcategory(lineCat, "MyLineStyle");&lt;/P&gt;&lt;P&gt;To&lt;/P&gt;&lt;P&gt;Category lineStyleCat = cats.NewSubcategory(lineCat, "MyLineStyle");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now it will function as desired &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Dec 2015 12:57:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/creating-a-new-line-style/m-p/5943364#M68994</guid>
      <dc:creator>Revitalizer</dc:creator>
      <dc:date>2015-12-09T12:57:19Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a new Line Style</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/creating-a-new-line-style/m-p/5943398#M68995</link>
      <description>&lt;P&gt;Many Thanks, it works well&lt;/P&gt;</description>
      <pubDate>Wed, 09 Dec 2015 12:54:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/creating-a-new-line-style/m-p/5943398#M68995</guid>
      <dc:creator>mm1452</dc:creator>
      <dc:date>2015-12-09T12:54:08Z</dc:date>
    </item>
  </channel>
</rss>

