<?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: Draw circle in the XY plane. in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/draw-circle-in-the-xy-plane/m-p/13145117#M1974</link>
    <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/12423358"&gt;@Aravinth.Pichamani&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;      var center = new Autodesk.AutoCAD.Geometry.Point3d(3, 5, 5);
      var normal_XY_Plane = Autodesk.AutoCAD.Geometry.Vector3d.ZAxis;
      var normal_custom = new Autodesk.AutoCAD.Geometry.Vector3d(3, 4, 5);

      var radius = 10d;
      var circle = new Autodesk.AutoCAD.DatabaseServices.Circle(center, normal_XY_Plane, radius);&lt;/LI-CODE&gt;</description>
    <pubDate>Tue, 12 Nov 2024 07:20:19 GMT</pubDate>
    <dc:creator>essam-salah</dc:creator>
    <dc:date>2024-11-12T07:20:19Z</dc:date>
    <item>
      <title>Draw circle in the XY plane.</title>
      <link>https://forums.autodesk.com/t5/net-forum/draw-circle-in-the-xy-plane/m-p/13145003#M1972</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AravinthPichamani_0-1731389946168.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1432681i54AB83ADE7E54564/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AravinthPichamani_0-1731389946168.png" alt="AravinthPichamani_0-1731389946168.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Nov 2024 05:41:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/draw-circle-in-the-xy-plane/m-p/13145003#M1972</guid>
      <dc:creator>Aravinth.Pichamani</dc:creator>
      <dc:date>2024-11-12T05:41:04Z</dc:date>
    </item>
    <item>
      <title>Re: Draw circle in the XY plane.</title>
      <link>https://forums.autodesk.com/t5/net-forum/draw-circle-in-the-xy-plane/m-p/13145055#M1973</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/12423358"&gt;@Aravinth.Pichamani&lt;/a&gt;, Please provide more details on what you are trying to achieve then only we can help you with the problem.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Nov 2024 06:26:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/draw-circle-in-the-xy-plane/m-p/13145055#M1973</guid>
      <dc:creator>prem_kumar8SXZJ</dc:creator>
      <dc:date>2024-11-12T06:26:05Z</dc:date>
    </item>
    <item>
      <title>Re: Draw circle in the XY plane.</title>
      <link>https://forums.autodesk.com/t5/net-forum/draw-circle-in-the-xy-plane/m-p/13145117#M1974</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/12423358"&gt;@Aravinth.Pichamani&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;      var center = new Autodesk.AutoCAD.Geometry.Point3d(3, 5, 5);
      var normal_XY_Plane = Autodesk.AutoCAD.Geometry.Vector3d.ZAxis;
      var normal_custom = new Autodesk.AutoCAD.Geometry.Vector3d(3, 4, 5);

      var radius = 10d;
      var circle = new Autodesk.AutoCAD.DatabaseServices.Circle(center, normal_XY_Plane, radius);&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 12 Nov 2024 07:20:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/draw-circle-in-the-xy-plane/m-p/13145117#M1974</guid>
      <dc:creator>essam-salah</dc:creator>
      <dc:date>2024-11-12T07:20:19Z</dc:date>
    </item>
    <item>
      <title>Re: Draw circle in the XY plane.</title>
      <link>https://forums.autodesk.com/t5/net-forum/draw-circle-in-the-xy-plane/m-p/13145172#M1975</link>
      <description>&lt;P&gt;i need to draw a circle with new UCS&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AravinthPichamani_0-1731398127538.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1432708i837E7DE3CD7CDF88/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AravinthPichamani_0-1731398127538.png" alt="AravinthPichamani_0-1731398127538.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Nov 2024 07:55:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/draw-circle-in-the-xy-plane/m-p/13145172#M1975</guid>
      <dc:creator>Aravinth.Pichamani</dc:creator>
      <dc:date>2024-11-12T07:55:31Z</dc:date>
    </item>
    <item>
      <title>Re: Draw circle in the XY plane.</title>
      <link>https://forums.autodesk.com/t5/net-forum/draw-circle-in-the-xy-plane/m-p/13145200#M1976</link>
      <description>&lt;P&gt;hi&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/12423358"&gt;@Aravinth.Pichamani&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;have u tried any thing and failed, what is your problem exactly, the below pic shows the the vector v nad c1, c2 as line start/end points&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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="essamsalah_0-1731398500227.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1432717i9A62595BC736C6D2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="essamsalah_0-1731398500227.png" alt="essamsalah_0-1731398500227.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Nov 2024 08:03:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/draw-circle-in-the-xy-plane/m-p/13145200#M1976</guid>
      <dc:creator>essam-salah</dc:creator>
      <dc:date>2024-11-12T08:03:14Z</dc:date>
    </item>
    <item>
      <title>Re: Draw circle in the XY plane.</title>
      <link>https://forums.autodesk.com/t5/net-forum/draw-circle-in-the-xy-plane/m-p/13145206#M1977</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AravinthPichamani_0-1731398698303.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1432723iB4D94AC3FF3A31B3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AravinthPichamani_0-1731398698303.png" alt="AravinthPichamani_0-1731398698303.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Nov 2024 08:05:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/draw-circle-in-the-xy-plane/m-p/13145206#M1977</guid>
      <dc:creator>Aravinth.Pichamani</dc:creator>
      <dc:date>2024-11-12T08:05:01Z</dc:date>
    </item>
    <item>
      <title>Re: Draw circle in the XY plane.</title>
      <link>https://forums.autodesk.com/t5/net-forum/draw-circle-in-the-xy-plane/m-p/13145211#M1978</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AravinthPichamani_0-1731398777406.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1432726i74A577E02E586CB9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AravinthPichamani_0-1731398777406.png" alt="AravinthPichamani_0-1731398777406.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Nov 2024 08:06:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/draw-circle-in-the-xy-plane/m-p/13145211#M1978</guid>
      <dc:creator>Aravinth.Pichamani</dc:creator>
      <dc:date>2024-11-12T08:06:19Z</dc:date>
    </item>
    <item>
      <title>Re: Draw circle in the XY plane.</title>
      <link>https://forums.autodesk.com/t5/net-forum/draw-circle-in-the-xy-plane/m-p/13145229#M1979</link>
      <description>The normal vector of a plane is a vector that is perpendicular to the plane and is commonly used to represent the orientation of the plane in three-dimensional space.&lt;BR /&gt;var circle = new Autodesk.AutoCAD.DatabaseServices.Circle(center, normal_custom, radius);</description>
      <pubDate>Tue, 12 Nov 2024 08:13:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/draw-circle-in-the-xy-plane/m-p/13145229#M1979</guid>
      <dc:creator>cuongtk2</dc:creator>
      <dc:date>2024-11-12T08:13:43Z</dc:date>
    </item>
    <item>
      <title>Re: Draw circle in the XY plane.</title>
      <link>https://forums.autodesk.com/t5/net-forum/draw-circle-in-the-xy-plane/m-p/13145261#M1980</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AravinthPichamani_0-1731399987135.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1432742i4BAD687C75AF8153/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AravinthPichamani_0-1731399987135.png" alt="AravinthPichamani_0-1731399987135.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Nov 2024 08:26:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/draw-circle-in-the-xy-plane/m-p/13145261#M1980</guid>
      <dc:creator>Aravinth.Pichamani</dc:creator>
      <dc:date>2024-11-12T08:26:29Z</dc:date>
    </item>
    <item>
      <title>Re: Draw circle in the XY plane.</title>
      <link>https://forums.autodesk.com/t5/net-forum/draw-circle-in-the-xy-plane/m-p/13145285#M1981</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AravinthPichamani_0-1731400695286.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1432750iEAF4BF61B395EEB3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AravinthPichamani_0-1731400695286.png" alt="AravinthPichamani_0-1731400695286.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;pls guide me&lt;/P&gt;</description>
      <pubDate>Tue, 12 Nov 2024 08:38:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/draw-circle-in-the-xy-plane/m-p/13145285#M1981</guid>
      <dc:creator>Aravinth.Pichamani</dc:creator>
      <dc:date>2024-11-12T08:38:39Z</dc:date>
    </item>
    <item>
      <title>Re: Draw circle in the XY plane.</title>
      <link>https://forums.autodesk.com/t5/net-forum/draw-circle-in-the-xy-plane/m-p/13145298#M1982</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/12423358"&gt;@Aravinth.Pichamani&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if the input is the Line (center line) why we do transformation?, just the vector of the CL and a point lies on that line,&lt;/P&gt;&lt;P&gt;and u can use &lt;EM&gt;editor.&lt;STRONG&gt;CurrentUserCoordinateSystem&lt;/STRONG&gt;&lt;/EM&gt; to get current user coord system.&lt;/P&gt;&lt;P&gt;anyway if u can provide us with the dwg file and draw the input in a specific layer and the output u want in another layer it might help&lt;/P&gt;</description>
      <pubDate>Tue, 12 Nov 2024 08:46:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/draw-circle-in-the-xy-plane/m-p/13145298#M1982</guid>
      <dc:creator>essam-salah</dc:creator>
      <dc:date>2024-11-12T08:46:30Z</dc:date>
    </item>
    <item>
      <title>Re: Draw circle in the XY plane.</title>
      <link>https://forums.autodesk.com/t5/net-forum/draw-circle-in-the-xy-plane/m-p/13145376#M1983</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AravinthPichamani_0-1731403337918.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1432772i68130A0EA216BB05/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AravinthPichamani_0-1731403337918.png" alt="AravinthPichamani_0-1731403337918.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Nov 2024 09:22:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/draw-circle-in-the-xy-plane/m-p/13145376#M1983</guid>
      <dc:creator>Aravinth.Pichamani</dc:creator>
      <dc:date>2024-11-12T09:22:22Z</dc:date>
    </item>
    <item>
      <title>Re: Draw circle in the XY plane.</title>
      <link>https://forums.autodesk.com/t5/net-forum/draw-circle-in-the-xy-plane/m-p/13145490#M1984</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/12423358"&gt;@Aravinth.Pichamani&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;here is what i understood, and the way it worked for me:&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;using cDB = Autodesk.Civil.DatabaseServices;
using P3D = Autodesk.AutoCAD.Geometry.Point3d;
using aApp = Autodesk.AutoCAD.ApplicationServices;
...

 // get current doc and db
 var aDoc = aApp.Application.DocumentManager.MdiActiveDocument;
 var db = aDoc.Database;
 var ed = aDoc.Editor;

 // main start/end points (center line)
 var p1 = new P3D(5, 5, 5);   // random point
 var p2 = new P3D(30, 25, 8); // random point
 // distances on main line
 double d1 = 10d, d2 = 20d; // for points m1, m2

 // transaction
 using (var tr = db.TransactionManager.StartTransaction())
 {
   // get current model space 
   var bt = tr.GetObject(db.BlockTableId, aDB.OpenMode.ForWrite) as aDB.BlockTable;
   var btr = tr.GetObject(bt[aDB.BlockTableRecord.ModelSpace], aDB.OpenMode.ForWrite) as aDB.BlockTableRecord;

   // draw main line (CL):
   var cl = new aDB.Line(p1, p2);
   // main line vector:
   var v = p1.GetVectorTo(p2).GetNormal();
   // calc any point at CL (m1, m2):
   var v1 = v * d1;
   var v2 = v * d2;
   var m1 = new P3D(p1.X + v1.X, p1.Y + v1.Y, p1.Z + v2.Z);
   var m2 = new P3D(p1.X + v2.X, p1.Y + v2.Y, p1.Z + v2.Z);
   // draw circles
   var circle_1 = new aDB.Circle(p1, v, radius: 10);
   var circle_2 = new aDB.Circle(m1, v, radius: 12);
   var circle_3 = new aDB.Circle(m2, v, radius: 14);

   // add to current drawings
   btr.AppendEntity(cl);
   btr.AppendEntity(circle_1);
   btr.AppendEntity(circle_2);
   btr.AppendEntity(circle_3);
   tr.AddNewlyCreatedDBObject(cl, true);
   tr.AddNewlyCreatedDBObject(circle_1, true);
   tr.AddNewlyCreatedDBObject(circle_2, true);
   tr.AddNewlyCreatedDBObject(circle_3, true);

   // apply changes
   tr.Commit();
 }
&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;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="essamsalah_0-1731406589853.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1432802i7673F9B296BD2C1C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="essamsalah_0-1731406589853.png" alt="essamsalah_0-1731406589853.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="essamsalah_2-1731406832001.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1432805iD34E365CB35D69FB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="essamsalah_2-1731406832001.png" alt="essamsalah_2-1731406832001.png" /&gt;&lt;/span&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;</description>
      <pubDate>Tue, 12 Nov 2024 10:21:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/draw-circle-in-the-xy-plane/m-p/13145490#M1984</guid>
      <dc:creator>essam-salah</dc:creator>
      <dc:date>2024-11-12T10:21:08Z</dc:date>
    </item>
    <item>
      <title>Re: Draw circle in the XY plane.</title>
      <link>https://forums.autodesk.com/t5/net-forum/draw-circle-in-the-xy-plane/m-p/13145765#M1985</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's an example you can use as inspiration.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;[CommandMethod("DRAW3DCIRCLE")]
public static void Draw3dCircle()
{
    var doc = Application.DocumentManager.MdiActiveDocument;
    var db = doc.Database;
    var ed = doc.Editor;

    // Prompt the user for the circle center
    var ppo = new PromptPointOptions("\nSpecify the circle center: ");
    var ppr = ed.GetPoint(ppo);
    if (ppr.Status != PromptStatus.OK)
        return;
    var center = ppr.Value;

    // Prompt the user for a point in the circle normal direction
    ppo.Message = "\nSpecify a point in the circle normal direction: ";
    ppo.BasePoint = center;
    ppo.UseBasePoint = true;
    ppr = ed.GetPoint(ppo);
    if (ppr.Status != PromptStatus.OK)
        return;
    var normal = center.GetVectorTo(ppr.Value);

    // Prompt the user for the circle radius
    var pdo = new PromptDistanceOptions("\nSpecify the circle radius: ");
    pdo.BasePoint = center;
    pdo.UseBasePoint = true;
    var pdr = ed.GetDistance(pdo);
    if (pdr.Status != PromptStatus.OK)
        return;
    double radius = pdr.Value;

    using (var tr = db.TransactionManager.StartTransaction())
    {
        // Create a Circle instance from the user inputs
        // Both center and normal have to be transformed from current UCS to WCS
        var circle = new Circle(
            center.TransformBy(ed.CurrentUserCoordinateSystem),
            normal.TransformBy(ed.CurrentUserCoordinateSystem),
            radius);

        // Add the circle to the current space
        var curSpace = (BlockTableRecord)tr.GetObject(db.CurrentSpaceId, OpenMode.ForWrite);
        curSpace.AppendEntity(circle);
        tr.AddNewlyCreatedDBObject(circle, true);
        tr.Commit();
    }
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;div class="lia-vid-container video-embed-center"&gt;&lt;div id="lia-vid-6364635962112w816h540r610" class="lia-video-brightcove-player-container"&gt;&lt;video-js data-video-id="6364635962112" data-account="6057940548001" data-player="default" data-embed="default" class="vjs-fluid" controls="" data-application-id="" style="width: 100%; height: 100%;"&gt;&lt;/video-js&gt;&lt;/div&gt;&lt;script src="https://players.brightcove.net/6057940548001/default_default/index.min.js"&gt;&lt;/script&gt;&lt;script&gt;(function() {  var wrapper = document.getElementById('lia-vid-6364635962112w816h540r610');  var videoEl = wrapper ? wrapper.querySelector('video-js') : null;  if (videoEl) {     if (window.videojs) {       window.videojs(videoEl).ready(function() {         this.on('loadedmetadata', function() {           this.el().querySelectorAll('.vjs-load-progress div[data-start]').forEach(function(bar) {             bar.setAttribute('role', 'presentation');             bar.setAttribute('aria-hidden', 'true');           });         });       });     }  }})();&lt;/script&gt;&lt;a class="video-embed-link" href="https://forums.autodesk.com/t5/video/gallerypage/video-id/6364635962112"&gt;(view in My Videos)&lt;/a&gt;&lt;/div&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Nov 2024 07:20:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/draw-circle-in-the-xy-plane/m-p/13145765#M1985</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2024-11-13T07:20:14Z</dc:date>
    </item>
    <item>
      <title>Re: Draw circle in the XY plane.</title>
      <link>https://forums.autodesk.com/t5/net-forum/draw-circle-in-the-xy-plane/m-p/13147437#M1986</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/12423358"&gt;@Aravinth.Pichamani&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;have your problem solved?&lt;/P&gt;</description>
      <pubDate>Wed, 13 Nov 2024 07:06:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/draw-circle-in-the-xy-plane/m-p/13147437#M1986</guid>
      <dc:creator>essam-salah</dc:creator>
      <dc:date>2024-11-13T07:06:44Z</dc:date>
    </item>
    <item>
      <title>Re: Draw circle in the XY plane.</title>
      <link>https://forums.autodesk.com/t5/net-forum/draw-circle-in-the-xy-plane/m-p/13147820#M1987</link>
      <description>&lt;P&gt;If you want to honor the current UCS as the CIRCLE native command does, you can simply transform the newly created circle with the Editor.CurrentCoordinateSystem matrix.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;[CommandMethod("DRAWCIRCLEINUCS")]
public static void DrawCircleInUCS()
{
    var doc = Application.DocumentManager.MdiActiveDocument;
    var db = doc.Database;
    var ed = doc.Editor;

    // Prompt the user for the circle center
    var ppo = new PromptPointOptions("\nSpecify the circle center: ");
    var ppr = ed.GetPoint(ppo);
    if (ppr.Status != PromptStatus.OK)
        return;
    var center = ppr.Value;

    // Prompt the user for the circle radius
    var pdo = new PromptDistanceOptions("\nSpecify the circle radius: ");
    pdo.BasePoint = center;
    pdo.UseBasePoint = true;
    var pdr = ed.GetDistance(pdo);
    if (pdr.Status != PromptStatus.OK)
        return;
    double radius = pdr.Value;

    using (var tr = db.TransactionManager.StartTransaction())
    {
        // Create a Circle instance from the user inputs
        var circle = new Circle(center, Vector3d.ZAxis, radius);

        // Transform the circle froim WCS to UCS
        circle.TransformBy(ed.CurrentUserCoordinateSystem);

        // Add the circle to the current space
        var curSpace = (BlockTableRecord)tr.GetObject(db.CurrentSpaceId, OpenMode.ForWrite);
        curSpace.AppendEntity(circle);
        tr.AddNewlyCreatedDBObject(circle, true);
        tr.Commit();
    }
}&lt;/LI-CODE&gt;
&lt;P&gt;&lt;div class="lia-vid-container video-embed-center"&gt;&lt;div id="lia-vid-6364643221112w832h540r816" class="lia-video-brightcove-player-container"&gt;&lt;video-js data-video-id="6364643221112" data-account="6057940548001" data-player="default" data-embed="default" class="vjs-fluid" controls="" data-application-id="" style="width: 100%; height: 100%;"&gt;&lt;/video-js&gt;&lt;/div&gt;&lt;script src="https://players.brightcove.net/6057940548001/default_default/index.min.js"&gt;&lt;/script&gt;&lt;script&gt;(function() {  var wrapper = document.getElementById('lia-vid-6364643221112w832h540r816');  var videoEl = wrapper ? wrapper.querySelector('video-js') : null;  if (videoEl) {     if (window.videojs) {       window.videojs(videoEl).ready(function() {         this.on('loadedmetadata', function() {           this.el().querySelectorAll('.vjs-load-progress div[data-start]').forEach(function(bar) {             bar.setAttribute('role', 'presentation');             bar.setAttribute('aria-hidden', 'true');           });         });       });     }  }})();&lt;/script&gt;&lt;a class="video-embed-link" href="https://forums.autodesk.com/t5/video/gallerypage/video-id/6364643221112"&gt;(view in My Videos)&lt;/a&gt;&lt;/div&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Nov 2024 11:11:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/draw-circle-in-the-xy-plane/m-p/13147820#M1987</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2024-11-13T11:11:20Z</dc:date>
    </item>
    <item>
      <title>Re: Draw circle in the XY plane.</title>
      <link>https://forums.autodesk.com/t5/net-forum/draw-circle-in-the-xy-plane/m-p/13149566#M1988</link>
      <description>&lt;P&gt;&lt;div class="lia-vid-container video-embed-left"&gt;&lt;div id="lia-vid-6364685436112w960h540r112" class="lia-video-brightcove-player-container"&gt;&lt;video-js data-video-id="6364685436112" data-account="6057940548001" data-player="default" data-embed="default" class="vjs-fluid" controls="" data-application-id="" style="width: 100%; height: 100%;"&gt;&lt;/video-js&gt;&lt;/div&gt;&lt;script src="https://players.brightcove.net/6057940548001/default_default/index.min.js"&gt;&lt;/script&gt;&lt;script&gt;(function() {  var wrapper = document.getElementById('lia-vid-6364685436112w960h540r112');  var videoEl = wrapper ? wrapper.querySelector('video-js') : null;  if (videoEl) {     if (window.videojs) {       window.videojs(videoEl).ready(function() {         this.on('loadedmetadata', function() {           this.el().querySelectorAll('.vjs-load-progress div[data-start]').forEach(function(bar) {             bar.setAttribute('role', 'presentation');             bar.setAttribute('aria-hidden', 'true');           });         });       });     }  }})();&lt;/script&gt;&lt;a class="video-embed-link" href="https://forums.autodesk.com/t5/video/gallerypage/video-id/6364685436112"&gt;(view in My Videos)&lt;/a&gt;&lt;/div&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Nov 2024 05:13:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/draw-circle-in-the-xy-plane/m-p/13149566#M1988</guid>
      <dc:creator>Aravinth.Pichamani</dc:creator>
      <dc:date>2024-11-14T05:13:11Z</dc:date>
    </item>
  </channel>
</rss>

