<?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: Insert Block and waiting for user input rotation in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/insert-block-and-waiting-for-user-input-rotation/m-p/3499914#M55104</link>
    <description>&lt;P&gt;Then you change your command string like this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;             string command = "(command " + '"' + "-insert" + '"' + " " + '"' + "Your block name" + '"';
                    command = command + "(list " + p1.X + " " + p1.Y + ") ";
                    command = command + "1 1 " + "pause" + ") "; //+'"' + "RainManhole" + '"' + ") ";

                    //eRainManhole += new EventHandler(DeleteGiong);
                    doc.SendStringToExecute(command, true, false, false);&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;where p1 is picked point from my code above&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080"&gt;~'J'~&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 14 Jun 2012 12:00:37 GMT</pubDate>
    <dc:creator>Hallex</dc:creator>
    <dc:date>2012-06-14T12:00:37Z</dc:date>
    <item>
      <title>Insert Block and waiting for user input rotation</title>
      <link>https://forums.autodesk.com/t5/net-forum/insert-block-and-waiting-for-user-input-rotation/m-p/3499614#M55096</link>
      <description>&lt;P&gt;Somebody help me how to insert block, but waiting for user input rotation.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jun 2012 07:57:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/insert-block-and-waiting-for-user-input-rotation/m-p/3499614#M55096</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-06-14T07:57:04Z</dc:date>
    </item>
    <item>
      <title>Re: Insert Block and waiting for user input rotation</title>
      <link>https://forums.autodesk.com/t5/net-forum/insert-block-and-waiting-for-user-input-rotation/m-p/3499654#M55097</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;as there are muliple methods available of how to insert a block (starting with sendcommand, using com or doing it with managed coding) show what you have currently, so we know where to continue/step in.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- alfred -&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jun 2012 08:17:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/insert-block-and-waiting-for-user-input-rotation/m-p/3499654#M55097</guid>
      <dc:creator>Alfred.NESWADBA</dc:creator>
      <dc:date>2012-06-14T08:17:47Z</dc:date>
    </item>
    <item>
      <title>Re: Insert Block and waiting for user input rotation</title>
      <link>https://forums.autodesk.com/t5/net-forum/insert-block-and-waiting-for-user-input-rotation/m-p/3499734#M55098</link>
      <description>&lt;P&gt;My work is insert a block (waiting for user input rotation) then delete a polyline. I used 'SendStringToExecute' method.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My solution:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public static ObjectId DgiongID;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public static event EventHandler eRainManhole;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [CommandMethod("RainManhole")]&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public static void RainManhole()&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (eRainManhole != null)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; eRainManhole(null, null);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [CommandMethod("Rman")]&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public static void InsertRman()&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ......&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Get one point form user&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Offset from one center line to this point, this offset objectID store in DgiongID&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; User pick a&amp;nbsp; point in offset object store in Pchen&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Insert a block at that point and waiting for user input rotation, then delete object: DgiongID&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ......&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string command = "(command " + '"' + "Insert" + '"' + " " + '"' + "$RSman$ ";&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; command = command + "'(" + Pchen.X + " " + Pchen.Y + ") ";&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; command = command + "1 1 pause " + '"' + "RainManhole" + '"' + ") ";&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; eRainManhole += new EventHandler(DeleteGiong);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; acDoc.SendStringToExecute(command, false, false, false);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public static void DeleteGiong(object sender, EventArgs e)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Document acDoc = Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Database acCurDb = acDoc.Database;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Transaction acTrans = acCurDb.TransactionManager.StartTransaction();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; using (acTrans)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DBObject Dgiong = (DBObject)acTrans.GetObject(DgiongID, OpenMode.ForWrite, true, true);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dgiong.Erase();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; acTrans.Commit();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With this solution everyhing is done. But the problem is if user hit the UP ARROW KEY in AutoCAD command history is not my defined command, they have to hit twice if want to get 'RMAN' command. It's not flexible for user when they want to do this function continuously. So I ask for a better solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jun 2012 09:14:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/insert-block-and-waiting-for-user-input-rotation/m-p/3499734#M55098</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-06-14T09:14:35Z</dc:date>
    </item>
    <item>
      <title>Re: Insert Block and waiting for user input rotation</title>
      <link>https://forums.autodesk.com/t5/net-forum/insert-block-and-waiting-for-user-input-rotation/m-p/3499750#M55099</link>
      <description>&lt;P&gt;Perhaps, you might want to use Getangle method?&lt;BR /&gt;Here is my 2 cents:&lt;/P&gt;&lt;PRE&gt;        [CommandMethod("insRot")]
        public void InsertSample()
        {
            // put your block name here
            string blkname = "ARW";
            Document doc = Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument;
            Database db = doc.Database;
            Editor ed = doc.Editor;

            //Specify insertion point
            PromptPointOptions ppo = new PromptPointOptions("\nPick Insertion point:");
            PromptPointResult ppr = ed.GetPoint(ppo);
            if (ppr.Status != PromptStatus.OK)
                return;
            Point3d p1 = ppr.Value;
            //Specify rotation angle
            PromptAngleOptions pae = new PromptAngleOptions("\nSpecify an angle:");
            pae.DefaultValue = 0.0;
            pae.BasePoint = p1;
            pae.UseBasePoint = true;
            PromptDoubleResult ares = ed.GetAngle(pae);
            if (ares.Status != PromptStatus.OK)
                return;
            double ang = ares.Value;

            using (Transaction tr = db.TransactionManager.StartTransaction())
            {
                try
                {
                    // get the block table
                    BlockTable bt =  tr.GetObject(db.BlockTableId, OpenMode.ForRead) as BlockTable;
                    // check if block exists
                    if (!bt.Has(blkname))
                    {
                        ed.WriteMessage("\nBlock does not exist!");
                        return;
                    }
                    // get objectid of BlockTableRecord
                    ObjectId blkid = bt[blkname];
                    // get the current space
                    BlockTableRecord btr = tr.GetObject(db.CurrentSpaceId, OpenMode.ForWrite) as BlockTableRecord;
                    // create  new BlockReference
                    BlockReference bref = new BlockReference(p1, blkid);
                    bref.SetDatabaseDefaults();
                    // set block rotation
                    bref.Rotation = ang;
                    // set scale
                    bref.ScaleFactors = new Scale3d(1);
                    //set layer
                    bref.Layer = "0";
                    //' ETC...
                    // add block to database and transaction
                    btr.AppendEntity(bref);
                    tr.AddNewlyCreatedDBObject(bref, true);

                    // &amp;lt; rest your work with attributes here &amp;gt; '

                    //commits the drawing changes
                    tr.Commit();
                }
                catch (System.Exception ex)
                {
                    ed.WriteMessage(ex.Message + "\n" + ex.StackTrace);
                }
            }

        }&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800000" face="arial,helvetica,sans-serif"&gt;~'J'~&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jun 2012 09:42:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/insert-block-and-waiting-for-user-input-rotation/m-p/3499750#M55099</guid>
      <dc:creator>Hallex</dc:creator>
      <dc:date>2012-06-14T09:42:15Z</dc:date>
    </item>
    <item>
      <title>Re: Insert Block and waiting for user input rotation</title>
      <link>https://forums.autodesk.com/t5/net-forum/insert-block-and-waiting-for-user-input-rotation/m-p/3499766#M55100</link>
      <description>&lt;P&gt;thank you Mr. Hallex. It's really usefull. But I need when waiting for input rotation. We already insert the block. The user can see how the block rotate in screen.&lt;/P&gt;&lt;P&gt;regard,&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jun 2012 10:12:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/insert-block-and-waiting-for-user-input-rotation/m-p/3499766#M55100</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-06-14T10:12:55Z</dc:date>
    </item>
    <item>
      <title>Re: Insert Block and waiting for user input rotation</title>
      <link>https://forums.autodesk.com/t5/net-forum/insert-block-and-waiting-for-user-input-rotation/m-p/3499788#M55101</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;FONT color="#666699"&gt;&amp;gt;&amp;gt; With this solution everyhing is done. But the problem is if user hit the UP ARROW KEY in AutoCAD command history &lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;FONT color="#666699"&gt;&amp;gt;&amp;gt; is not my defined command, they have to hit twice if want to get 'RMAN' command. It's not flexible for user when&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;FONT color="#666699"&gt;&amp;gt;&amp;gt; they want to do this function continuously. So I ask for a better solution.&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;If you already use LISP in your SendCommand, then make a string based on your current one with defun():&lt;/P&gt;&lt;P&gt;&lt;FONT color="#666699" face="lucida sans unicode,lucida sans"&gt;(defun C:XX() ( .... place your command here ....) )&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;then send this with the first SendCommand&lt;/P&gt;&lt;P&gt;After that start the following string with an extra SendCommand&lt;/P&gt;&lt;P&gt;&lt;FONT color="#666699" face="lucida sans unicode,lucida sans"&gt;(command "XX")&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;If your customer now repeats the last command, he will repeat &lt;FONT color="#666699" face="lucida sans unicode,lucida sans"&gt;XX&lt;/FONT&gt; and that is what you wanted, isn't it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- alfred -&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jun 2012 10:35:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/insert-block-and-waiting-for-user-input-rotation/m-p/3499788#M55101</guid>
      <dc:creator>Alfred.NESWADBA</dc:creator>
      <dc:date>2012-06-14T10:35:50Z</dc:date>
    </item>
    <item>
      <title>Re: Insert Block and waiting for user input rotation</title>
      <link>https://forums.autodesk.com/t5/net-forum/insert-block-and-waiting-for-user-input-rotation/m-p/3499876#M55102</link>
      <description>&lt;P&gt;Before I already did this way. The main function name is: Rman and the define new one in LISP is XX. But I need the lasted command in command history is the main function Rman, no more. In my solution. If user hit up key, command will return to (command .....) but right click (with settings in AutoCad options at 'User Preferences': No ShortCut menu..) it will launch my main function (Rman).&lt;/P&gt;&lt;P&gt;In my thinking, if we use send command any way. the lasted command will be not main command. Is there another way to do it without sending command.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jun 2012 11:42:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/insert-block-and-waiting-for-user-input-rotation/m-p/3499876#M55102</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-06-14T11:42:45Z</dc:date>
    </item>
    <item>
      <title>Re: Insert Block and waiting for user input rotation</title>
      <link>https://forums.autodesk.com/t5/net-forum/insert-block-and-waiting-for-user-input-rotation/m-p/3499888#M55103</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;then try for the last command not to start &lt;FONT color="#666699" face="lucida sans unicode,lucida sans"&gt;(command "XX")&lt;/FONT&gt; but just start &lt;FONT color="#666699" face="lucida sans unicode,lucida sans"&gt;XX&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;HTH, - alfred -&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jun 2012 11:52:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/insert-block-and-waiting-for-user-input-rotation/m-p/3499888#M55103</guid>
      <dc:creator>Alfred.NESWADBA</dc:creator>
      <dc:date>2012-06-14T11:52:29Z</dc:date>
    </item>
    <item>
      <title>Re: Insert Block and waiting for user input rotation</title>
      <link>https://forums.autodesk.com/t5/net-forum/insert-block-and-waiting-for-user-input-rotation/m-p/3499914#M55104</link>
      <description>&lt;P&gt;Then you change your command string like this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;             string command = "(command " + '"' + "-insert" + '"' + " " + '"' + "Your block name" + '"';
                    command = command + "(list " + p1.X + " " + p1.Y + ") ";
                    command = command + "1 1 " + "pause" + ") "; //+'"' + "RainManhole" + '"' + ") ";

                    //eRainManhole += new EventHandler(DeleteGiong);
                    doc.SendStringToExecute(command, true, false, false);&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;where p1 is picked point from my code above&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080"&gt;~'J'~&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jun 2012 12:00:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/insert-block-and-waiting-for-user-input-rotation/m-p/3499914#M55104</guid>
      <dc:creator>Hallex</dc:creator>
      <dc:date>2012-06-14T12:00:37Z</dc:date>
    </item>
    <item>
      <title>Re: Insert Block and waiting for user input rotation</title>
      <link>https://forums.autodesk.com/t5/net-forum/insert-block-and-waiting-for-user-input-rotation/m-p/3500052#M55105</link>
      <description>&lt;P&gt;can not remove calling&amp;nbsp;RainManhole in command. Also add event to it ( eRainManhole += new EventHandler(DeleteGiong);) Because of waiting finish this command, I need to continuous more work.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jun 2012 12:55:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/insert-block-and-waiting-for-user-input-rotation/m-p/3500052#M55105</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-06-14T12:55:14Z</dc:date>
    </item>
    <item>
      <title>Re: Insert Block and waiting for user input rotation</title>
      <link>https://forums.autodesk.com/t5/net-forum/insert-block-and-waiting-for-user-input-rotation/m-p/3500064#M55106</link>
      <description>&lt;P&gt;Yes, correctly the last command is XX. But I need lasted is: Rman (with my code). That why, I told for another solution not send command.&lt;/P&gt;&lt;P&gt;Regard,&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jun 2012 12:58:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/insert-block-and-waiting-for-user-input-rotation/m-p/3500064#M55106</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-06-14T12:58:53Z</dc:date>
    </item>
    <item>
      <title>Re: Insert Block and waiting for user input rotation</title>
      <link>https://forums.autodesk.com/t5/net-forum/insert-block-and-waiting-for-user-input-rotation/m-p/3500090#M55107</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sorry, then I totally misunderstood your need ;(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Well then there are two options, one is you use JIG's, the other one is to sendcommand RMAN as you last command with a built in break, so the command was called (for command history) but you have an option to cancel it when called at this specific way (but that's not a solution I would preferre).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- alfred -&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jun 2012 13:16:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/insert-block-and-waiting-for-user-input-rotation/m-p/3500090#M55107</guid>
      <dc:creator>Alfred.NESWADBA</dc:creator>
      <dc:date>2012-06-14T13:16:06Z</dc:date>
    </item>
    <item>
      <title>Re: Insert Block and waiting for user input rotation</title>
      <link>https://forums.autodesk.com/t5/net-forum/insert-block-and-waiting-for-user-input-rotation/m-p/3500148#M55108</link>
      <description>&lt;P&gt;thanks a lot. I'll try to use JIG's.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regard.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jun 2012 13:19:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/insert-block-and-waiting-for-user-input-rotation/m-p/3500148#M55108</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-06-14T13:19:11Z</dc:date>
    </item>
  </channel>
</rss>

