AutoCAD .NET :: RotatedDimension TextPosition Changed After Transaction Commit
May 23, 2013
I'm having a problem with RotatedDimension. I'm initializing it with some values and after I commit the transaction the value of TextPosition is changed.
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] .........
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.
Relating the .NET Developers Guide at [URL]...... regarding "Commit and Rollback Changes":
In the event that objects have been added or changes have been made (that you want to keep) it's obviously a requirement that you commit the transaction. But when simply reading information is it necessary (or even good form) to commit the transaction anyway or abort for some reason?
The Developers Guide says "If Commit is not called before Dispose is called, all changes made within the transaction are rolled back." and does not imply that committing is necessary.
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]........
I am walking through someone else code in order to make sure I understand some principles (inserting blocks via a jig) and I cam upon a couple of lines that I do not understand:
space is the blocktablerecord for the current space and tr is the active transaction.
Here is what I don't get: If I append the entity to the space in the blocktablerecord inside of the transaction why do I also need to add this newly created object to the transaction with the AddnewlyCreatedDBObject method as well?
i have got a problem with AutoCAD 2010 right now. Im having some procedures that take very long to process in between a Transaction Manager. Start Transaction and Commit/Abort.
When taking too long AutoCAD sometimes just disappears/crashes without giving a call stack/Exception or anything. There are also no memory leaks or exceptions raised, though i send some status messages to the command line of AutoCAD.
Does AutoCAD need anything like a KeepAlive? Do i have to send it some specific messages or anything? Is that a common problem?
Coworker opened a drawing that he created yesterday. Upon opening he received the following error - "Attempting to end an invalid transaction. Id: 2008125432". He hit OK and the program resumed. It did not crash. There is no red plus in the menu bar.
Inventor 2013 SP2 update 1 Windows 7 64x SP1, 12GB RAM NVIDIA Quadro FX 2000, driver 8.17.12.7642 (12/10/2011)
I have a command to open some dwg files and print them. I´m using the Sub imprimePDF. When I did the code with (AutoCAD 2011 and VS 2008) , it runs ok but now it´s wrong.
This is the sub
Sub imprimePDF() Dim myDWG As Autodesk.AutoCAD.ApplicationServices.Document myDWG = Application.DocumentManager.MdiActiveDocument
[Code]....
When I´m debugging the code, last sentence produces an error: 'tr not declared' and I don't know why.
Has seen that even if a work plane, work axis or other work feature is created during a transaction, the screen will still update? The actual features I create using these work features within the same transaction still work just fine.
I'm finding that having to click the "commit transform" check mark after every adjustment to be annoying. Is there a way to automatically commit transform by clicking a new layer? or make middle click commit the transform?
Why can't i commit the clip on desktop ? there's no 'commit' in the right click menu. To get this menu, i have to right- clicking the clip in timeline. So let say my clip in the desktop , first i have to drag it into timeline , or open it as sequence. Now in timeline , i commit the clip, then put back (drag) the clip into desktop. That's weird workflow... why can't i just do commit the clip in desktop so i don't need to go through that process ?
I've a question regarding a conform workflow in Smoke/Flame. Is there a way to reformat your timeline to HD, but with keeping the handles and cuts?
For example if I do a conform with 4K red files in a HD timeline, after the conform. I would like to commit everything to HD, but with handles. This is because I don't need the smoke to cache the large 4K source media files.
I tried using the reformat option, but this gives me only 1 long clip. without cuts and handles
I also tried selecting the timeline, and choosing commit timelineFX. This will commit every clip and keeps the edit points, but…..removes the handles.
In the old Smoke, before 2012, there was one way. Namely to use the reformat tool in the library. But now it's gone.
How can I get rid of the annoying floating commit/reject button when I am typing in text. It always seems to be in the way. I'd like to be able to type without the window showing up or be able to move it out of the way.
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?
I had to reinstall my lightroom 5 and since then the before/after (Y/Y) icons are missing. Also the done button is missing when I go the use my transaction brush.
In a multi-document autocad session, after making changes programmatically in all drawings opened, when closing autocad, I'm only asked to save the changes for the current drawing. The others drawings are closed without asking to save them. The changes are made as I'm expected, but autocad don't aks to save the modified drawings.
i use conceptual in my viewports to give a rough 3D of what i am drawing. some settings have changed that i am not familiar with i would like to restore them to the original settings. the following pics show the difference. Im Not talking about the back ground.
The pic with the black backgroud is not how i like the settings to be. they seem too bright and its kind of glowing.New Settings.jpg...The pic with the white background is what im looking for. the items seem to be a flatter finish to them. If all this makes sense how do i change it back?
I can't see that I changed any setting (never do) or did anything to make it so the instruction line under the Command: window at the bottom of the screen now expects me to enter text, i.e. In the Command Window we have "open", after I clicked on File / Open, but instead of being taken to the usual drop down of my hard drive the bottom line on my monitor reads, "Enter name of drawing to open <.>: The same thing happens if I try to save a drawing. This is making it extremely difficult to open and save, i.e. to work....
Just on to ACA 2014 and noticed many of the detail tabs missing. No longer interior, exterior, etc. tabs and can't find how to replace them. Also Detail compnent manager toolbar icon gone and can't find command in CUI?
My company have created a standard cui that we all must use and cannot be changed in any way.
Whilst I agree this is a good idea, there are a lot of command icons missing from the ribbon which I use frequently.Is there any easy way I can add these to my cad setup ?
Some weeks ago I made this drawing for a costumer, which was like this:
When I opened the drawing today it was like this:
As you can see, there are some differences between the two screenshots:
- The texture of the grass changed, now it's les fine; - The same for the road (you can't see it right now, but it's the same problem as the gras) - The trees changed, now you can't look 'through' the blocks; - The color of the cars (blocks) changed, first they had multiple colors, but now they are one (different) color.
In one of the assemblies I'm editing I have a rule where the parameter changed formats on me. It went from something normal like:
Parameter("Name:1", "Name")=36 to a format like: p534g9_86=36.
How i might be able to track down what was being pointed at so I can correct it? I looked through the assembly and part file parameters but can't find where 36 is being plugged in at.
I accidentally changed the line weight halfway through my drawing, and many of the lines are printing fat! I know about displaying them on screen, that is not my issue. The fatter lines are not specific to any layers, so in the layer dialogue box all line weights are listed as default. How can I change the lightweights after the fact, without redrawing the whole thing. Also, any line that I add to the drawing is still fat. I am using 2012 Autocad.
I opened my Autocad today to discover that none of the drawings I open are displaying any type of text. This includes dimension text, multi/single line text, and titleblocks. My coworkers can open with text, so I am confident that it is a setting of some sort in my program. I have looked thropugh every menu and option and I have been unable to find the setting that would need to be changed.
I am using inv 2012 sp1 and I just noticed in the drawing mode when I set a champhre note the notation has changed? it is now showing C1 or C2 etc. can I go back to the original setting?