AutoCAD .NET :: Roll Back Variable Within Undo Command Outside Of Transaction?
Mar 10, 2012
I need to be able to roll back my variables if user apply an UNDO. Let's say.
Myinteger =1
Startstransaction
........
trans commint
Myinteger=2
Startstransaction
.......
trans commint
Myinteger=3
if user does undo 2 times the Variable Myinteger keep the value 3 . I want it back to 1. How?
View 6 Replies
ADVERTISEMENT
Apr 12, 2012
I've installed 3ds Max Design 2013.
I don't like small undo/redo window in quick access toolbar. So I always use 'max2009' style toolbar in UI customization.
but in 2013version, there are all dropdown icons are broken
So I changed to Default UI and changed again just color to 2009 style color.
but I cannot roll back this undo/redo step window to 2009 style.
I tried add 'undo scene operation' but it doesn't shows step windows.
View 2 Replies
View Related
Jan 27, 2012
When I am placing a roll-down shutter family in the same wall and same place as a transaction window family that is the same size gives me an error stating the family is not cutting anything and has to be deleted. How do other people do this?
View 1 Replies
View Related
Dec 12, 2005
im a noob at photoshop, i just started a few days ago. (use it to texture for 3d stuff) and im getting a few problems with it.
the main problem is that none of the command keys are working (stuff like Ctrl + Z for back and Ctrl + Y for redo) also some other commands are not working. Does anyone know whats going on?
View 5 Replies
View Related
Jul 23, 2007
I get the following message when I try to update a view on a drawing. Cannot coalesce given transaction with a previous identified transaction. Some times it shows up other times everything works out perfectly fine.
View 7 Replies
View Related
Aug 15, 2012
Transactions -- Can you commit a Transaction within a Transaction without any problems? I have one transaction that cycles through all objects in drawing..
I have another transaction that purges all purgable objects. Can I call the Purge Function if I've already started a transaction? What's the proper protocol here?
'Purge Database Dim count As Integer = PurgeDatabase(DatabaseIn) Debug.Print("Number of Items Purged: " & count) 'Level 1 Start(Transaction/Drawing Database)----------------------------------------------- Using myTrans As Transaction = DatabaseIn.TransactionManager.StartTransaction 'Read Drawing Database
[Code] .........
View 1 Replies
View Related
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
Apr 27, 2012
why Undo might disable DocumentCollection reactors?
It has something to do with me undoing the annotation scale as when I remove the line
db.Cannoscale = tstAnnoScale
The problem doesn't occur.
View 3 Replies
View Related
Sep 20, 2011
is there a way to not include zoom features in the undo command.
for instance, if i delete something and than zoom out, i have to undo multiple times to complete the undo delete.
I want to completely eliminate zoom featues from the undo command.
View 9 Replies
View Related
Feb 27, 2013
I used to export layers by deleteing the ones I didn't want, then exporting as an illustrator file, then undoing all the layer deletions.
Recently I had to switch up so that I call another plugin which inserts information into the file I'm working on. Then that plugin sends control back to the original to do all the ai file exporting I mentioned above.
Somehow after I get controll back I cannot undo the layer deletions. Does it have something to do with the "nested plugins" notes in the contexts sections of the undo documentation.
I have to confess I don't fully understand these "contexts". Also if there's another way to export a layer of a file other than deleting all the other ones.
View 2 Replies
View Related
Dec 11, 2012
in this command how would you put the Undo option on there erase the last line and if you want to keep eraseing the lines
(defun c:gls ();keeps drawing guide lines at any angle
(setq an (getangle "
Pick an Angle:"))
(foreach pt '(a)
(while (set pt (getpoint "
[Code] .....
View 9 Replies
View Related
Jun 12, 2013
Undo Command still turning off (disabled) constantly even after dumping the temp folder, and the turn off, turn on solution does not seem to work either.
Any solutions to this nagging issue other than re-install?
View 2 Replies
View Related
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
Feb 7, 2013
Somehow, I manage to turn of one variable that display errors on command line.
For example:
(seq a 6)
suppose to return, on command line, something like:
error no function definition: SEQ
View 9 Replies
View Related
Mar 12, 2012
I am trying to shorten my code by using the variable as the command name. Is that possible to do?
;; instead of this(cond ((eq USER_INPUT_ANSWER "blk-cdtree-01-06")(C:blk-cdtree-01-06)) ((eq USER_INPUT_ANSWER "blk-cdtree-01-08")(C:blk-cdtree-01-08)) ((eq USER_INPUT_ANSWER "blk-cdtree-01-10")(C:blk-cdtree-01-10)) ((eq USER_INPUT_ANSWER "blk-cdtree-01-12")(C:blk-cdtree-01-12)));; do something like this(C:blk-cdtree-(substr USER_INPUT_ANSWER 11))
View 8 Replies
View Related
Mar 21, 2012
I have this small lisp routine:
(defun c:1p nil
(command "_.-plot" "yes" "" "controls 11x17" "Ledger (11 x 17)" "inches" "LANDSCAPE" "NO" "view" "01" "FIT" "CENTER" "YES" "newpap2.ctb" "YES" "As" "NO" "NO" "yes" )
(princ)
)
I want to use it to plot different views which I will append to the command when it is called from within AutoCAD.This code will, of course, print view one.Currently my worst case is 25 views and, for that situation, I have simply repeated this code 25 times with a different function name an view number for each view. Eventually I would like to make a dialog box that would allow me to select with checkboxes (toggles) the views to print and with a button to print all.
For example, if I wanted to plot view 25, after I had loaded this lisp routine I would enter, on the command line in AutoCAD, the function name ("pp" perhaps?) followed by some variable (in this case 25, but could be any view name. ie. 01, elev, detail) and the view name would be inserted at the appropriate place.
View 3 Replies
View Related
May 4, 2012
Is there a command / system variable to set all buttons on every panel in the ribbon to have a button style of "smallwithouttext". I wiould like to do this without having to adjust each button manually
View 3 Replies
View Related
Mar 24, 2014
Working in Illustrator CC (latest version) and my undo key command is going back in time and undoing stuff I did earlier in the file. I'm on a Windows 7 machine.
View 3 Replies
View Related
Aug 1, 2013
Main question: I need the user to be able to type a command. Then use it or cancel it. Then i need them to type another lisp command. In the second command i need to know (have the string of) the previous command they typed in. How do i get that string?
What I have tried.
I have looked at "LASTPROMPT" though not extensively, and i believe it would just return "ineedhelp" if i tried that.
I have looked at "CMDNAMES" but that gives the command you're currently in.
And I have found one page on this forum titled: Command Line History Macro, but there was no answer on that post.
I could create a global variable for that string, but then I would have to put the set code in every function I create. Nope, will not.
Backstory:
There's a person that is going to make how-to videos on how to use some of my lisp routines.
Anyhow, I need the user to be able to type in "ineedhelp" and the lisp that runs must get the last command's string go to the shared drive and pull up the video file for that command.
I have made a lisp that opened a word file before, and if i could get the string of the previous command, i'm fairly certain that I can get the videos to work.
There will be approximately 60 lisp routine video's.
View 9 Replies
View Related
Nov 14, 2012
I'm trying to make an autolisp that "flips" a third party variable. No luck, command line won't recognize after it loads. I've made similar variable flips that work ??
(defun c:wp (/ wp)
(setq wp (getvar "kti_archt_wallpoche"))
(if (= kti_archt_wallpoche 0)(setvar "kti_archt_wallpoche" 1)
(if (= kti_archt_wallpoche 1)(setvar "kti_archt_wallpoche" 0)
View 2 Replies
View Related
Dec 12, 2013
I have been working on a project and illustrator and accidentally reverted the file. Is there any possible way to recover the previous file or undo the revert command?
View 1 Replies
View Related
Nov 10, 2011
I want to know if I have understand this correctly or not: layer previous undos the last change in layer related command. Then If my last action is on layer, unod command will do the same. layer previous advantage is when you want to perform an undo which is not your last action.
View 0 Replies
View Related
Sep 26, 2013
I have a Command Method which has a loop that opens and commits transactions until the user is finished with it and exits.
I would like each transaction to be undone separately but the undo command undoes the CommandMethod (along with all the transactions that occurred while in the loop)
Do I need to use the COM StartUndoMark and EndUndoMark to get this working?
View 3 Replies
View Related
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
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
Feb 23, 2012
the command to get my view cube to show back up. I tried "cube" and it was defaulted to <on> but it doesnt show up.
View 9 Replies
View Related
Jun 25, 2013
Is there any command to send to back all images in a DWG file, like it is HATCHTOBACK for hatches?
View 3 Replies
View Related
Oct 17, 2011
Is it possible to get the output from the MEASUREGEOM command back into an VL program?If I use:(setq angle (command "MEASUREGEOM" "a" line1 line2 "x"),
the value of the angle is displayed on the screen but is not passed back into the program and the variable "angle" is not set.Is there a way that I can set this variable?
View 1 Replies
View Related
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
Sep 6, 2012
I have a drawing with several dynamic blocks (over 1000 block references) with visibility states. I recently noticed that all of the blocks no longer have the option to change the visibility state (i.e. the upside down blue triangle no longer appears when clicking on the block).
If I insert a new block it comes in with the option to change the visibility state. However, the previously placed blocks still do not have the option of changing the visibilty state. Even if I update the definition of all block references in my drawing nothing changes with the previously placed blocks.
Is there an option/command to bring back the option of changing visibility states on my previously placed blocks?
View 2 Replies
View Related
Oct 9, 2013
Im trying to figure out what I can do differently in my code to have it show the newly placed text immediately after choosing an insertion point. Im guessing it has to do with a nested transaction and my loop, but Im not sure how to fix.
The code below is to label the layer of a selected entity. If in paperspace, label in paperspace and if in modelspace label in modelspace. Ive been testing this on the "blocks_and_tables_-_imperial.dwg"
Imports Autodesk.AutoCAD.RuntimeImports Autodesk.AutoCAD.ApplicationServices.ApplicationImports Autodesk.AutoCAD.DatabaseServicesImports Autodesk.AutoCAD.EditorInputImports Autodesk.AutoCAD.GeometryImports Autodesk.AutoCADImports Autodesk.AutoCAD.ApplicationServicesPublic Class Class2 Public Function myAnnotate(myDbIn As Database, mySpace As String, myTextContents As String, mySTPT As Point3d) As ObjectId
[code]........
View 3 Replies
View Related