AutoCAD Inventor :: How To Catch Undo

Apr 27, 2012

which event is fired if a user clicks on "Undo"? Document.OnChange doesn't work, OnTerminateCommand is also not fired.

View 2 Replies


ADVERTISEMENT

AutoCAD Inventor :: Catch All Unhandled Exceptions

Feb 15, 2009

I want for my add-in to catch all unhadled exceptions and show them in a message box. This is required as Inventor crashes at all unhandled exception, and it is kind of hard and bad looking to put try{}catch(Exception ex){ } everywhere.

I tried (like in my usual WIndows Forms applications) to put:

System.Windows.Forms.Application.ThreadException += new ThreadExceptionEventHandler(OnThreadException);

AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(CurrentDomain_UnhandledException);

but this seems not to have any effect, the exceptions are not being caught.

View 1 Replies View Related

AutoCAD Civil 3D :: Undo Without Zoom As Part Of Undo?

Apr 27, 2012

Is there a way to undo without zoom as part of the undo?

Civil 3D 2013
Windows 7 64-bit
Inteel 2.40 GHz 8 GB RAM
Dell T7600

View 4 Replies View Related

AutoCAD .NET :: How Undo Marks Are Added To Undo Stack

Oct 20, 2011

I have a problem understanding how undo marks are added to the undo stack.In the code below a fan of lines are draw in a random location.If you run MTest a few times, the AutoCAD Undo command will remove the fans one at a time.

If you run MMulti to draw 10 fans, the AutoCAD Undo command will remove all the fans in a single step.I want to be able to remove the fans one at a time.I thought that  a  StartTransaction / Commit  pair would act as markers for the undo stack, but this isn't working.

Tested on AutoCAD 2010  VS 2008 
<CommandMethod("MMult")> _
  Sub testmult()
        Dim i As Integer
        For i = 1 To 10
            Call testdraw()
        Next
  End Sub
[code]....

View 3 Replies View Related

Paint.NET :: Fast-painting Using Undo Stack And Saving Undo History

Aug 19, 2012

I think it'd be so cool to be able to replay your entire undo history of a picture, so you can see and show others how you proceeded on a picture you made. That way, it's never necessary to capture screen video for like 10 hours and stuff..

So first you'd need to add an option to save the undo history (so that you always keep the history from when you started). Then you'd need an option to playback the undo history.

View 3 Replies View Related

AutoCAD 2013 :: How To Get Around Catch 22

May 29, 2013

Yet another example of a faulty installation of 2013 living under the canopy of Mechanical Desktop.  I have the Product Design Suite and run 2013 as a sub-set of Mechanical Desktop.  It has always been a bit squirrely and certainly not like a stand-alone copy..

Today when I opened it up, a window popped up telling me that there was a new release available. So I clicked on it and up popped another window which was supposed to automatically download and install Rev. 2.  Nope - it just sat there doing nothing.

Not to be thwarted, I went to the Autodesk web site and picked downloads and AutoCAD 2013 for 64 bit and downloaded the link.  When I invoked that I got a message telling me that it could not find the application on my computer.

Who creates this less than robust software?how to get around the Catch 22??

The hardware is a Lenovo S-30 with Windows 7

View 5 Replies View Related

AutoCAD .NET :: Linetype - How To Catch Errors

Feb 8, 2012

When I load the linetype file '' Load the Center Linetype acCurDb.LoadLineTypeFile(sLineTypeName, gstrc_SFR_LineType_FullFileName)

How do I detect if the linetype is in the Linetype file? How do I do my error checking here in the ACAD way? Currently I just search the acad.lin or sfr.lin Text File to see if the LineType Exists. This works.

But I was curious how would you check the linetype file via the Acad API,to see if the linetype definition name exists in the file? 

View 2 Replies View Related

AutoCAD Inventor :: Undo Actions Of Subroutine

May 15, 2012

I have a function which removes the filepath from an IDW drawing which is handy when exporting to other formats. Currently it's just used in a batch script so the drawings close without being saved and there is no problem. Now I'm trying to make another macro which will just export the currently open drawing. So I have to undo removing the file path so the drawing is back to it's original state.

Below is the code for removing the filepath from the titlebar. I tried to do the reverse and put <FILENAME AND PATH> back in, however it appears as normal text. Since the title block uses "variables" which update with other properties and I don't wish to lose that adaptibility. 
 
Function Remove_FilePath()On Error GoTo ErrMsgDim oDrawDoc As DrawingDocumentSet oDrawDoc = ThisApplication.ActiveDocument' Create the new title block defintion.Dim oTitleBlockDef As TitleBlockDefinitionSet oTitleBlockDef = oDrawDoc.ActiveSheet.TitleBlock.DefinitionDim oSketch As DrawingSketchCall oTitleBlockDef.Edit(oSketch)Dim count As Integercount = 1While oSketch.TextBoxes.Item(count).Text <> vbNullString If oSketch.TextBoxes.Item(count).Text = "<FILENAME AND PATH>" Then oSketch.TextBoxes.Item(count).Text = " " End If count = count + 1WendErrMsg:Call oTitleBlockDef.ExitEditEnd Function
 
So I either need a way to undo the actions of the subroutine or know how to insert the "variable" which references the file's properties.

View 8 Replies View Related

AutoCAD Inventor :: Undo File Size

Aug 15, 2011

I try to do animation rendering by setting up the animation and letting run overnight sometimes.  I often get the pop up window telling me that "the "undo" file size has reached its limit - Do I want to increase the file size?"  This pauses the rendering until I hit the OK button.  How do I get that to stop?

View 3 Replies View Related

AutoCAD .NET :: Catch Drawing Modify Event

Jul 17, 2013

I want to catch drawing modify event, that means if user start to edit current document I want to give a message to user.

View 3 Replies View Related

AutoCAD Inventor :: Undo Selected Element One At The Time?

Nov 29, 2011

Is there a way how I can unselect element one at the time?

Example if I do fillets and I select wrong edge and I want to unselect only that because I have selected example twenty edges already and dont wont to throw away all work what I have already done.

View 2 Replies View Related

AutoCAD Inventor :: Can't Open 2011 Undo Folder Message

Feb 28, 2011

when i try to open my 2011 inventor program which ive been running for months now i get an error message. and the program refuses to open. "Error in Inventor Undo Folder: Please Make Correction" any ways to fix this so i can get back to work. and i should add that i am not a computer genius im a furniture designer.

View 9 Replies View Related

AutoCAD Civil 3D :: Catch Basin Inverts Shown Incorrectly?

Jun 14, 2012

below is a portion of a profile i am working that shows the bottom of the catch basins not at the correct elevation the correct elevation is at the pipe invert the dashed line by checking the structure properties the cb are at the inverts are correct but the actual drawing is not shown correctly.

View 9 Replies View Related

AutoCAD Civil 3D :: Actual Catch Basin Part Size

Mar 12, 2012

When i am laying out a storm sewer pipe network  with structure sizes that vary i notice no matter what the structure size it always appears the same size in plan view. How to fix this or is this one of those things that its always shown the same size for all and only different in profile view.

View 2 Replies View Related

AutoCAD Inventor :: Render Animations - Undo File Size Exceeded

Nov 5, 2012

I am trying to render animations and I am still getting the "Undo file size exceeded" message in the middle of my animation. I have tried every option I could find to get it to stop but it keeps happening. Some of the animations take over an hour and I don't want to sit in front of the computer waiting to click ok to increase the file size.

I've maxed out the size in the settings at 4096K but it still gives me the message at 2048 and 3072.

View 9 Replies View Related

AutoCAD .NET :: Catch Message Or Event / When Begin To Edit Mtext Entity

Sep 12, 2012

Is there anyway I can catch the message or event when I begin to edit Mtext entity?Because I want to do something when the mtext began to input.

View 7 Replies View Related

AutoCAD .NET :: Catch Event Of Paletteset While Changing Container Inside A Palette

Sep 3, 2013

How can I catch the event when I change the container inside a palette?

View 3 Replies View Related

AutoCAD Inventor :: 2012 Sp2 Takes Long Time To Execute Undo Or Redo Command

Jan 15, 2013

I am running Inventor 2012 sp2.

Even with a simple IPT that only has a handfull of features, at times it takes a long time (3-5 minutes, sometimes longer) for Inventor to execute a undo or redo command.

Undo file size setting in Application options is set at 1MB (which is teh same setting I used in previous versions).

View 9 Replies View Related

AutoCAD Civil 3D :: Test The Height Of Fill Slope Relative To Daylight Catch Point?

Sep 23, 2013

This seems like something that should be really easy but for the life of me I can't figure it out. I even started looking at using the Subassembly composer to create a custom SA but that seems like a ton of work so something that would seem to be a common problem.

I need to provide a v-ditch with 2:1 side slopes at the toe of a 2:1 fill slope. The flow line of the ditch should be 2 ft below the daylight point of the roadway pavement section.  

My problem is that the conditional subassembly seems to evaluate the height of fill directly beneath the attachment point of the conditional SA (pavement section daylight point in my case – “Daylight_Sub” Point code).  Instead I need it to evaluate the difference in elevation between the catch point of a 2:1 daylight fill slope and the conditional SA attachment point (Daylight_sub). If that difference is less than 2 feet, I need to provide the ditch, otherwise I can just use the daylight slope for the ditch foreslope and the existing surface for the backslope.

how to do this? Maybeits as easy as using a predefined daylight subassembly that I'm overlooking?

Here’s my current assembly attempt: 

And the resulting behavior. It is solving the 2nd fill condition when I would like it to solve the 1st fill condition:

View 5 Replies View Related

Illustrator Scripting :: Adding Spot Color Using JavaScript - TRY CATCH Not Working

Mar 6, 2014

I am trying to add spot color in illustrator using javascript, TRY CATCH is not woking, it is adding again and again same color value with name of "spot color 1" and "spot color 2" ... 
 
try {
var myDoc = app.activeDocument;
var spotName = "FINISHING";
var spot = myDoc.spots.add();
 
[Code] .......

View 1 Replies View Related

AutoCAD Inventor :: Isolate And Undo Isolate Occurrence

Aug 13, 2012

I don't find a way to isolate and undo isolate an occurrence in Assembly, looking for the right code in VB.

View 4 Replies View Related

AutoCAD Civil 3D :: Undo Has Been Disabled?

May 9, 2012

Undo has been disabled in order to prevent undo file overflow...

Is there anyway to increase the Undo capabilities.

View 9 Replies View Related

AutoCAD .NET :: Disable Undo For Certain Operations?

Mar 16, 2010

Is posible to disable undo for certain operations?

I want to disable undo for some for some transactions. if posible it...

View 8 Replies View Related

AutoCAD 2010 :: Undo Without Zoom Or Pan

Aug 22, 2011

Is it possible to use undo in AutoCAD without zoom & pan?

View 9 Replies View Related

AutoCad :: Settings To Not Undo Zooming?

May 28, 2011

Is it necessary to have AutoCAD remember the "zooms" when you hit "undo"? Is there a setting that will allow AutoCAd to not undo "zooms" when I hit "undo"?

View 4 Replies View Related

AutoCAD 2013 :: Undo Constantly Re-enabling?

Jun 26, 2012

I'm currently running AutoCAD Electrical 2013 and every time I open a new drawing my undo is automatically disabled. Sometimes even changing from sheet to sheet in a project will result in my undo command being disabled. When I use the UNDOCTL command I seem to default to 48 and when I use UNDO to re-enable it I select the "All" option which gives me a 53 back for UNDOCTL, meaning that undo has been re-enabled.

View 9 Replies View Related

AutoCAD 2013 :: Pan And Zoom As Options In UNDO?

Nov 22, 2013

In AutoCAD 2013/14, there is finally the option for removing Pan and Zoom from the UNDO list?

That would be like the invention of the wheel. For me it's a Buy/Don't buy option.

View 7 Replies View Related

AutoCAD Civil 3D :: UNDO Message Command

Oct 29, 2012

I got the first attached message regarding UNDO command which I ignored. The second attached message then came and my UNDO command was frozen. I lost a lot of work done after I have shut down and restarted my computer.

Who knows what I should have done after the first or the second message?

View 1 Replies View Related

AutoCAD Civil 3D :: UNDO Group Of Commands

Apr 29, 2013

Civil 3D 2013 on Windows 7 64-bit:

Cannot use UNDO on command line because I have to enter the command many, many times to ever undo anything.

I therefore use the UNDO pull-down in the quick access toolbar; however, a few simple zooms and/or pans using the mouse wheel results in many, many (it seems like hundreds of them) "Group of Commands" items.  I have to work my way back through (that is highlighting) many of these to ever get back far enough to undo something simple like an erase of an object.  It works like this even if the erase (or whatever) was the last command issued--besides zooming and panning.

The mouse wheel zooming and panning seems to be what is adding all of the "group of commands" listings in the undo list.  I must say this seems like a terrible bug in the software to me.

Combine zoom and pan IS checked under user preferences of options.

View 9 Replies View Related

AutoCAD 2013 :: Undo After Save And Close?

Feb 7, 2013

Since AutoCAD preserves the entire database list of commands used on a drawing from the beginning, is it possible to "back up," like using undo, after a drawing is saved and closed? Is there a way to come back the next day and start undoing the previous day's work?

View 4 Replies View Related

AutoCAD .NET :: How To Group Actions Together In Undo Marks

Apr 23, 2011

how to group actions together in undo marks. It's been asked before but sone time back and doesn't seem like it's been answered.

In VBA it was done using StartUndoMark and EndUndoMark

I have multiple transactions occuring within a procedure. ADDTEXT is one procedure that starts and commits a transaction.

All transactions  all grouped under a single undo method after the procedure is complete. 

View 1 Replies View Related







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