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


ADVERTISEMENT

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

AutoCAD Visual LISP / AutoLISP :: Return To Calling Function After Trapping Error In Subroutine

Mar 13, 2012

I've got a subroutine that gets the centroid of a closed polygon (lwpoly).  It appears to fail if the polygon has any zero length line segments.  I've added a trap that catches the error and "highlights" the offending polygon, but it stops there and does not return to the main function that called the subroutine.  Is there a way to get back to the main function from the trap?

Here's the subroutine (original function by _gile (Autodesk LISP Forum 9-18-2006):

(defun return-centroid (lwpoly space / obj Region Centroid)
(setq *error* trap1)
(setq obj (vlax-ename->vla-object lwpoly))
(setq Region (vlax-invoke space 'addRegion (list obj)))
(setq Centroid (trans (vlax-get (car Region) 'Centroid) 1 0))
(vla-delete (car Region))

[code]....

View 2 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 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 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 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 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 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 Inventor :: Create Automatic Constraint Actions

Jul 17, 2013

I want to create some universal bricks creations. These bricks have studs which fit into another brick. To constraint them I need to do following actions:

- click place constraint

- Assembly >> Insert >> opposed

- Offset 0,35mm.

I would like to make above into 1 action, so just click to add this action, then select the 2 faces to constrain.

View 3 Replies View Related

AutoCAD Inventor :: Weight Takeoffs And RISA 3D Actions

Jun 7, 2012

Guide me through weight takeoffs and RISA 3D type actions in Inventor? My company is currently using AutoCAD to make drawings, Inventor to make models, an in-house analysis program (for weights, moments, loads, modulus of elasticity, and yield strength) as well as RISA 3D for final design. I need to streamline this process, and I know Inventor can do it all.

View 3 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 Inventor :: Suddenly Taking Too Long To Perform Actions

Sep 20, 2013

I am working with Inventor 2013 Professional. For some reason, after a crash last night, Inventor takes anywhere from five to twenty seconds to perform simple tasks. Things like Constraints, geometry projection, and saving are taking way too long. This is all of a sudden.

This is a simple project consisting of 10 simple parts.

View 5 Replies View Related

Photoshop :: Actions Stopped Working After Downloading More Actions

Aug 31, 2004

I downloaded a couple of actions from the web to my actions palette and they worked fine, but then I got greedy and downloaded a few more and that’s when things went south. Now none of the actions work - by not working I mean when I mouse over the Play Selection icon at the bottom of the action palette I get that little circle with a line through it. This happens with the PS default actions as well (I also get the circle on the Stop Playing/Recording and Begin Recording icons).

Somewhere in the following is probably what messed things up.

I downloaded actions to my computer in zip files. Copied them over to the actions folder (or somewhere) and unzipped them. I went back to the actions palette and hit “load actions” and loaded them. On the second set of actions that I downloaded I remember thinking “why am I copying and pasting these files - I bet I should cut and paste them, so I did and that may have been the start of the great crumble of 2004. PhotoShop help says: (under Saving and loading actions) “Actions are automatically saved the the Actions Palette folder in PS7.0 Settings folder. If this file is lost or removed, the actions you created are lost”.

I have searched for the settings folder and couldn’t find it, but the actions still show up on the actions palette - they just don’t run.

I’m a little fuzzy on the details on the above steps. In fact, I probably did something different on each download.

one more thing, I reloaded PhotoShop, but still nothing.

View 9 Replies View Related

AutoCAD Inventor :: How To Control Number Of Side Actions When Designing Multi Impression Tools

Dec 3, 2013

I have a question for all the mold designers out there! How do you control the number of side actions when designing multi impression tools?

I recently completed a job for a customer where the requirement was to have a 2 impression tool with one side action to control both of the impressions. I found that if you pattern a part within the mold design environment and then apply a side action, the side actions would be copied to each of the patterned parts. I have created a test part to try and illustrate this (which is way out of size and proportion!):- Even if I combine the inserts, I still get the same effect.

View 2 Replies View Related

Photoshop :: How To View All Actions In Actions Panel

Nov 24, 2013

My computer crashed and I removed all apps and reinstalled so now none of my actions appear. However I do have a backup file of all of them and want to reinstall but before when I was using cs6 ( Im assuming same thing as CC as it was all on the subscription plan ) I would click actions then the right arrows and it would bring me a big screen of all the actions ( even the ones that were just preloaded in ps ) and it was a big box with all the actions and some options to record etc...Now that box isn't there and it's just a single column drop down menu.

View 1 Replies View Related

Photoshop :: Actions: Where I'm Putting My Actions

Nov 17, 2006

I like to put my actions somewhere special on my hardrive, not in apps folder.

Now, in past, when I saved actions CS2 would "remember" where this folder was, making real easy to save.

Lately, it keep defaulting to save as in the app folder-- even though I did navigate to my special area on last save as.

View 9 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 :: Exclude Zooming From UNDO Function

Jan 18, 2005

Is it possible to exclude zooming from the UNDO function? Going through undos is mostly pretty annoying "back-worth"-jumping, when working with a scroll mouse.

edit: Forgot to mention that I'm currently using AutoCAD LT 2000i. And upgrading to LT 2005 in very near future.

View 9 Replies View Related

AutoCad :: CTRL+Z Has Stopped Working As Undo

Mar 22, 2012

I'm currently using Civil 3D 2012, and all of a sudden CTRL+Z has stopped working as UNDO. It does nothing. I've found this issue in lots of other outdated forum posts, but none seem to relate to Civil 3D 2012. I went into CUI to see if the shortcut was somehow changed, but the UNDO command still points to CTRL+Z as its shortcut.

View 7 Replies View Related







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