<?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: Command line height in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/command-line-height/m-p/10671360#M14985</link>
    <description>&lt;P&gt;I think it's only this one routine I have an issue with. I'll fix that.&lt;/P&gt;&lt;P&gt;An invisible &lt;STRONG&gt;modal&lt;/STRONG&gt; form I thought was a clean way of freezing AutoCAD for long procedures until they complete.&lt;/P&gt;&lt;P&gt;It's the ones that require user input where the modal form is no good and I thought of the &lt;STRONG&gt;modeless&lt;/STRONG&gt; form to cover the ribbon and document tabs.&lt;/P&gt;&lt;P&gt;The modal form at least allows me to use a pallete without sendstringtoexecute poluting the commandline.&lt;/P&gt;</description>
    <pubDate>Wed, 06 Oct 2021 20:04:00 GMT</pubDate>
    <dc:creator>SRSDS</dc:creator>
    <dc:date>2021-10-06T20:04:00Z</dc:date>
    <item>
      <title>Command line height</title>
      <link>https://forums.autodesk.com/t5/net-forum/command-line-height/m-p/10670603#M14982</link>
      <description>&lt;P&gt;I want to add an invisible modeless form covering the ribbon to disable it while a command is active.&lt;/P&gt;&lt;P&gt;I have a couple of jigs where I don't know how to safely exit them if the user starts another command.&lt;/P&gt;&lt;P&gt;And I have a palette where I don't wanto to be constantly sending strings to execute.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The only problem is that I don't know how to determine the forms height without knowing the command line height.&lt;/P&gt;&lt;P&gt;acHeight=&amp;nbsp;Application.MainWindow.DeviceIndependentSize.Height&lt;/P&gt;&lt;P&gt;docHeight=&amp;nbsp;Application.DocumentManager.MdiActiveDocument.Window.DeviceIndependentSize.Height&lt;/P&gt;&lt;P&gt;cmdHeight=?&lt;/P&gt;&lt;P&gt;Can anyone help me with this last dimension?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ACAD.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/974058i44A3663B57DD1B06/image-size/large?v=v2&amp;amp;px=999" role="button" title="ACAD.png" alt="ACAD.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Oct 2021 14:40:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/command-line-height/m-p/10670603#M14982</guid>
      <dc:creator>SRSDS</dc:creator>
      <dc:date>2021-10-06T14:40:08Z</dc:date>
    </item>
    <item>
      <title>Re: Command line height</title>
      <link>https://forums.autodesk.com/t5/net-forum/command-line-height/m-p/10671170#M14983</link>
      <description>&lt;P&gt;This would one of the most strange solution I can think of, sorry to say that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In most cases, if not all, if a JIG operation is cancelled/not completed/interrupted, if the entity or entities being JIGed has/have been transformed during the dragging, it/they should be restored back to original conditions. This can be easily achieved by: either using Transaction properly, say, using a transaction to wrap the jig operation and commit or abort it, depending on if the jig is completed or not; or using non-database-residing entity clone for the dragging and leave the database-residing entity unchanged until the jig is done (then use the input from the jig to transform the real entity).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If your jig cannot be safely exited (eg. once it starts, user must complete it, right?), then something is wrong with the jig design (and I bet user would not like it). Add another weird solution on top of it would be waste of effort, IMO. While I do not know how complicated your JIGs are, use should be able to start it and then either complete it, or cancel it, and when cancelled, everything should be returned back to the original conditions as much as possible.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Oct 2021 18:27:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/command-line-height/m-p/10671170#M14983</guid>
      <dc:creator>norman.yuan</dc:creator>
      <dc:date>2021-10-06T18:27:34Z</dc:date>
    </item>
    <item>
      <title>Re: Command line height</title>
      <link>https://forums.autodesk.com/t5/net-forum/command-line-height/m-p/10671233#M14984</link>
      <description>&lt;P&gt;Hi Norman.&lt;/P&gt;&lt;P&gt;It is an odd workaround.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you help with the jig problem?&lt;/P&gt;&lt;P&gt;If a jig is interrupted by switching documents then it code must role back data added to the Nod.&amp;nbsp;&lt;/P&gt;&lt;P&gt;When trying to access the NOD I get an eNotFromThisDocument error so the MdiActiveDocument must have already been reassigned to the new document. I guess the solution here would be to not add that data until the jigs are complete.&lt;/P&gt;&lt;P&gt;The other thing I was trying was to avoid the sendstringto execute from a pallete. It's sort of garbage on the screen, and I don't want the user to be able to repeat the last command sent.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Oct 2021 19:00:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/command-line-height/m-p/10671233#M14984</guid>
      <dc:creator>SRSDS</dc:creator>
      <dc:date>2021-10-06T19:00:18Z</dc:date>
    </item>
    <item>
      <title>Re: Command line height</title>
      <link>https://forums.autodesk.com/t5/net-forum/command-line-height/m-p/10671360#M14985</link>
      <description>&lt;P&gt;I think it's only this one routine I have an issue with. I'll fix that.&lt;/P&gt;&lt;P&gt;An invisible &lt;STRONG&gt;modal&lt;/STRONG&gt; form I thought was a clean way of freezing AutoCAD for long procedures until they complete.&lt;/P&gt;&lt;P&gt;It's the ones that require user input where the modal form is no good and I thought of the &lt;STRONG&gt;modeless&lt;/STRONG&gt; form to cover the ribbon and document tabs.&lt;/P&gt;&lt;P&gt;The modal form at least allows me to use a pallete without sendstringtoexecute poluting the commandline.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Oct 2021 20:04:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/command-line-height/m-p/10671360#M14985</guid>
      <dc:creator>SRSDS</dc:creator>
      <dc:date>2021-10-06T20:04:00Z</dc:date>
    </item>
    <item>
      <title>Re: Command line height</title>
      <link>https://forums.autodesk.com/t5/net-forum/command-line-height/m-p/10671389#M14986</link>
      <description>&lt;P&gt;Sorry again.. I'm just looking at it and it will be difficult to fix without being able to access the NOD on a document switch. Multiple jigs with each writing data to the NOD. Is there a way to determine the height of the command window?&lt;/P&gt;&lt;P&gt;Might be an awkward solution but I'm one number away from making it work.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Oct 2021 20:14:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/command-line-height/m-p/10671389#M14986</guid>
      <dc:creator>SRSDS</dc:creator>
      <dc:date>2021-10-06T20:14:34Z</dc:date>
    </item>
    <item>
      <title>Re: Command line height</title>
      <link>https://forums.autodesk.com/t5/net-forum/command-line-height/m-p/10671575#M14987</link>
      <description>&lt;P&gt;I think this is close enough.&lt;/P&gt;&lt;LI-CODE lang="general"&gt;    Private Sub frmWait_Load(sender As Object, e As EventArgs) Handles MyBase.Load
        Dim rps = Autodesk.AutoCAD.Ribbon.RibbonServices.CreateRibbonPaletteSet()
        Dim ptApp As System.Windows.Point = Application.MainWindow.DeviceIndependentLocation
        Dim Scaling As Single = Windows.Forms.Screen.PrimaryScreen.Bounds.Width / Windows.SystemParameters.PrimaryScreenWidth
        Me.Left = ptApp.X * Scaling
        Me.Top = ptApp.Y * Scaling
        Me.Width = Application.MainWindow.DeviceIndependentSize.Width * Scaling
        If rps.RibbonControl.IsVisible Then
            Me.Height = (rps.RibbonControl.ActualHeight + 60) * Scaling
        Else
            Me.Height = 60 * Scaling
        End If
    End Sub&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Oct 2021 21:43:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/command-line-height/m-p/10671575#M14987</guid>
      <dc:creator>SRSDS</dc:creator>
      <dc:date>2021-10-06T21:43:11Z</dc:date>
    </item>
  </channel>
</rss>

