<?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: Diameter Dimensions for Sweep Profile in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/diameter-dimensions-for-sweep-profile/m-p/13151079#M2418</link>
    <description>&lt;P&gt;We ran into a similar issue, and we gave up after few tries. In Revit 2023/2024 in Families trying to add a Diameter Dimension to a Model Line fails with the same error as yours. We did not have time to investigate too much, but it is simple to replicate:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In a Family, create a SketchPlane where the curve is.&lt;BR /&gt;Create an arc from a curve.&lt;BR /&gt;Create a ModelCurve from the arc in the SketchPlane.&lt;BR /&gt;Try to create NewDiameterDimension to the ModelCurve -&amp;gt; it fails with the same error message.&lt;BR /&gt;---------------------------&lt;BR /&gt;Error&lt;BR /&gt;---------------------------&lt;BR /&gt;Error: One of the conditions for the inputs was not satisfied. Consult the documentation for requirements for each argument.&lt;BR /&gt;---------------------------&lt;BR /&gt;OK&lt;BR /&gt;---------------------------&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 14 Nov 2024 19:16:28 GMT</pubDate>
    <dc:creator>studio-a-int</dc:creator>
    <dc:date>2024-11-14T19:16:28Z</dc:date>
    <item>
      <title>Diameter Dimensions for Sweep Profile</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/diameter-dimensions-for-sweep-profile/m-p/13101195#M2404</link>
      <description>&lt;P&gt;Hello&lt;BR /&gt;I have created a sweep using a circle profile and a path. Now I need to add a&amp;nbsp;&lt;SPAN&gt;Diameter Dimension to the arc inside the profile. Any thoughts?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Oct 2024 18:09:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/diameter-dimensions-for-sweep-profile/m-p/13101195#M2404</guid>
      <dc:creator>Mustafa.Salaheldin</dc:creator>
      <dc:date>2024-10-22T18:09:42Z</dc:date>
    </item>
    <item>
      <title>Re: Diameter Dimensions for Sweep Profile</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/diameter-dimensions-for-sweep-profile/m-p/13102534#M2405</link>
      <description>&lt;P&gt;Is this inside a family definition, or where? Have you researched how to achieve the desired result manually in the UI? What are the exact steps to achieve that?&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Oct 2024 09:31:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/diameter-dimensions-for-sweep-profile/m-p/13102534#M2405</guid>
      <dc:creator>jeremy_tammik</dc:creator>
      <dc:date>2024-10-23T09:31:34Z</dc:date>
    </item>
    <item>
      <title>Re: Diameter Dimensions for Sweep Profile</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/diameter-dimensions-for-sweep-profile/m-p/13102595#M2406</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/824630"&gt;@jeremy_tammik&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Yes, I'm trying this in Family Editor, here is my code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;IList&amp;lt;ElementId&amp;gt; elementIds = sweep.ProfileSketch.GetAllElements();
foreach (ElementId elemid in elementIds)
{
    Element element = family.GetElement(elemid);                                
    if (element is ModelArc marc)
    {
        if (marc.GeometryCurve is Arc arc)
        {
            FilteredElementCollector views = new FilteredElementCollector(family).OfCategory(BuiltInCategory.OST_Views).OfClass(typeof(View3D));
            View3D v = views.FirstOrDefault(v =&amp;gt; v.Name == "{3D}") as View3D;
            Reference arcRef = arc.Reference;
            XYZ origin = arc.Center;
            family.FamilyCreate.NewDiameterDimension(v, arcRef, origin);
        }
    }
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And it is achievable by UI, edit any Conduit Fitting Family that is created using a sweep. Edit the sweep -&amp;gt; Edit the Profile -&amp;gt; Put Diameter Dimension on the Profile curves.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MustafaSalaheldin_0-1729677528834.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1424852iE45F4ACC5016C3BD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MustafaSalaheldin_0-1729677528834.png" alt="MustafaSalaheldin_0-1729677528834.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;My problem is with line 13 it throws error:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MustafaSalaheldin_1-1729677679033.png" style="width: 300px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1424854iB9EAAF48FFFCD348/image-size/small?v=v2&amp;amp;px=200" role="button" title="MustafaSalaheldin_1-1729677679033.png" alt="MustafaSalaheldin_1-1729677679033.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please advise&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Oct 2024 10:04:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/diameter-dimensions-for-sweep-profile/m-p/13102595#M2406</guid>
      <dc:creator>Mustafa.Salaheldin</dc:creator>
      <dc:date>2024-10-23T10:04:27Z</dc:date>
    </item>
    <item>
      <title>Re: Diameter Dimensions for Sweep Profile</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/diameter-dimensions-for-sweep-profile/m-p/13104174#M2407</link>
      <description>&lt;P&gt;my guess based on your code would be the view, try any 3d view that isn't the default {3D}. If that isn't it then i suspect it doesn't it like 3D views at all.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Oct 2024 21:33:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/diameter-dimensions-for-sweep-profile/m-p/13104174#M2407</guid>
      <dc:creator>ctm_mka</dc:creator>
      <dc:date>2024-10-23T21:33:27Z</dc:date>
    </item>
    <item>
      <title>Re: Diameter Dimensions for Sweep Profile</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/diameter-dimensions-for-sweep-profile/m-p/13104661#M2408</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/6224381"&gt;@ctm_mka&lt;/a&gt;&amp;nbsp;No mate the 3D view has nothing to do with this. I suspect the "Origin" parameter, seems like it needs to be something else.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2024 04:06:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/diameter-dimensions-for-sweep-profile/m-p/13104661#M2408</guid>
      <dc:creator>Mustafa.Salaheldin</dc:creator>
      <dc:date>2024-10-24T04:06:54Z</dc:date>
    </item>
    <item>
      <title>Re: Diameter Dimensions for Sweep Profile</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/diameter-dimensions-for-sweep-profile/m-p/13105527#M2409</link>
      <description>&lt;P&gt;One quick point that is worth to mention is adding the diameter dimension is only allowed in sketch edit mode of the profile. Not sure if this is the cause, but let us see what it could be!&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2024 11:35:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/diameter-dimensions-for-sweep-profile/m-p/13105527#M2409</guid>
      <dc:creator>Mustafa.Salaheldin</dc:creator>
      <dc:date>2024-10-24T11:35:07Z</dc:date>
    </item>
    <item>
      <title>Re: Diameter Dimensions for Sweep Profile</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/diameter-dimensions-for-sweep-profile/m-p/13108919#M2410</link>
      <description>&lt;P&gt;Another quick note: when using Lookup to investigate the diameter dimension I created manually it shows the same "arcRef" and "origin" I set. The difference is "view" shows null and instead arcRef it shows references.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MustafaSalaheldin_0-1730030562712.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1426244i12A6FF4C689FF6C5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MustafaSalaheldin_0-1730030562712.png" alt="MustafaSalaheldin_0-1730030562712.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note: I used the dimension ID to search for the element in Lookup&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 27 Oct 2024 12:05:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/diameter-dimensions-for-sweep-profile/m-p/13108919#M2410</guid>
      <dc:creator>Mustafa.Salaheldin</dc:creator>
      <dc:date>2024-10-27T12:05:00Z</dc:date>
    </item>
    <item>
      <title>Re: Diameter Dimensions for Sweep Profile</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/diameter-dimensions-for-sweep-profile/m-p/13114886#M2411</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/824630"&gt;@jeremy_tammik&lt;/a&gt;&amp;nbsp;can you please advise?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2024 09:45:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/diameter-dimensions-for-sweep-profile/m-p/13114886#M2411</guid>
      <dc:creator>Mustafa.Salaheldin</dc:creator>
      <dc:date>2024-10-29T09:45:06Z</dc:date>
    </item>
    <item>
      <title>Re: Diameter Dimensions for Sweep Profile</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/diameter-dimensions-for-sweep-profile/m-p/13116850#M2412</link>
      <description>&lt;P&gt;&lt;SPAN&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5661631"&gt;@naveen.kumar.t&lt;/a&gt;&amp;nbsp;would you please check with the development team if this is not a bug in Revit 2022.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2024 03:48:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/diameter-dimensions-for-sweep-profile/m-p/13116850#M2412</guid>
      <dc:creator>Mustafa.Salaheldin</dc:creator>
      <dc:date>2024-10-30T03:48:39Z</dc:date>
    </item>
    <item>
      <title>Re: Diameter Dimensions for Sweep Profile</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/diameter-dimensions-for-sweep-profile/m-p/13118785#M2413</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1227311"&gt;@Mustafa.Salaheldin&lt;/a&gt;curious, if you manually edit the sketch of the profile, and snoop active view, what does it return?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2024 19:02:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/diameter-dimensions-for-sweep-profile/m-p/13118785#M2413</guid>
      <dc:creator>ctm_mka</dc:creator>
      <dc:date>2024-10-30T19:02:16Z</dc:date>
    </item>
    <item>
      <title>Re: Diameter Dimensions for Sweep Profile</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/diameter-dimensions-for-sweep-profile/m-p/13121946#M2414</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/6224381"&gt;@ctm_mka&lt;/a&gt;&amp;nbsp;This is impossible, during edit mode Lookup is deactivated&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MustafaSalaheldin_0-1730375170367.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1428065i00B671C21755ED90/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MustafaSalaheldin_0-1730375170367.png" alt="MustafaSalaheldin_0-1730375170367.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The only way is as I showed you before, get the id of the curve or the dimension, use it outside the sweep/profile edit in mode Lookup to get to the dimension.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2024 11:48:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/diameter-dimensions-for-sweep-profile/m-p/13121946#M2414</guid>
      <dc:creator>Mustafa.Salaheldin</dc:creator>
      <dc:date>2024-10-31T11:48:12Z</dc:date>
    </item>
    <item>
      <title>Re: Diameter Dimensions for Sweep Profile</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/diameter-dimensions-for-sweep-profile/m-p/13135402#M2415</link>
      <description>&lt;P&gt;I need to know if this is a bug in the API or this method is not supported in sketch mode.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2024 06:09:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/diameter-dimensions-for-sweep-profile/m-p/13135402#M2415</guid>
      <dc:creator>Mustafa.Salaheldin</dc:creator>
      <dc:date>2024-11-07T06:09:00Z</dc:date>
    </item>
    <item>
      <title>Re: Diameter Dimensions for Sweep Profile</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/diameter-dimensions-for-sweep-profile/m-p/13135737#M2416</link>
      <description>&lt;P&gt;Dear Mustafa,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry for not jumping in sooner. I am on leave and therefore trying to remain completely inactive here. I'm afraid I am not completely succeeding...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I &lt;A href="https://autodesk.slack.com/archives/C0SR6NAP8/p1730967801511169" target="_blank"&gt;asked&lt;/A&gt; the development team for you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jeremy&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2024 08:31:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/diameter-dimensions-for-sweep-profile/m-p/13135737#M2416</guid>
      <dc:creator>jeremy_tammik</dc:creator>
      <dc:date>2024-11-07T08:31:04Z</dc:date>
    </item>
    <item>
      <title>Re: Diameter Dimensions for Sweep Profile</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/diameter-dimensions-for-sweep-profile/m-p/13136167#M2417</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/824630"&gt;@jeremy_tammik&lt;/a&gt;&amp;nbsp;appreciated and enjoy your vacation.&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":vulcan_salute:"&gt;🖖&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2024 12:31:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/diameter-dimensions-for-sweep-profile/m-p/13136167#M2417</guid>
      <dc:creator>Mustafa.Salaheldin</dc:creator>
      <dc:date>2024-11-07T12:31:51Z</dc:date>
    </item>
    <item>
      <title>Re: Diameter Dimensions for Sweep Profile</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/diameter-dimensions-for-sweep-profile/m-p/13151079#M2418</link>
      <description>&lt;P&gt;We ran into a similar issue, and we gave up after few tries. In Revit 2023/2024 in Families trying to add a Diameter Dimension to a Model Line fails with the same error as yours. We did not have time to investigate too much, but it is simple to replicate:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In a Family, create a SketchPlane where the curve is.&lt;BR /&gt;Create an arc from a curve.&lt;BR /&gt;Create a ModelCurve from the arc in the SketchPlane.&lt;BR /&gt;Try to create NewDiameterDimension to the ModelCurve -&amp;gt; it fails with the same error message.&lt;BR /&gt;---------------------------&lt;BR /&gt;Error&lt;BR /&gt;---------------------------&lt;BR /&gt;Error: One of the conditions for the inputs was not satisfied. Consult the documentation for requirements for each argument.&lt;BR /&gt;---------------------------&lt;BR /&gt;OK&lt;BR /&gt;---------------------------&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Nov 2024 19:16:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/diameter-dimensions-for-sweep-profile/m-p/13151079#M2418</guid>
      <dc:creator>studio-a-int</dc:creator>
      <dc:date>2024-11-14T19:16:28Z</dc:date>
    </item>
  </channel>
</rss>

