AutoCAD .NET :: Create Modeless Dialog Box

Nov 11, 2013

I want to create a modeless dialog box that is associated with Excel instead of AutoCAD. The program will run in AutoCAD and then it will open an instance of Excel. I want the ability for the user to then select a button on the modeless dialog that will import in data from the Excel Worksheet into AutoCAD. My preference is for the modeless dialog to be shown in Excel and not necessarily be tied to AutoCAD.

View 1 Replies


ADVERTISEMENT

AutoCAD .NET :: Can Keep A Modeless Dialog Permanently

Dec 18, 2013

Is it possible to keep a modeless dialog box permanently open (aside) just like a properties or tool pallete dialog box?If Yes, by keeping permanently, can I work in autocad environment normally as usual, like save, edit, close and open other drawings?
 
Note: Just assume that I am making a calculator-like dialog box. I would like to keep it open till the autocad application closes? (even in zero document mode.)

View 2 Replies View Related

AutoCAD .NET :: Modeless Dialog / Insertion Point

Sep 8, 2011

I have modeless dialog. On dialog I have button on which user clicks, when he wants to pick insertion point. Problem is when I exit dialog the command line is still in command GetPoint (doesn't show usual Command.My code at the moment is:

           // this.Visible = false;
            AppServ.Document adoc = AppServ.Application.DocumentManager.MdiActiveDocument;
           AppServ.DocumentLock dl = adoc.LockDocument();
            Editor ed = adoc.Editor;
            using (ed.StartUserInteraction(this))
            {
 [code]....            

View 9 Replies View Related

AutoCAD .NET :: How To Using Modeless Form

Nov 26, 2013

I want to AutoCAD do not lock it's space, when my Form is shown on display. But I have an exception when I use modeless dialog.

public void MyCommand ()
{
//-------------------------------------------------
// Using this code, my program works fine, but locks modal space of AutoCAD
System.Windows.Forms.Application.EnableVisualStyles ();
System.Windows.Forms.Application.Run (new  Form1 ());

  // I want to use this instruction to do not lock modal space
  // Autodesk.AutoCAD.ApplicationServices.Application.ShowModelessDialog (new Form1 ());
  //------------------------------------------------- 
}

If I use modeless dialog I can read and write from acad prompt and create block; BUT I can't create BlockReference. 

I get an exception "eLockViolation" in the next code instructions:

//------------------------------------------------------------------------------------------------------------------------------

public void CreateBlockReference (string strBlockName, Point3d Origin) {
using( Transaction t = db.TransactionManager.StartTransaction () )  {
BlockTable btTable = (BlockTable)t.GetObject (db.BlockTableId, OpenMode.ForRead);  // <--- EXCEPTION

[Code] ..........

View 2 Replies View Related

AutoCAD .NET :: Force Modeless Form To Keep Focus?

Mar 20, 2011

how I could force a modeless form to keep focus.  There is a sample on the ObjectARX docs but I can find anything for Dot Net.

View 3 Replies View Related

AutoCAD .NET :: Break Points Not Stopping Code On Modeless Forms?

Mar 8, 2012

I am using acad 2012, and VS 2010 (C#) on win 7 64 bit.

I made a form, and showing it as modeless via Application.ShowModelessDialog... as recommended by everyone and that works fine.

I have a button that does something, and I set a break point right on the first line of code for its callback.

The button runs fine, but VS is not stopping at the break point.

Is there a different technique required when debugging modeless forms?

[URL]

View 5 Replies View Related

AutoCAD LT :: Create New Drawing Dialog Box?

Feb 14, 2013

When clicking on the new drawing tab, the Create New Drawing Dialog Box does not appear. my only option is to select a template. How do I change this?

View 2 Replies View Related

AutoCAD .NET :: Create Block Without Opening A Dialog Box

Jul 9, 2012

I've written a program with c#.net for selecting objects and creating block without opening a window in autocad. But when I run its dll in autocad, it makes a block including many of the selected objects by me/user in one block.

View 6 Replies View Related

AutoCAD 2010 :: Create New Folder Button In Save As Dialog

Nov 16, 2010

In the save as dialog box, the button for creating a new folder will automatically create a named "new folder" at the bottom of the files list. It does not come up highlighted for naming but can be right-clicked, renamed. If your files list is long you won't even see the new folder created as it does not snap to the folder either. Conversely; I can still right-click, new, folder. This acts as expected which creates folder at the top of files list, highlighted for naming.

View 6 Replies View Related

AutoCAD 2013 :: Can't Save UCS Name In Dialog Box

Aug 11, 2013

In ACAD 2007 when I create a new UCS, the dialog box shows as current an unnamed UCS which I can then rename. In 2014, this doesn't happen - I have to do all that using the command line. Is there some setting to get the dialog box to work?

View 7 Replies View Related

AutoCAD 2010 :: Property Dialog Box

Apr 18, 2013

Just installed AutoCad 2012 and I have the Property Dailog Box open. I anchor it to the left side of the drawing screen and "Lock" all toolbars in place. When I get out and go back into Autocad, the dailog box is still locked, but it is in the middle of the drawing screen.

View 3 Replies View Related

AutoCAD LT :: Select File Dialog Box

Jul 1, 2011

The blue color on the left side of the dialog box is too light and makes it hard to read the white font. How can I change those colors? If they are part of the windows color theme, which element would this be?

View 9 Replies View Related

AutoCAD Inventor :: Print Dialog

Jun 8, 2012

In the Snippet Ilogic examples can be found a code example to pop up the "Save File Dialog":

Dim oFileDlg As inventor.FileDialog = Nothing
InventorVb.Application.CreateFileDialog(oFileDlg)
On Error Resume Next
oFileDlg.ShowOpen()

Code to show the print dialog?

View 1 Replies View Related

AutoCAD VB :: Open File With Dialog Box

Aug 4, 2006

Just thought I would post this because I have been looking for a working VBA file open dialog box solution for awhile. I'm an old autolisped making the jump to VBA and I have seen and read various solutons for the equivalent getfiled autolisp function but I never had much luck with them. This one worked for me it uses the Win API to do the job.

Private Declare Function GetOpenFileName Lib "comdlg32.dll" Alias _
"GetOpenFileNameA" (pOpenfilename As OPENFILENAME) As Long
Private Type OPENFILENAME
lStructSize As Long
hwndOwner As Long

[Code] ....

Make a form and place the following code listed below on a button to call the showopen routine.

Private Sub CommandButton1_Click()
Dim Filter As String
Dim InitialDir As String
Dim DialogTitle As String
Dim OutputStr As String

[Code] ......

View 9 Replies View Related

AutoCAD .NET :: Zoom From Modal Dialog

Dec 28, 2012

I have an app that uses a paletteset.  The paletteset displays a modal dialog on a particular action.  From the modal dialog, the user needs to be able to click a button to zoom to a particular coordinate.  I have it all working, with one problem.  The Zoom doesn't occur until the user closes the modal dialog.  I know this is related to my limited understanding of contexts in AutoCAD.

I've tried calling my Zoom method from the modal dialog, from the parent paletteset, and asynchronously using doc.SendStringToExecute() back to my main commands class, with the same result.  The Zoom occurs after exiting the modal dialog. How I can make the zoom occur while remaining in the modal dialog?

View 9 Replies View Related

AutoCAD .NET :: COM Library Windows Dialog Box

Jan 3, 2014

Is it possible to use modal dialog boxes with vb.net using COM libraries? I have two files one specifies the endpoint of a line in code the other ask for user input for the endpoints of the line.

The program that specifies the endpoints work fine. I can make it modal, modeless, and run it in process as a dll or out of process as an exe file. Although it wants to flash if any program is open hidden behind AutoCAD.The program I ask for user input will run fine out of process as an exe file but I get an error message “AutoCAD main window is invisible”

Imports Autodesk.AutoCAD.Interop.Common
Imports Autodesk.AutoCAD.Interop
Imports Autodesk.AutoCAD.Runtime
Public Class myLINE
    Dim Acad = GetObject(, "AutoCAD.Application")
    Dim ThisDrawing As AcadDocument = Acad.ActiveDocument
    <CommandMethod("runlouver")> _
[code]....

View 9 Replies View Related

AutoCAD Map 3D :: Dialog Minimizing Windows 7

Jun 11, 2012

I am working with and extension to AutoCAD Map 3D 2012 on Windows 32. When a dialog opens it sometimes immediately minimizes and must be restored via the Windows task bar. I have also noticed that the dynamic input command line is visible when the dialog disappears and is present even if the dialog does not disappear. I have shown this in the image below.  This also occurs on Windows 7 64 bit, as well.

 If I set the workstation to windows Basic Theme or turn off dynamic input, this does not occur.

View 4 Replies View Related

AutoCAD .NET :: Loading Modal Dialog

Aug 22, 2012

I'm trying to load a modal dialog, at the first loaded/created drawing. How can i find out when autocad is done with loading to activate the form. I have event handlers for document created but it gets called to early.

View 1 Replies View Related

AutoCAD 2010 :: New Selection Dialog Box?

Feb 14, 2012

What command turns off the annoying "selection dialog box"?  I don't know if it's new or not, but it started showing up this week.  I see the purpose, but don't like it or the fact that autocad makes difficult to turn off a feature after it puts it there without warning.  Attached is a screen shot of it.

View 2 Replies View Related

AutoCAD 2013 :: Startup Dialog Box

Apr 14, 2013

How could I find the Startup dialog box if it doesn't start automatically when I open AutoCad?

View 2 Replies View Related

AutoCAD Inventor :: Add To The IProperties Dialog?

Aug 9, 2012

I need to add a "Gauge" value to show up in the iProperties dialog box under the Project tab, but I don't know how or if I can.

View 9 Replies View Related

AutoCAD LT :: Insert Block By Dialog Box

Apr 4, 2013

I'm trying to insert a block using the "insert dialogue box". However, when I do, if I have the box for "insertion point" unchecked, I get the error "Block Insertion Failed" (picture 1).

If I check that box, I get the error "*Invalid* Block references itself". I have purged the drawing and there are no other blocks in the drawing.

View 9 Replies View Related

AutoCAD Civil 3D :: Layer Dialog Box

Mar 23, 2012

How I got this annoying display at the bottom of my layer dialog box...???...

"All: 197 layers displayed of 197 total layers"

it covers up the slider and the bottom 2 layers in the dialog box so I can not see or edit them...I will try to attach a screen cap to show you what I am talking about...

View 4 Replies View Related

AutoCAD 2013 :: Dialog Box Does Not Display?

Apr 1, 2013

Dialog box does not display when i go to save or save as but it will show when I hit open I have try FILEDIA and thid did not work .

View 3 Replies View Related

AutoCAD .NET :: Dialog Response Time

Jul 14, 2011

I have a dialog with lots graphic items and the response time for refreshing was very slow, sometime 2-3 seconds.  I have re-wrote it so only certain parts update when they are needed,say when a value changes & this has worked, but there is still a very visible lag when re-freshing.

Basically I want to know if there is another less memory consuming process than re-fresh, or can you increase the available memory to the pallet, then dispose of it when completed?  Another way I haven’t though of.

View 1 Replies View Related

AutoCad :: Choose A Template Dialog Box?

Oct 18, 2012

When I start AutoCad, I want it to open to a dialog box that lets me choose from my folder of personal templates. I know that STARTUP = 1 essentially does this, but the interface isn't quite as user-friendly as what I see from clicking NEW with the following settings:

STARTUP = 0
Options>Files>Template Settings>Default Template File Name for QNEW = None

With these settings, AutoCad will still open its own default template: acad.dwt (or acadiso.dwt). My understanding is that renaming these files so AutoCad can't find them will force the application to show the dialog box I want, pointed to the folder I specify in Options>Files>Drawing Template File Location.

If that's so, what is the file path for finding the acad.dwt file in Windows 7?If not, is it possible to get AC to launch to the dialog I want using STARTUP = 0?

View 9 Replies View Related

AutoCAD Architecture :: Don't Open A Dialog Box

Mar 18, 2011

I installed architecture 2011 last night.  When I installed it, it did not remove my 2008 verison.  So all my files are still opening the 2008 verison.  I do not have much space on my hard drive, so if I uninstall 2008, will there be a problem with 2011?

Is there any reason to keep the 2008 version?

Second problem: in 2011, I click on the open button and it does not open a dialog box.  It only gives me a line in the command line. same thing happens when I try to save as.

View 3 Replies View Related

AutoCAD LT :: Block Edit Dialog Box

Feb 16, 2012

Lost the ability to double click on blocks and mtext to bring up the editor box in my drawings. I've tried all settings that i know of and have had zero results.

View 2 Replies View Related

AutoCAD Civil 3D :: Proxy Dialog Box

Apr 26, 2013

When i start up AutoCAD C3D 12, this dialog box is pop up " This drawing was created with a newer version of Civil 3D. All entities created by Civil 3D within the drawing are in a proxy state..............are disabled for this drawing." I just started an AutoCAD, Not open any drawing yet!

How do i turn this message off? (permanently)

P.S. It just happened recently since the IT guy changed some variables on my machine, but no clue what variables he changed?

View 2 Replies View Related

AutoCAD Map 3D :: Random Selection Dialog Box

Sep 15, 2011

I am using 2011 Map3D. Suddenly I am getting a "Selection Dialog Box" ?assist me to disable it? It would be super to get rid of it.

View 2 Replies View Related

AutoCAD Map 3D :: Dim Style Dialog Box Pop Up And Disappear

Mar 6, 2011

I installed 2011 in our workstation together wtih the vba enabler. The designer use 2009 and 2007 and all buttons they need are working fine on those version. when they tried to use the 2011, almost everything is fine but they need to use the dim style and text style. when they try to press the button an error will appear and then updates send some fix which fixed the error but the problem is it just pop up and disappear within seconds.

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved