AutoCAD .NET :: How To Restore A Form In C#

Nov 7, 2012

Visual Lisper trying to migrate to .net! how to restore a form?

I have an "about" project which contains 3 forms.

Form1 is displayed by default when the command is called...it contains two buttons which both close form1 & open form2 or form3. What I would like to happen is that when form2 or form3 is closed, form1 will be restored.

This is the code which defines the command & shows form1:

<code begins>
[CommandMethod("EzAbout")]
public void EzAbout()
{
Form1tvf1;
tvf1 = newForm1();
Autodesk.AutoCAD.ApplicationServices.Application.ShowModelessDialog(null, tvf1, false);
}
<code ends>

This is the code from the button on form1:

<code begins>
private void button1_Click_1(object sender, EventArgs e)
{
this.Close();
Form2 tvf2;
tvf2 = new Form2();
Autodesk.AutoCAD.ApplicationServices.Application.ShowModelessDialog(null, tvf2, false);
}
<code ends>

This is the code behind the close button on form2...trying to restore form1 (it closes form2 but does not restore form1)

<code begins>
private void closeButton_Click(object sender, EventArgs e)
{
this.Close();
Form1 tvf1;
tvf1 = new Form1();
Autodesk.AutoCAD.ApplicationServices.Application.ShowModelessDialog(null, tvf1, false);
}
<code ends>

View 6 Replies


ADVERTISEMENT

AutoCAD .NET :: Minimize And Restore Custom Form In Window

Mar 22, 2013

I have a customize form to use in AutoCAD. If I minimize the form, I can not see it anymore in the AutoCAD application tray. I want to minimize my form and later restore it after editing in .dwg file.

How can I do that?

View 4 Replies View Related

Photoshop Elements :: 10 Will Not Restore Catalogs From Ext Hard Dive After Full System Restore?

Aug 27, 2012

catalogs, I got error message about getting current drivers for hard drive. My hard drive is Western Digital which is supported by Windows 7.

View 2 Replies View Related

Photoshop Elements :: Couldn't Restore File In Restore Catalog

Oct 8, 2012

I have a new computer and want to move the databse catalog over. I backed up in PSE 9 to an external hard drive. I connected to HD to the new computer and tried a resotre catalog. I chose "New Location" since I was going from XP to Windows 7 and was unsure if there would be a conflict with file locations. I also chose "Restore Original Floder Strucure". Very quickly I recieve an error message "Could not restor file .xml". I have run Restore Catalog several times and each time a DIFFERENT FILE receives the error message. I then disabled Norton Anti Virus Auto-Protect. I then disabled several programs running in the background. Same problem. I then copied the Backup Catalog to the new computer and tried to Restore it from there. Same Problem. I have now run a Repair Catalog on the original file. PSE states there is no error. I want to purchas PSE 11, but wanted to install/restore the database with the same version 9 first.

View 11 Replies View Related

InDesign :: Submit Form Button Doesn't Work In Interactive Form Opened In Reader Created In 6

Oct 8, 2012

One of the features I was really looking forward to  in CS6 was creating fillable forms with ONE application. I created a form following the step by step instructions in classroom in  a book for CS6.  When I opened the exported form in Reader X, I get a "This operation is not permitted" error. I opened the completed "end" document in the lesson to make sure  I didn't commit an error, and I got the same message when exporting. I have looked for places in menus to modify security restrictions and I can't find any. I installed the updates and that didn't solve the issue.
 
I saw one solution posted which is to open the document in Acrobat, then do a "save as" option.   Is there anything we can do that doesn't involve buying additional software? If this is not the case, then Adobe seriously needs to change its training and advertising about this functionality.

View 11 Replies View Related

AutoCAD Inventor :: Form Picture - Parameter Driven Picture On A Form

Apr 10, 2013

I am working on a form (global) and have added a picture with a parameter and a picture folder underneath. So that the picture displayed on my form will change depending on the parameter value.Here comes the trick. Only text parameters can be used!On the form editor only 'Text parameter' can be selected to drive the picture selection. I actually need an integer, so that i can use my User/Excel parameters from Inventor.

I can work this around with an iLogic rule to equal the value of my string Picture Parameter with the relevant integer Inventor parameter, but the rules need to be run before the pic and the form updates (by pressing the 'Apply' button at the bottom of the form and then the assy updates too. So this takes a couple of minutes)... whereas if it was an option on the form editor then the update would be instant without waiting for everything to update...

Is there a particular reason why the Picture Parameter only can be a text parameter?

View 2 Replies View Related

CorelDRAW Graphics Suite X6 :: Apply Color To Form Command Button Loop Form Controls And Save And Get The Color From Registry

Sep 25, 2012

In this lesson we will consolidate code to prevent code reuse. Follow along as we demonstrate by doing the following and more:

Apply a color to a form command button, loop form controls, and save and get the color from registry

Part 2 of  7

cs_setInnerHtml('video_43f4e134-ee93-489d-ba2f-80042d243821','');

[URL]

View 2 Replies View Related

AutoCAD .NET :: Save And Restore UCS

Mar 8, 2011

vb.net developer's guide and online for information about transforming the UCS.I'd like to:

1:  Save the user's current UCS,

2:  Change to the World UCS (that's easy)

2:  Do things

3: Set the UCS back to the user's original UCS

If not I may have to learn more about matrix operations than I really wanted to

View 8 Replies View Related

AutoCad :: How To Restore Home Tab

Mar 20, 2013

I have lost my "Home Tab" at the top of my screen and cannot get it back up. the tab that offers the Home, Insert, Annotate, Render, View, Manage, etc.

I have gone through the suggested "restore the default home view" and nothing happens.

View 1 Replies View Related

AutoCAD Inventor :: How To Restore Visibility

Mar 30, 2011

For some of my asemblies I have had to turn visibility off in some parts.

How do I turn it back on?

View 5 Replies View Related

AutoCAD Map 3D :: Restore Image Without Having To Reinsert It

May 18, 2011

I worked on a project a while back and loaded a sid into the drawing coord correct.  I now have opened that drawing again and I get big letters with the image files path.  I have tried to restore it but cannot get it back to the same coordinates.  Is there a way I can restore the image without having to reinsert it?

View 6 Replies View Related

AutoCad :: Backup And Restore Variable Sys Cad?

Jun 4, 2013

How we can backup and restore variable sys cad?

View 8 Replies View Related

AutoCad :: How To Restore Commands To The Same Place

Sep 8, 2012

How can I restore my commands to the same place? Look like they are on the sides of the screen and they are shrinking.

View 2 Replies View Related

AutoCad :: Restore Standard Menu Bar

Jan 17, 2014

I'm in AutoCAD Architecture 2010. I've lost all menubars and need to reload. I was perfectly happy with the 2010 ribbon. When I search other forums it seems the answers are all geared toward restoring the older format of menubars because people are unhappy with the 2010 ribbon. That does not apply to me. I just want to restore the default 2010 ribbon menu bar.

I've tried the "Menu bar" command and have not found the original 2010 default menu bar. Maybe it's there and I'm not figuring it out. Steer me to a path to reset and re-establish the default 2010 setup?

I prefer to not have to uninstall and re-install the program to get back to the default settings if I don't have to.

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 LT :: 2007 Won't Load After System Restore?

Aug 3, 2012

I kept getting a fatal error when I tried to open the layers manager and I found a discussion board saying I had to do a system restore to fix the problem.  Well I did a system restore and now autocad won't even load.  I click on the icon and the hour glass goes but then it disappers and nothing happens.  I have windows 7 if that makes a difference.  I have been using 2007 lt for a few months now and everything worked fine.

View 4 Replies View Related

AutoCAD Inventor :: Restore Overwritten Files

Nov 25, 2011

I have lost several days of work when Vault has overwritten my local files, about 5 iam and 20 ipt-files. I think it started with a crash and then when I reopened my main assembly it was 13 days old.

It seems that I have forgot to check in my local files to Vault since that date. I am not sure how it happened but I suppose I have answered the question (about replacing local files by older versions from Vault) wrong. Is there any possibility to restore my overwritten files? 

View 1 Replies View Related

AutoCAD 2010 :: Restore Ribbon To Horizontal

Nov 9, 2012

OK, something I did completely displaced my ribbon from the default horizontal location to either a floating or dockable vertical layout.  It's probably staring me right in the face but how can I change it back?

View 2 Replies View Related

AutoCAD 2013 :: Restore Original Workspaces

Apr 6, 2012

I tried to create a new workspace, and it was sort of working where I could switch between my custom workspace and the original 2 or 3 Autocad workspaces.  Then I think I loaded a menu and the other (original work spaces) have disapeared.  How to restore these without doing a re-install?

View 2 Replies View Related

AutoCAD Architecture :: How To Restore Classic Workspace

Aug 28, 2012

I just installed Autocad Architecture 2013 only to learn that Autodesk once again is hard at work making our lives difficult. For some reason they seem to want us ALL to use the ribbon. The ribbon in my opinion is HORRIBLE. I MUCH prefer the classic workspace since I do not use many toolbars and I key in the vast majority of my commands. As such, I get rid of the ribbon because it takes up too much space considering the fact that I only use a handful of buttons from the ribbon. But Autodesk has thrown a bunch of obstacles in my way.

1. Type "ribbonclose" - this closes the ribbon.

2. Type "cui" - this bring up the Customize User Interface dialogue box.

3. Right click on workspaces. Enter a new name for your new workspace.

4. (optional) Right click on toolbars to make your own. Then drag and drop commands from below into your new toolbar.You may also notice that you no longer have toolbars, soooo..

5. Type "menuload" - things brings up the Load/Unload Customizations dialogue box.

6. Click "Browse".

7. Select the first file ending in ".cuix". Click "Open". Click "Load". If you get an error message don't worry.

8. Repeat step 7 for each and every file ending in ".cuix".

Now you have tool bars and menus. However, the Express menu may STILL not work.

9. Then visit this webpage:URL.... to get the Express menu working.

10. Close autocad. and re-open autocad.

11. Set up your screen the way you like it.

12. Either click on the workspace switching icon on the lower right portion of your screen or type "workspace" and select "Save Current As".

13. Save your workspace with whatever name you like.

View 1 Replies View Related

AutoCad :: Restore Full Layers Window

Apr 20, 2012

Had the Layers window open adding a layer. I don't know what I did, but now All that is showing is a 1/4 inch window along the top that shows All 57 layers displayed of 57 layer. What can I do to restore the full layers window.

View 6 Replies View Related

AutoCad :: UCS World Does Not Restore To Original Coordinates

Jun 18, 2012

I want to move our firm to using a UCS that aligns with the viewport.

However my hesitation has always been that World does not seem to restore to the original coordinates.

We do survey drafting and the map grid coordinates are critical and we drop in new survey data over the existing on a regular basis.

I tested it again last week but still I cannot insert new data into the same position even after restoring to World UCS. It is consistently about 1.5 units offset from the correct position.

Am I doing something wrong? Should USC World set it back the identical original coordinates such that I could confidently paste with a 0,0 base point and have geometry by in the correct position.

View 1 Replies View Related

AutoCad 3D :: Missing Integer In Restore File

Jun 1, 2011

I'm trying to import a .SAT file into ACAD 2000. I'm using the ACISIN command. Usually I don't have any problems with this. When I find a .SAT file that is too recent, I use HOOPS 3D Part Viewer v13.15 for ACIS to save down the file.

Lately I've been trying to import some Colson caster CAD files from 3dcontent central and I have a problem when I get to the ACISIN portion of my procedure. I get this message

"Modeling Operation Error:
Missing integer in restore file.
Unable to read the ACIS file"

The file looks fine in HOOPS. I'm not sure why it's not coming into ACAD. I used to not have this problem but I'm having it a lot lately.

View 0 Replies View Related

AutoCAD .NET :: List Dot Paired To Form

Apr 18, 2012

I try to make a form with à list dot paired:

(("mscorlib.dll" . "2.0.0.0") ("AcdbMgd.dll" . "18.0.0.0"))

A simple form with 2 column and a windows not fix, expandable !

My problem how to transfert list to .net (VB) ?

View 6 Replies View Related

AutoCAD Inventor :: Way To Get Columns In Form

Jul 27, 2012

Is there a way to get columns in form? I would like to put

Hole F Type { List the types}  Hole F Location {input box}
Hole N Type { List the types}  Hole N Location {input box}
Hole G Type { List the types}  Hole G Location {input box}

If not this form will be off the monitor.

View 9 Replies View Related

AutoCAD .NET :: Changes To Form Not Visible While Debugging?

May 6, 2013

I'm using visual studio 2010 and autocad 2012 x64. When I make (visual) changes to a form in the editor between debugging, for example the width of the form, the changes aren't visible on next debugging, it's still the same width as it was before. Same thing for font size, when changed the changes are not showing when debugging again. Almost seems like autocad remebers the previous layout of the form. A new control added between debugging shows up fine.

View 2 Replies View Related

AutoCAD Inventor :: Get Value From A Control At VBA Form

Apr 4, 2013

I'm trying to enter a model parameter value with a VBA form, but I don't know which type of control to use neither how to write the code. I want to enter a number or a value with any control and use this value for modify a model parameter.

I have a simple code with a line:

oModelParams.Item("z").Value = 25

I want to make something like:

assuming that "TextBox1.Value" is a numeric value obtained with a control at the form

oModelParams.Item("z").Value = "TextBox1.Value"

View 1 Replies View Related

AutoCAD .NET :: How To Make Codes Form VBA

Aug 3, 2011

I am new to VB.net and I just wondering if it is possible to use some codes that we use in VBA into VB.net , things like this .
 
Public Sub AddTheCircle() Dim p(0 To 2) As Double, r As Double p(0) = 10: p(1) = 50: p(2) = 0 r = 150 ThisDrawing.ModelSpace.AddCircle p, rEnd Sub

If not , so how to start with VB.net parallel to Autocad ?

View 7 Replies View Related

AutoCAD .NET :: Get Dimension In Custom Form

Feb 22, 2012

Am into Customization of AutoCAD and the project which I am doing is almost completed. There is a small problem. When i double click on Line Dimension i should get a form to change together Line and Dimension, like we have in Inventor. 

Am using C#.net 2010.

View 1 Replies View Related

AutoCAD VB :: Why Can't Zoom Or Pan When Form Is Active

Dec 20, 2012

When an macro of a Lisp is active I can zoom and pan in a drawing. I press Escape to quit.Why can't I do that when a form is active in vba? Is that only because Showmodal is on?

View 1 Replies View Related

AutoCAD Inventor :: Get A Form Onto The Ribbon?

Sep 26, 2013

how I can get a form onto the ribbon or create a custom Icon to run it.

I have read up on afew forums that VB needs to be used in order to achive this but I want to double check.

I dont have VB but if it is the only way to get this to work I will download it.

View 1 Replies View Related







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