What is advantage using net and vba
In autocad
What meaning commit transcation in net
|
What is advantage using net and vba
In autocad
What meaning commit transcation in net
Using .NET has the advantage of a more complete set of api's than VBA. VBA api hasn't been updated for a long time. There is the disadvantage that it has a much greater learning curve. I would advise switching to C# as there are many more code samples in C# and more users to help you.
The autocad dwg file is a database. Each entity is its own record in a table. There are many tables that make up a dwg database. The concept of a transaction is that it is only temporary until you commit it. Until then, you can rollback the changes. i.e. cancel the command. In addition to posting changes, you have to "open" an object in memory in order to make a change. A transaction helps handle these procedures and allows you to nest a bunch of actions into one transaction. Note this comment from help on the Transaction Class.You can read more about transactions here.Transactions provide a way to extend the boundary of operation on an object beyond open and close, and avoid those vexing open conflict errors. They also improve performance by being lenient on multiple open requests while postponing all the opened objects close-time work to the end of the transaction.
Thank ed jobe ,is all object line,mtext,etc
Using method using transaction
What meaning is more simple c# with net
If you have a small number of entities to process, you can choose to open the object for write and close it when finished. Otherwise its best to use a transaction.
I didn't say C# was simpler, just more common when dealing with AutoCAD. I said "sample" not "simple". A sample is a piece of code that others have written that you can use for your own needs.