<?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: load profile for NewSweep command in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/load-profile-for-newsweep-command/m-p/5136492#M76449</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hi Tobia,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;NewSweep method has the override to accept a profile family as argument to create a sweep.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;public Sweep NewSweep(&lt;BR /&gt; bool isSolid,&lt;BR /&gt; ReferenceArray path,&lt;BR /&gt; SweepProfile profile,&lt;BR /&gt; int profileLocationCurveIndex,&lt;BR /&gt; ProfilePlaneLocation profilePlaneLocation&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The SweepProfile has two derived classes:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;SPAN&gt;FamilySymbolProfile&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;SPAN&gt;CurveLoopsProfile&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;FamilySymbolProfile maps to a family symbol of a profile family. It can be retrieved by the following Application class's member method.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;public FamilySymbolProfile NewFamilySymbolProfile(&lt;BR /&gt; FamilySymbol familySymbol&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope I my understanding to your question is right.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 07 Jul 2014 09:36:40 GMT</pubDate>
    <dc:creator>Joe.Ye</dc:creator>
    <dc:date>2014-07-07T09:36:40Z</dc:date>
    <item>
      <title>load profile for NewSweep command</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/load-profile-for-newsweep-command/m-p/5117864#M76446</link>
      <description>I'm creating a Revit 2014 plugin that wraps the Sweep command, in particular I need to load a profile that I've created as a family (starting from Metric Profile.rft) into a project, then ask to the user to pick the lines that will become the extrusion path and finally do the sweep. I've read tons of tutorials of how to programmatically create a sweep but all of them creates the SweepProfile by adding new Curves into a CurveArray; no one of them explains how to load a profile from a family and give it to the NewSweep(...) command. I'm quite sure that this can be done and maybe I just can't see the elephant in the room..can someone give me a hit on how to load a profile from a family file? Thank you!</description>
      <pubDate>Thu, 26 Jun 2014 12:30:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/load-profile-for-newsweep-command/m-p/5117864#M76446</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-06-26T12:30:33Z</dc:date>
    </item>
    <item>
      <title>Re: load profile for NewSweep command</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/load-profile-for-newsweep-command/m-p/5123840#M76447</link>
      <description>&lt;P&gt;Dear Tobia,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for submitting this query to the discussion forum and sorry for the delay in answering.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can certainly retrieve a profile for a sweep operation from a family file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, the family file does not provide any provision for storing a profile per se, so you will have to make use of the other geometrical options available in that context to define some kind of geometry specifying the sweep profile.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can then parse that geometry, extract the profile information, and put together the required curve array in your add-in.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps.&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, 30 Jun 2014 08:15:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/load-profile-for-newsweep-command/m-p/5123840#M76447</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2014-06-30T08:15:13Z</dc:date>
    </item>
    <item>
      <title>Re: load profile for NewSweep command</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/load-profile-for-newsweep-command/m-p/5129312#M76448</link>
      <description>&lt;P&gt;Hi Jeremy, Thank you for your effort to help us! I will try to do what you are suggesting (I don't know where to start from but I'm positive I will find the path)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tobia&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jul 2014 15:08:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/load-profile-for-newsweep-command/m-p/5129312#M76448</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-02T15:08:13Z</dc:date>
    </item>
    <item>
      <title>Re: load profile for NewSweep command</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/load-profile-for-newsweep-command/m-p/5136492#M76449</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hi Tobia,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;NewSweep method has the override to accept a profile family as argument to create a sweep.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;public Sweep NewSweep(&lt;BR /&gt; bool isSolid,&lt;BR /&gt; ReferenceArray path,&lt;BR /&gt; SweepProfile profile,&lt;BR /&gt; int profileLocationCurveIndex,&lt;BR /&gt; ProfilePlaneLocation profilePlaneLocation&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The SweepProfile has two derived classes:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;SPAN&gt;FamilySymbolProfile&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;SPAN&gt;CurveLoopsProfile&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;FamilySymbolProfile maps to a family symbol of a profile family. It can be retrieved by the following Application class's member method.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;public FamilySymbolProfile NewFamilySymbolProfile(&lt;BR /&gt; FamilySymbol familySymbol&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope I my understanding to your question is right.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jul 2014 09:36:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/load-profile-for-newsweep-command/m-p/5136492#M76449</guid>
      <dc:creator>Joe.Ye</dc:creator>
      <dc:date>2014-07-07T09:36:40Z</dc:date>
    </item>
    <item>
      <title>Re: load profile for NewSweep command</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/load-profile-for-newsweep-command/m-p/5152636#M76450</link>
      <description>&lt;P&gt;Hi Joe, thank you for your reply! Yes this is a solution, I didn't see it because I was using always Deocument.Create instead of Document.FamilyCreate..&lt;/P&gt;&lt;P&gt;This is because I need to model an in-place family. Do you know if there is a way to create an in-place component using the API?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you again&lt;/P&gt;&lt;P&gt;Tobia&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jul 2014 11:43:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/load-profile-for-newsweep-command/m-p/5152636#M76450</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-15T11:43:37Z</dc:date>
    </item>
    <item>
      <title>Re: load profile for NewSweep command</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/load-profile-for-newsweep-command/m-p/5967180#M76451</link>
      <description>&lt;P&gt;Hi Joe, I know this is old, but I have not been able to find a clear example of how to use this to pass a Profile Family&amp;nbsp;parameter as a SweepProfile.&lt;/P&gt;&lt;P&gt;NewSweep(&lt;BR /&gt;bool isSolid,&lt;BR /&gt;ReferenceArray path,&lt;BR /&gt;SweepProfile profile,&lt;BR /&gt;int profileLocationCurveIndex,&lt;BR /&gt;ProfilePlaneLocation profilePlaneLocation&lt;BR /&gt;)&amp;nbsp;&lt;/P&gt;&lt;P&gt;As the original poster said, there are countless examples to create a profile but I have found none to use a loaded Profile Family.&lt;/P&gt;&lt;P&gt;SweepProfile NewSweepProfile(Document doc, string FamilyName)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;// what goes in here, given the family can have multiple types?&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dale&lt;/P&gt;</description>
      <pubDate>Tue, 29 Dec 2015 13:41:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/load-profile-for-newsweep-command/m-p/5967180#M76451</guid>
      <dc:creator>Dale.Bartlett</dc:creator>
      <dc:date>2015-12-29T13:41:30Z</dc:date>
    </item>
    <item>
      <title>Re: load profile for NewSweep command</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/load-profile-for-newsweep-command/m-p/6038350#M76452</link>
      <description>&lt;P&gt;Hi Joe, any chance you could expand with a code example to select a profile? I have not been able to crack this one. Admittedly, I put it away for a while... Thanks, Dale&lt;/P&gt;</description>
      <pubDate>Sun, 14 Feb 2016 09:54:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/load-profile-for-newsweep-command/m-p/6038350#M76452</guid>
      <dc:creator>Dale.Bartlett</dc:creator>
      <dc:date>2016-02-14T09:54:52Z</dc:date>
    </item>
    <item>
      <title>Re: load profile for NewSweep command</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/load-profile-for-newsweep-command/m-p/7769009#M76453</link>
      <description>&lt;P&gt;I published a complete NewFamilySymbolProfile sample add-in to demonstrate the steps:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/2018/02/newfamilysymbolprofile-sample-add-in.html" target="_blank"&gt;http://thebuildingcoder.typepad.com/blog/2018/02/newfamilysymbolprofile-sample-add-in.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/jeremytammik/NewFamilySymbolProfile" target="_blank"&gt;https://github.com/jeremytammik/NewFamilySymbolProfile&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Enjoy!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jeremy&lt;/P&gt;</description>
      <pubDate>Sun, 11 Feb 2018 15:49:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/load-profile-for-newsweep-command/m-p/7769009#M76453</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2018-02-11T15:49:54Z</dc:date>
    </item>
  </channel>
</rss>

