<?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: Set a size/shape for points when drawing with PrimitiveType.PointList in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/set-a-size-shape-for-points-when-drawing-with-primitivetype/m-p/12832852#M4815</link>
    <description>&lt;P&gt;I think it is not only related to big or small. it how much curvy it is... small font with less curves, then we may not need tolerance at all.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Moustafa_K_0-1718126094912.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1374593iCC5BE83433734F90/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Moustafa_K_0-1718126094912.png" alt="Moustafa_K_0-1718126094912.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 11 Jun 2024 17:15:33 GMT</pubDate>
    <dc:creator>Moustafa_K</dc:creator>
    <dc:date>2024-06-11T17:15:33Z</dc:date>
    <item>
      <title>Set a size/shape for points when drawing with PrimitiveType.PointList</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/set-a-size-shape-for-points-when-drawing-with-primitivetype/m-p/12829924#M4802</link>
      <description>&lt;P&gt;I've written a server derived from IDirectContext3DServer and use the primitive type PrimitiveType.PointList to draw positions. But the vertices drawn are only 1px wide, so it's hard to see and therefore useless.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any way of increasing the size of the points and/or changing the shape drawn?&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2024 13:54:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/set-a-size-shape-for-points-when-drawing-with-primitivetype/m-p/12829924#M4802</guid>
      <dc:creator>FRFR1426</dc:creator>
      <dc:date>2024-06-10T13:54:40Z</dc:date>
    </item>
    <item>
      <title>Re: Set a size/shape for points when drawing with PrimitiveType.PointList</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/set-a-size-shape-for-points-when-drawing-with-primitivetype/m-p/12829951#M4803</link>
      <description>&lt;P&gt;I couldn't find a way to set this also, the thing i am currently using as a work around is&amp;nbsp;&lt;A href="http://ITemporaryGraphicsHandlerITemporaryGraphicsHandler" target="_blank" rel="noopener"&gt;ITemporaryGraphicsHandler&amp;nbsp;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;which i implement a custom image and render it over point location. this is an example.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Moustafa_K_0-1718028321166.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1374054i4258540A20FF8671/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Moustafa_K_0-1718028321166.png" alt="Moustafa_K_0-1718028321166.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I would also be glad to know of there is permanent solution for vertex shapes&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2024 14:06:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/set-a-size-shape-for-points-when-drawing-with-primitivetype/m-p/12829951#M4803</guid>
      <dc:creator>Moustafa_K</dc:creator>
      <dc:date>2024-06-10T14:06:17Z</dc:date>
    </item>
    <item>
      <title>Re: Set a size/shape for points when drawing with PrimitiveType.PointList</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/set-a-size-shape-for-points-when-drawing-with-primitivetype/m-p/12830346#M4804</link>
      <description>&lt;P&gt;Nice hack. I thought it might be possible to draw a quad oriented towards the camera by retrieving the latter's direction with DrawContext.GetCamera(). But I need also to draw text so I think I will use a window with an Helix Toolkit viewport. This API is far too limited to be useful.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2024 16:40:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/set-a-size-shape-for-points-when-drawing-with-primitivetype/m-p/12830346#M4804</guid>
      <dc:creator>FRFR1426</dc:creator>
      <dc:date>2024-06-10T16:40:04Z</dc:date>
    </item>
    <item>
      <title>Re: Set a size/shape for points when drawing with PrimitiveType.PointList</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/set-a-size-shape-for-points-when-drawing-with-primitivetype/m-p/12830614#M4805</link>
      <description>&lt;P&gt;I would love to have the feature to set a width in the line, to make easier to visualize like the Thin Lines does.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;In my case I experimenting to 'convert' to a mesh like a cube for the point and a extrusion for the line, is kinda expensive. &lt;span class="lia-unicode-emoji" title=":neutral_face:"&gt;😐&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The same thing for the text feature, if you convert the font to a mesh is possible to simulate a text in the &lt;STRONG&gt;DirectContext3D&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2024-06-10 15-54-57.gif" style="width: 300px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1374178i7C1B3B1D4D6E6BDB/image-size/small?v=v2&amp;amp;px=200" role="button" title="2024-06-10 15-54-57.gif" alt="2024-06-10 15-54-57.gif" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Still need to find a good polygon to mesh algorithm, at the moment I'm using the &lt;STRONG&gt;GeometryCreationUtilities.CreateExtrusionGeometry&lt;/STRONG&gt; to create a solid, and getting the first face to show in the &lt;STRONG&gt;DirectContext3D&lt;/STRONG&gt;. Works but have some Revit limitations.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2024 19:04:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/set-a-size-shape-for-points-when-drawing-with-primitivetype/m-p/12830614#M4805</guid>
      <dc:creator>ricaun</dc:creator>
      <dc:date>2024-06-10T19:04:04Z</dc:date>
    </item>
    <item>
      <title>Re: Set a size/shape for points when drawing with PrimitiveType.PointList</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/set-a-size-shape-for-points-when-drawing-with-primitivetype/m-p/12830856#M4806</link>
      <description>&lt;P&gt;I was able to render most of the text using &lt;A href="https://learn.microsoft.com/en-us/dotnet/desktop/wpf/advanced/drawing-formatted-text?view=netframeworkdesktop-4.8" target="_blank" rel="noopener"&gt;FormattedText&lt;/A&gt;.BuildGeometry. but like you said it has some limitation. The thing is that &lt;A href="https://learn.microsoft.com/en-us/dotnet/api/system.windows.media.formattedtext.buildgeometry?view=windowsdesktop-8.0" target="_blank" rel="noopener"&gt;building geometry function&lt;/A&gt; does not give you enough data to render a text exactly as it looks. but it is some how acceptable. For example&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the gray is the normal 3D Model Text by Revit&lt;/P&gt;&lt;P&gt;the Red is Direct 3D&lt;/P&gt;&lt;P&gt;Font used Ink free&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Moustafa_K_0-1718051372499.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1374225i1DA658F73BA45F1C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Moustafa_K_0-1718051372499.png" alt="Moustafa_K_0-1718051372499.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;zooming to see the differences&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Moustafa_K_1-1718051451471.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1374226i04E3D901D4F66D2D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Moustafa_K_1-1718051451471.png" alt="Moustafa_K_1-1718051451471.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;another function I tried is &lt;A href="https://learn.microsoft.com/en-us/dotnet/api/system.drawing.drawing2d.graphicspath?view=net-8.0" target="_blank" rel="noopener"&gt;GraphicsPath&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;this function does indeed extract a very close match to font shape. but with extreme cost of faces and points. The thing that I think the buffer couldn't hold, and shown&amp;nbsp; a broken geometry&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;gray is normal model Text&lt;/P&gt;&lt;P&gt;olive is using GraphicsPath&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Moustafa_K_2-1718052963730.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1374230i55E642A22BC6ACE7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Moustafa_K_2-1718052963730.png" alt="Moustafa_K_2-1718052963730.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I still see the Formatted text has a better performance and some how acceptable effect... and the too precise match is not that required, at least for me. I will try to post a more analytics results by numbers, but time is too late for me now. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2024 21:15:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/set-a-size-shape-for-points-when-drawing-with-primitivetype/m-p/12830856#M4806</guid>
      <dc:creator>Moustafa_K</dc:creator>
      <dc:date>2024-06-10T21:15:56Z</dc:date>
    </item>
    <item>
      <title>Re: Set a size/shape for points when drawing with PrimitiveType.PointList</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/set-a-size-shape-for-points-when-drawing-with-primitivetype/m-p/12831092#M4807</link>
      <description>&lt;P&gt;Never used this &lt;A href="https://learn.microsoft.com/en-us/dotnet/desktop/wpf/advanced/drawing-formatted-text?view=netframeworkdesktop-4.8" target="_blank" rel="noopener nofollow noreferrer"&gt;FormattedText&lt;/A&gt;, I'm using the &lt;A href="https://github.com/watertrans/GlyphLoader" target="_blank" rel="noopener"&gt;WaterTrans.GlyphLoader&lt;/A&gt; package to get the content of the font.&lt;/P&gt;&lt;P&gt;Look's similar, at least I need to convert each segment to a path depending if is line, bezier or quadratic bezier.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In your case probably you are not creating multiple points when is a bezier segment, that's could be the reason your curve looks odd.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How are you doing to convert the &lt;STRONG&gt;PathGeometry&lt;/STRONG&gt; to a polygon? And then create the 2d mesh to get each triangulate to render in Direct 3D?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2024 23:52:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/set-a-size-shape-for-points-when-drawing-with-primitivetype/m-p/12831092#M4807</guid>
      <dc:creator>ricaun</dc:creator>
      <dc:date>2024-06-10T23:52:26Z</dc:date>
    </item>
    <item>
      <title>Re: Set a size/shape for points when drawing with PrimitiveType.PointList</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/set-a-size-shape-for-points-when-drawing-with-primitivetype/m-p/12831336#M4808</link>
      <description>&lt;P&gt;ok here are some numbers: I tested both functions with a single character 'T'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;GraphicsPath Method Report&lt;/STRONG&gt;&lt;BR /&gt;-------------------------&lt;BR /&gt;Text to Render: T&lt;BR /&gt;Total number of Points: 104&lt;BR /&gt;Total number of Curves: 35&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FormattedText Method Report&lt;/STRONG&gt;&lt;BR /&gt;-------------------------&lt;BR /&gt;Text to Render: T&lt;BR /&gt;Total number of Points: 47&lt;BR /&gt;Total number of Curves: 47&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Line types are not extracted typically as the glyph drawn. Seems GraphicsPath has a better algorithm for tracing that.&lt;/P&gt;&lt;P&gt;I have attached the extracted line types&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Red: Formatted Text&lt;/P&gt;&lt;P&gt;Blue: GraphicsPath&lt;/P&gt;&lt;P&gt;this is how dense the points are reflected over the shape&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Moustafa_K_2-1718078143976.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1374314i2AB94A904C81B3AC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Moustafa_K_2-1718078143976.png" alt="Moustafa_K_2-1718078143976.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Moustafa_K_1-1718077965775.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1374313iC906FC3D2AD82AC0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Moustafa_K_1-1718077965775.png" alt="Moustafa_K_1-1718077965775.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BLOCKQUOTE&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4176855"&gt;@ricaun&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;Never used this &lt;A href="https://learn.microsoft.com/en-us/dotnet/desktop/wpf/advanced/drawing-formatted-text?view=netframeworkdesktop-4.8" target="_blank" rel="noopener nofollow noreferrer"&gt;FormattedText&lt;/A&gt;, I'm using the &lt;A href="https://github.com/watertrans/GlyphLoader" target="_blank" rel="noopener"&gt;WaterTrans.GlyphLoader&lt;/A&gt; package to get the content of the font.&lt;/P&gt;&lt;P&gt;Look's similar, at least I need to convert each segment to a path depending if is line, bezier or quadratic bezier.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I didn't know about waterTrans, I will have a look over it. In fact i do exactly as you do, checking and converting each line type depending on its type. the thing is curves that are expected to be bezier are returned as polyline segment&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4176855"&gt;@ricaun&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How are you doing to convert the &lt;STRONG&gt;PathGeometry&lt;/STRONG&gt; to a polygon? And then create the 2d mesh to get each triangulate to render in Direct 3D?&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;yes, after creating curves, i create solid, then from solid to mesh. see this example&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;List&amp;lt;CurveLoop&amp;gt; rvtCurves = [];

    var formatted = fontSettings.GetFormattedText(message);
    GeometryGroup geo = formatted.BuildGeometry(new System.Windows.Point()) as GeometryGroup;
    var pathGeometry = geo.GetFlattenedPathGeometry();
 
    foreach (var fig in pathGeometry.Figures)
    {
        var cloop = new CurveLoop();

        XYZ startPoint = fig.StartPoint.ToRvtPoint();
        for (int i = 0; i &amp;lt; fig.Segments.Count; i++)
        {
            PathSegment seg = fig.Segments[i];
            try
            {
                Curve curve = null;
                if (seg is LineSegment lineSeg)
                {
                    curve = Line.CreateBound(startPoint, lineSeg.Point.ToRvtPoint());
                }
                else if (seg is BezierSegment bezSeg)
                {
                    var p0 = startPoint;
                    var p1 = bezSeg.Point1.ToRvtPoint();
                    var p2 = bezSeg.Point2.ToRvtPoint();
                    var p3 = bezSeg.Point3.ToRvtPoint();
                    curve = HermiteSpline.Create([p0, p1, p2, p3], false);
                }
                else if (seg is PolyLineSegment polSeg)
                {
                    var points = polSeg.Points.Select(o =&amp;gt; o.ToRvtPoint()).ToList();
                    points.Insert(0, startPoint);
                    foreach (var item in points.DrawAPI(false))
                    {
                        cloop.Append(item);
                    }
                }
                else if (seg is PolyBezierSegment polBezSeg)
                {
                    var points = polBezSeg.Points.Select(o =&amp;gt; o.ToRvtPoint()).ToList();
                    points.Insert(0, startPoint);
                    curve = HermiteSpline.Create(points, false);
                }
                else
                {
                    // Unsupported type yet
                }

                if (curve != null)
                {
                    cloop.Append(curve);
                    startPoint = curve.GetEndPoint(1);
                }
            }
            catch (Exception ex)
            {
                // something went wrong
            }
        }
        
        rvtCurves.Add(cloop);
    }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4176855"&gt;@ricaun&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;In your case probably you are not creating multiple points when is a bezier segment, that's could be the reason your curve looks odd.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;yes I also though the same, but later i realized formattedtext function is behind all that, which led me to find out GraphicsPath&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am also summarizing with some additional inputs of my &lt;A href="https://sharpbim.hashnode.dev/render-text-via-direct-context-3d" target="_blank" rel="noopener"&gt;findings over here&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2024 06:16:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/set-a-size-shape-for-points-when-drawing-with-primitivetype/m-p/12831336#M4808</guid>
      <dc:creator>Moustafa_K</dc:creator>
      <dc:date>2024-06-11T06:16:29Z</dc:date>
    </item>
    <item>
      <title>Re: Set a size/shape for points when drawing with PrimitiveType.PointList</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/set-a-size-shape-for-points-when-drawing-with-primitivetype/m-p/12831691#M4809</link>
      <description>&lt;P&gt;I think the way you create the Hermite spline from the Bézier spline is wrong:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;var p0 = startPoint;
var p1 = bezSeg.Point1.ToRvtPoint();
var p2 = bezSeg.Point2.ToRvtPoint();
var p3 = bezSeg.Point3.ToRvtPoint();
curve = HermiteSpline.Create([p0, p1, p2, p3], false);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;HermiteSpline.Create Method (IList&amp;lt;(Of &amp;lt;(&amp;lt;'XYZ&amp;gt;)&amp;gt;)&amp;gt;, Boolean) creates a Hermite spline that interpolates the supplied points.&amp;nbsp;The curve passes through all points.&amp;nbsp;But a cubic Bézier curve only passes through the first and last points.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You should use the HermiteSpline.Create overload to specify the starting and ending tangents.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;var tangents = new HermiteSplineTangents();
tangents.StartTangent = (p1 - p0).Normalize();
tangents.EndTangent = (p3 - p2).Normalize();
curve = HermiteSpline.Create([p0, p3], periodic: false, tangents);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2024 08:15:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/set-a-size-shape-for-points-when-drawing-with-primitivetype/m-p/12831691#M4809</guid>
      <dc:creator>FRFR1426</dc:creator>
      <dc:date>2024-06-11T08:15:50Z</dc:date>
    </item>
    <item>
      <title>Re: Set a size/shape for points when drawing with PrimitiveType.PointList</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/set-a-size-shape-for-points-when-drawing-with-primitivetype/m-p/12831702#M4810</link>
      <description>&lt;P&gt;That will be a great level up, I will try it. Yep! the explanation of how Hermit is placed, makes sense now. Thanks&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1027563"&gt;@FRFR1426&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2024 14:52:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/set-a-size-shape-for-points-when-drawing-with-primitivetype/m-p/12831702#M4810</guid>
      <dc:creator>Moustafa_K</dc:creator>
      <dc:date>2024-06-11T14:52:29Z</dc:date>
    </item>
    <item>
      <title>Re: Set a size/shape for points when drawing with PrimitiveType.PointList</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/set-a-size-shape-for-points-when-drawing-with-primitivetype/m-p/12832557#M4811</link>
      <description>&lt;P&gt;Interesting, the method &lt;A href="https://learn.microsoft.com/en-us/dotnet/api/system.windows.media.geometry.getflattenedpathgeometry?view=windowsdesktop-8.0" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;GetFlattenedPathGeometry&lt;/STRONG&gt; &lt;/A&gt;already does the job to convert the bezier curves to &lt;STRONG&gt;PolyLineSegment. &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In your sample you could just use the &lt;STRONG&gt;PolyLineSegment&lt;/STRONG&gt; to create straight line.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you add something like this you can control how many points in the bezier curves, lower tolerance more points.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;var tolerance = 0.01;
var pathGeometry = textGeometry.GetFlattenedPathGeometry(tolerance, ToleranceType.Absolute);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;That's a really good and simple way to create a list of points that represent text shape.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Font_GetFlattenedPathGeometry - Arial.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1374537iD0E318D04E3BF34E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Font_GetFlattenedPathGeometry - Arial.png" alt="Font_GetFlattenedPathGeometry - Arial.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;I gonna use this approach to generate the points, now just need to find out a better way to convert the points to triangles without Revit.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm experimenting some algorithms to triangulate the points to a mesh in Godot.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="GodotRevitFont.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1374535iBF804837571DC876/image-size/medium?v=v2&amp;amp;px=400" role="button" title="GodotRevitFont.png" alt="GodotRevitFont.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyway I gonna create a video using the &lt;A href="https://learn.microsoft.com/en-us/dotnet/api/system.windows.media.geometry.getflattenedpathgeometry?view=windowsdesktop-8.0" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;GetFlattenedPathGeometry&lt;/STRONG&gt;&lt;/A&gt; with &lt;STRONG&gt;GeometryCreationUtilities.CreateExtrusionGeometry&lt;/STRONG&gt; that is kinda simple to create and explain, and does not require external library.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2024 15:04:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/set-a-size-shape-for-points-when-drawing-with-primitivetype/m-p/12832557#M4811</guid>
      <dc:creator>ricaun</dc:creator>
      <dc:date>2024-06-11T15:04:56Z</dc:date>
    </item>
    <item>
      <title>Re: Set a size/shape for points when drawing with PrimitiveType.PointList</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/set-a-size-shape-for-points-when-drawing-with-primitivetype/m-p/12832681#M4812</link>
      <description>&lt;P&gt;yep,&amp;nbsp; exactly :), I like it to be honest, I was writing the below and then i realized you got it also,&amp;nbsp; &amp;nbsp;I have updated my blog accordingly. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Edit 11th June&lt;/P&gt;&lt;P&gt;I was able to realize the why FormattedText shows different optimized shape than GraphicsPath, due to the face we are using this statement&lt;/P&gt;&lt;PRE&gt;var pathGeometry = geo.GetFlattenedPathGeometry();&lt;/PRE&gt;&lt;P&gt;This statement &lt;A href="https://learn.microsoft.com/en-us/dotnet/api/system.windows.media.geometry.getflattenedpathgeometry?view=windowsdesktop-8.0" target="_blank" rel="noopener noreferrer nofollow"&gt;accoriding to Documentation&lt;/A&gt; The polygonal approximation of the geometry. thus if we changed the tollerance of flattening, it would return a better result.&lt;/P&gt;&lt;PRE&gt;&amp;nbsp;var&amp;nbsp;figures&amp;nbsp;=&amp;nbsp;geo.GetFlattenedPathGeometry(.00001,&amp;nbsp;ToleranceType.Relative)
                  .Figures;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Moustafa_K_0-1718121550553.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1374560i95C5205BB3643D18/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Moustafa_K_0-1718121550553.png" alt="Moustafa_K_0-1718121550553.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is using FormattedText with flattengeometry of .00001 almost the maximum. which returned exactly what is expected&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;now we play with tolerance to suit the performance against quality as it is always every developer challenge &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2024 16:01:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/set-a-size-shape-for-points-when-drawing-with-primitivetype/m-p/12832681#M4812</guid>
      <dc:creator>Moustafa_K</dc:creator>
      <dc:date>2024-06-11T16:01:55Z</dc:date>
    </item>
    <item>
      <title>Re: Set a size/shape for points when drawing with PrimitiveType.PointList</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/set-a-size-shape-for-points-when-drawing-with-primitivetype/m-p/12832722#M4813</link>
      <description>&lt;P&gt;I see significant benefits in using the FlattenGeometry algorithm. For instance, when importing CAD lines that contain many unnecessary points, we can create PathGeometry from these lines and then flatten it. This approach can also be particularly useful when working with topography subregions or outer boundaries.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is a valuable takeaway for this week. thump up every one&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2024 16:16:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/set-a-size-shape-for-points-when-drawing-with-primitivetype/m-p/12832722#M4813</guid>
      <dc:creator>Moustafa_K</dc:creator>
      <dc:date>2024-06-11T16:16:25Z</dc:date>
    </item>
    <item>
      <title>Re: Set a size/shape for points when drawing with PrimitiveType.PointList</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/set-a-size-shape-for-points-when-drawing-with-primitivetype/m-p/12832841#M4814</link>
      <description>&lt;P&gt;The default &lt;STRONG&gt;GetFlattenedPathGeometry&lt;/STRONG&gt; without the tolerance gonna use the font size as base to add more points or not.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Only make sense to use tolerance if you need a small font with many points for some reason. And Revit has a limit when creating &lt;STRONG&gt;Line&lt;/STRONG&gt;, really small line is not possible to create.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Makes more sense to create with a bigger font size and scale down the points to match a millimeter size.&lt;/P&gt;&lt;P&gt;Looks like 2.75 font is 600mm, when converting the &lt;STRONG&gt;Point&lt;/STRONG&gt; to &lt;STRONG&gt;XYZ&lt;/STRONG&gt; you could scale in there.&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;public static XYZ ToRevitXYZ(this System.Windows.Point point)
{
    var factor = 2.75 / 600;
    return new XYZ(point.X, -point.Y, 0) * factor;
}&lt;/LI-CODE&gt;&lt;P&gt;And if you create a font with size 150 gonna create the XYZ points with the Height 150mm inside Revit.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using a tolerance with the value 2 and this approach seen to result a readable font, kinda similar resolution with the shape Revit model Text does.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2024 17:10:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/set-a-size-shape-for-points-when-drawing-with-primitivetype/m-p/12832841#M4814</guid>
      <dc:creator>ricaun</dc:creator>
      <dc:date>2024-06-11T17:10:24Z</dc:date>
    </item>
    <item>
      <title>Re: Set a size/shape for points when drawing with PrimitiveType.PointList</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/set-a-size-shape-for-points-when-drawing-with-primitivetype/m-p/12832852#M4815</link>
      <description>&lt;P&gt;I think it is not only related to big or small. it how much curvy it is... small font with less curves, then we may not need tolerance at all.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Moustafa_K_0-1718126094912.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1374593iCC5BE83433734F90/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Moustafa_K_0-1718126094912.png" alt="Moustafa_K_0-1718126094912.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2024 17:15:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/set-a-size-shape-for-points-when-drawing-with-primitivetype/m-p/12832852#M4815</guid>
      <dc:creator>Moustafa_K</dc:creator>
      <dc:date>2024-06-11T17:15:33Z</dc:date>
    </item>
    <item>
      <title>Re: Set a size/shape for points when drawing with PrimitiveType.PointList</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/set-a-size-shape-for-points-when-drawing-with-primitivetype/m-p/12832874#M4816</link>
      <description>&lt;P&gt;forgot to mention... that when converting to solid, then we can have what the font size is rendered. because each font scales differently. thus, from the solid we can use &lt;A href="https://www.revitapidocs.com/2017/35360886-77c5-4117-e395-b83b95f9c884.htm" target="_blank" rel="noopener"&gt;Transform.ScaleBasis(value)&lt;/A&gt; in the direct context 3D, to scale it to the size we need saying intendedWidth should be 1 meter long&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;  scale = intendedWidth/Solid.GetBoundingBox().Width;    // extention function are helpful here&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What do you think?&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2024 17:33:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/set-a-size-shape-for-points-when-drawing-with-primitivetype/m-p/12832874#M4816</guid>
      <dc:creator>Moustafa_K</dc:creator>
      <dc:date>2024-06-11T17:33:44Z</dc:date>
    </item>
    <item>
      <title>Re: Set a size/shape for points when drawing with PrimitiveType.PointList</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/set-a-size-shape-for-points-when-drawing-with-primitivetype/m-p/12832990#M4817</link>
      <description>&lt;P&gt;This is a 5mm font with&amp;nbsp;&lt;STRONG&gt;GetFlattenedPathGeometry&lt;/STRONG&gt; and the Revit Text model:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ricaun_0-1718127321370.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1374605iB865E1487D07E626/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ricaun_0-1718127321370.png" alt="ricaun_0-1718127321370.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Revit kinda ignore the points near each other, would make sense to do the same thing with a temporary text.&lt;/P&gt;&lt;P&gt;Here is a room with walls to compare how small that font is.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ricaun_2-1718127965875.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1374614iBFEFFB66EC8BE17A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ricaun_2-1718127965875.png" alt="ricaun_2-1718127965875.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The tolerance only control how many points gonna be generated in the bezier curve, is some kinda of distance showing in the &lt;A href="https://learn.microsoft.com/en-us/dotnet/api/system.windows.media.geometry.getflattenedpathgeometry?view=windowsdesktop-8.0" target="_blank" rel="noopener"&gt;doc&lt;/A&gt;. &lt;EM&gt;"The maximum bounds on the distance between points in the polygonal approximation of the geometry".&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have some implementation using scale for the solid, is kinda possible to force to generate a smaller line but I don't think that makes sense to generate a perfect temporary text really small inside Revit.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2024 18:07:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/set-a-size-shape-for-points-when-drawing-with-primitivetype/m-p/12832990#M4817</guid>
      <dc:creator>ricaun</dc:creator>
      <dc:date>2024-06-11T18:07:58Z</dc:date>
    </item>
    <item>
      <title>Re: Set a size/shape for points when drawing with PrimitiveType.PointList</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/set-a-size-shape-for-points-when-drawing-with-primitivetype/m-p/12833004#M4818</link>
      <description>&lt;P&gt;Totally agree..., the only reason i came up with the idea of scaling is when i was rendering different dimensions to different sizes to study a furniture. which came in handy while studying.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will try to think your way if i can find out what i need to make it more optimized which over all reflects over the performance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Moustafa_K_0-1718129534493.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1374618i94CFA11868332503/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Moustafa_K_0-1718129534493.png" alt="Moustafa_K_0-1718129534493.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Moustafa_K_1-1718129556748.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1374619i673AD74EEFC7F5BA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Moustafa_K_1-1718129556748.png" alt="Moustafa_K_1-1718129556748.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2024 18:14:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/set-a-size-shape-for-points-when-drawing-with-primitivetype/m-p/12833004#M4818</guid>
      <dc:creator>Moustafa_K</dc:creator>
      <dc:date>2024-06-11T18:14:09Z</dc:date>
    </item>
    <item>
      <title>Re: Set a size/shape for points when drawing with PrimitiveType.PointList</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/set-a-size-shape-for-points-when-drawing-with-primitivetype/m-p/12833202#M4819</link>
      <description>&lt;P&gt;What font are you using?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;You probably should use a more square font, that gonna generate less points and less triangles.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here some samples:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ricaun_0-1718135419293.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1374642iD9A2EE8E15122DBC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ricaun_0-1718135419293.png" alt="ricaun_0-1718135419293.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The Arial have less polys in the '&lt;STRONG&gt;0123456789 abcdefghijklmnopqrstuvwxyz&lt;/STRONG&gt;' sample.&lt;/P&gt;&lt;LI-CODE lang="general"&gt;Arial				NumTriangles:719
Calibri				NumTriangles:1580
Comic Sans MS		NumTriangles:1118
Times New Roman		NumTriangles:1064&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This &lt;STRONG&gt;Geometry.GetFlattenedPathGeometry&lt;/STRONG&gt; method is pretty fun.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2024 19:59:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/set-a-size-shape-for-points-when-drawing-with-primitivetype/m-p/12833202#M4819</guid>
      <dc:creator>ricaun</dc:creator>
      <dc:date>2024-06-11T19:59:49Z</dc:date>
    </item>
    <item>
      <title>Re: Set a size/shape for points when drawing with PrimitiveType.PointList</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/set-a-size-shape-for-points-when-drawing-with-primitivetype/m-p/12833236#M4820</link>
      <description>&lt;P&gt;yeah the more straight lined font the better performance and quality indeed&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.dafontfree.co/ink-free-font/" target="_blank" rel="noopener"&gt;Ink free font&lt;/A&gt; i am using&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2024 20:15:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/set-a-size-shape-for-points-when-drawing-with-primitivetype/m-p/12833236#M4820</guid>
      <dc:creator>Moustafa_K</dc:creator>
      <dc:date>2024-06-11T20:15:49Z</dc:date>
    </item>
    <item>
      <title>Re: Set a size/shape for points when drawing with PrimitiveType.PointList</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/set-a-size-shape-for-points-when-drawing-with-primitivetype/m-p/12841661#M4821</link>
      <description>&lt;P&gt;Just to finish this Text for &lt;STRONG&gt;DirectContext3D&lt;/STRONG&gt; rabbit hole, here is my implementation using the &lt;STRONG&gt;FormattedText&lt;/STRONG&gt; instead of the &lt;STRONG&gt;WaterTrans.GlyphLoader&lt;/STRONG&gt; package that I was using. Thanks for sharing that approach &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/549406"&gt;@Moustafa_K&lt;/a&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;div class="video-embed-center video-embed"&gt;&lt;iframe class="embedly-embed" src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Fy1w-TuBzls4%3Ffeature%3Doembed&amp;amp;display_name=YouTube&amp;amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dy1w-TuBzls4&amp;amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2Fy1w-TuBzls4%2Fhqdefault.jpg&amp;amp;type=text%2Fhtml&amp;amp;schema=youtube" width="200" height="112" scrolling="no" title="Font Geometry to use with DirectContext3D - Revit API" frameborder="0" allow="autoplay; fullscreen; encrypted-media; picture-in-picture;" allowfullscreen="true"&gt;&lt;/iframe&gt;&lt;/div&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code only generate the basic shape, the &lt;STRONG&gt;DirectContext3D&lt;/STRONG&gt; implementation is not included at the moment.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="https://github.com/ricaun-io/RevitAddin.FontGeometry.Example" target="_blank"&gt;https://github.com/ricaun-io/RevitAddin.FontGeometry.Example&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 15 Jun 2024 14:12:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/set-a-size-shape-for-points-when-drawing-with-primitivetype/m-p/12841661#M4821</guid>
      <dc:creator>ricaun</dc:creator>
      <dc:date>2024-06-15T14:12:17Z</dc:date>
    </item>
  </channel>
</rss>

