<?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: Create Line Pattern Type? in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/create-line-pattern-type/m-p/5090238#M80307</link>
    <description>&lt;P&gt;Hi Joe, Do you have similar code to delete line patterns? Dale&lt;/P&gt;</description>
    <pubDate>Thu, 12 Jun 2014 07:20:50 GMT</pubDate>
    <dc:creator>Dale.Bartlett</dc:creator>
    <dc:date>2014-06-12T07:20:50Z</dc:date>
    <item>
      <title>Create Line Pattern Type?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/create-line-pattern-type/m-p/3666094#M80293</link>
      <description>&lt;P&gt;I'm trying to create a couple custom line patterns with Revit API in 2013.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using the 2013 SDK sample CreateFillPattern I can retrive all line styles as well as assign them to grids.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm looking for a way to be able to CREATE new types.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this possible in 2013 API?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;</description>
      <pubDate>Fri, 19 Oct 2012 05:01:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/create-line-pattern-type/m-p/3666094#M80293</guid>
      <dc:creator>mfleming.stantec</dc:creator>
      <dc:date>2012-10-19T05:01:22Z</dc:date>
    </item>
    <item>
      <title>Re: Create Line Pattern Type?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/create-line-pattern-type/m-p/3668552#M80294</link>
      <description>&lt;P&gt;Dear mfleming.stantec,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;as far as I know, there is no way to create new line patterns.&lt;/P&gt;&lt;P&gt;You can create new FillPatterns, but not LinePatterns.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I myself tried to create a new line pattern representing railroads or gas pipilines, for example, menaning I needed a line pattern containing text.&lt;/P&gt;&lt;P&gt;I need to work around the problem, ending in using a new line-based Family with parameters to set the text properties.&lt;/P&gt;&lt;P&gt;Resulting in something like "---GAS---GAS---GAS---" or "=|=|=|=|=|=|=|=|=|=|=|=|=", for example.&lt;/P&gt;&lt;P&gt;For curves, the distribution of FamilyInstances needs to be approximated to adjust the straigt elements to curved ones.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Revitalizer&lt;/P&gt;</description>
      <pubDate>Mon, 22 Oct 2012 07:23:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/create-line-pattern-type/m-p/3668552#M80294</guid>
      <dc:creator>Revitalizer</dc:creator>
      <dc:date>2012-10-22T07:23:51Z</dc:date>
    </item>
    <item>
      <title>Re: Create Line Pattern Type?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/create-line-pattern-type/m-p/3673010#M80295</link>
      <description>&lt;P&gt;All I'm looking to do is create new line pattern, Set value to either Dash, Space,Dot ect and give the value.&lt;/P&gt;&lt;P&gt;It's not a "custom" line pattern.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There has to be a way to do this.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Oct 2012 01:23:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/create-line-pattern-type/m-p/3673010#M80295</guid>
      <dc:creator>mfleming.stantec</dc:creator>
      <dc:date>2012-10-25T01:23:07Z</dc:date>
    </item>
    <item>
      <title>Re: Create Line Pattern Type?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/create-line-pattern-type/m-p/3680408#M80296</link>
      <description>&lt;P&gt;Have you looked at the LinePattern class?&lt;BR /&gt;&lt;BR /&gt;There is a LinePatternElement.Create method...&lt;/P&gt;</description>
      <pubDate>Wed, 31 Oct 2012 11:07:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/create-line-pattern-type/m-p/3680408#M80296</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2012-10-31T11:07:00Z</dc:date>
    </item>
    <item>
      <title>Re: Create Line Pattern Type?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/create-line-pattern-type/m-p/3680424#M80297</link>
      <description>&lt;P&gt;Hi Jeremy,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so, it is possible to&lt;/P&gt;&lt;P&gt;-create new GraphicsStyles plus&lt;/P&gt;&lt;P&gt;-assigning user-defined LinePatterns to them ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Bye,&lt;/P&gt;&lt;P&gt;Revitalizer&lt;/P&gt;</description>
      <pubDate>Wed, 31 Oct 2012 11:16:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/create-line-pattern-type/m-p/3680424#M80297</guid>
      <dc:creator>Revitalizer</dc:creator>
      <dc:date>2012-10-31T11:16:19Z</dc:date>
    </item>
    <item>
      <title>Re: Create Line Pattern Type?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/create-line-pattern-type/m-p/3680436#M80298</link>
      <description>&lt;P&gt;Hi Revitalizer,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry, I don't know off-hand. I would need a sample to explore.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers, Jeremy.&lt;/P&gt;</description>
      <pubDate>Wed, 31 Oct 2012 11:30:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/create-line-pattern-type/m-p/3680436#M80298</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2012-10-31T11:30:40Z</dc:date>
    </item>
    <item>
      <title>Re: Create Line Pattern Type?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/create-line-pattern-type/m-p/3680516#M80299</link>
      <description>&lt;P&gt;Hi Jeremy,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've created FillPatterns in many, many variations so far.&lt;/P&gt;&lt;P&gt;But I did not create LinePatterns yet.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think it would only make sense to create such Elements if we also could create new GraphicsStyles for them.&lt;/P&gt;&lt;P&gt;If we only can assign new LinePattern to existing GgraphicsStyles, we just would *override* existing settings...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Perhaps you could blog about LinePatterns and how to create them ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Rudolf&lt;/P&gt;</description>
      <pubDate>Wed, 31 Oct 2012 12:25:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/create-line-pattern-type/m-p/3680516#M80299</guid>
      <dc:creator>Revitalizer</dc:creator>
      <dc:date>2012-10-31T12:25:51Z</dc:date>
    </item>
    <item>
      <title>Re: Create Line Pattern Type?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/create-line-pattern-type/m-p/3682176#M80300</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I happen to have some lines to create a line pattern.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;private LinePatternElement CreateLinePatternElement(string patternName) &lt;BR /&gt;{ &lt;BR /&gt; //Create list of segments which define the line pattern &lt;BR /&gt; List&amp;lt;LinePatternSegment&amp;gt; lstSegments = new List&amp;lt;LinePatternSegment&amp;gt;(); &lt;BR /&gt; lstSegments.Add(new LinePatternSegment(LinePatternSegmentType.Dot, 0.0)); &lt;BR /&gt; lstSegments.Add(new LinePatternSegment(LinePatternSegmentType.Space, 0.02)); &lt;BR /&gt; lstSegments.Add(new LinePatternSegment(LinePatternSegmentType.Dash, 0.03)); &lt;BR /&gt; lstSegments.Add(new LinePatternSegment(LinePatternSegmentType.Space, 0.02)); &lt;BR /&gt; &lt;BR /&gt; LinePattern linePattern = new LinePattern(patternName); &lt;BR /&gt; linePattern.SetSegments(lstSegments); &lt;BR /&gt; &lt;BR /&gt; Transaction trans = new Transaction(doc); &lt;BR /&gt; trans.Start("Create a linepattern element"); &lt;BR /&gt; LinePatternElement linePatternElement = LinePatternElement.Create(doc, linePattern); &lt;BR /&gt; trans.Commit(); &lt;BR /&gt; return linePatternElement; &lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Thu, 01 Nov 2012 09:17:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/create-line-pattern-type/m-p/3682176#M80300</guid>
      <dc:creator>Joe.Ye</dc:creator>
      <dc:date>2012-11-01T09:17:21Z</dc:date>
    </item>
    <item>
      <title>Re: Create Line Pattern Type?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/create-line-pattern-type/m-p/3686332#M80301</link>
      <description>&lt;P&gt;Hi joe.ye,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you for your code snippet !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Revitalizer&lt;/P&gt;</description>
      <pubDate>Mon, 05 Nov 2012 08:00:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/create-line-pattern-type/m-p/3686332#M80301</guid>
      <dc:creator>Revitalizer</dc:creator>
      <dc:date>2012-11-05T08:00:11Z</dc:date>
    </item>
    <item>
      <title>Re: Create Line Pattern Type?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/create-line-pattern-type/m-p/3690928#M80302</link>
      <description>&lt;P&gt;Thanks Joe&lt;/P&gt;</description>
      <pubDate>Wed, 07 Nov 2012 18:44:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/create-line-pattern-type/m-p/3690928#M80302</guid>
      <dc:creator>mfleming.stantec</dc:creator>
      <dc:date>2012-11-07T18:44:04Z</dc:date>
    </item>
    <item>
      <title>Re: Create Line Pattern Type?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/create-line-pattern-type/m-p/3703302#M80303</link>
      <description>&lt;P&gt;Joe, how do I load the line pattern code you've provided into Revit?&lt;/P&gt;</description>
      <pubDate>Sun, 18 Nov 2012 16:39:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/create-line-pattern-type/m-p/3703302#M80303</guid>
      <dc:creator>RocksterB</dc:creator>
      <dc:date>2012-11-18T16:39:03Z</dc:date>
    </item>
    <item>
      <title>Re: Create Line Pattern Type?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/create-line-pattern-type/m-p/3871487#M80304</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am i correct in saying you can not set line pattern to a category?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Chris&lt;/P&gt;</description>
      <pubDate>Mon, 15 Apr 2013 03:40:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/create-line-pattern-type/m-p/3871487#M80304</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-04-15T03:40:43Z</dc:date>
    </item>
    <item>
      <title>Re: Create Line Pattern Type?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/create-line-pattern-type/m-p/3871968#M80305</link>
      <description>&lt;P&gt;Dear Chris,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you can do it through the user interface, it is probably possible programmatically as well, and vice versa. Is it possible in the UI?&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>Mon, 15 Apr 2013 15:12:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/create-line-pattern-type/m-p/3871968#M80305</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2013-04-15T15:12:27Z</dc:date>
    </item>
    <item>
      <title>Re: Create Line Pattern Type?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/create-line-pattern-type/m-p/3872429#M80306</link>
      <description>&lt;P&gt;Hi Jeremy,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found the below post on the Autodesk site just after I posted this question...&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/Autodesk-Revit-API/Line-Patterns/m-p/3110368/highlight/true#M2163" target="_blank"&gt;http://forums.autodesk.com/t5/Autodesk-Revit-API/Line-Patterns/m-p/3110368/highlight/true#M2163&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes it is possible via the UI but according to Saikat it is not possible via API yet.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I haven't checked 2014 yet. I notice in 2011 they had the method to set it but must have caused an error, so they (the factory) removed it in 2012/3 never to be seen again?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;</description>
      <pubDate>Mon, 15 Apr 2013 23:36:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/create-line-pattern-type/m-p/3872429#M80306</guid>
      <dc:creator>chris.j.mckeown</dc:creator>
      <dc:date>2013-04-15T23:36:46Z</dc:date>
    </item>
    <item>
      <title>Re: Create Line Pattern Type?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/create-line-pattern-type/m-p/5090238#M80307</link>
      <description>&lt;P&gt;Hi Joe, Do you have similar code to delete line patterns? Dale&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jun 2014 07:20:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/create-line-pattern-type/m-p/5090238#M80307</guid>
      <dc:creator>Dale.Bartlett</dc:creator>
      <dc:date>2014-06-12T07:20:50Z</dc:date>
    </item>
  </channel>
</rss>

