Results 1 to 5 of 5

Thread: What is different vba cad with vb.net cad

  1. #1
    Login to Give a bone
    0

    Default What is different vba cad with vb.net cad

    What is advantage using net and vba
    In autocad
    What meaning commit transcation in net

  2. #2
    Administrator Ed Jobe's Avatar
    Join Date
    2000-11
    Location
    Turlock, CA
    Posts
    5,720
    Login to Give a bone
    0

    Default Re: What is different vba cad with vb.net cad

    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.
    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.
    You can read more about transactions here.
    C:> ED WORKING....

  3. #3
    Login to Give a bone
    0

    Default Re: What is different vba cad with vb.net cad

    Thank ed jobe ,is all object line,mtext,etc
    Using method using transaction
    What meaning is more simple c# with net

  4. #4
    Administrator Ed Jobe's Avatar
    Join Date
    2000-11
    Location
    Turlock, CA
    Posts
    5,720
    Login to Give a bone
    0

    Default Re: What is different vba cad with vb.net cad

    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.
    C:> ED WORKING....

  5. #5
    Login to Give a bone
    0

    Default Re: What is different vba cad with vb.net cad

    Ok thankyou ed jobe

Similar Threads

  1. CP222-4: Maximize the .NET in AutoCAD .NET
    By Autodesk University in forum Customization and Programming
    Replies: 0
    Last Post: 2014-12-01, 01:53 AM
  2. CP214-4: AutoCAD .NET: Using .NET With Your LISP Applications
    By Autodesk University in forum Customization and Programming
    Replies: 0
    Last Post: 2014-12-01, 01:45 AM
  3. .NET and Autocad. How to load script from .net app?
    By firavolla_moise in forum Dot Net API
    Replies: 5
    Last Post: 2011-11-01, 09:11 PM
  4. Replies: 0
    Last Post: 2010-11-16, 06:48 PM
  5. AutoCAD .NET (dot net) for beginners
    By Filipe Francisco in forum ATP Course Wishlist
    Replies: 6
    Last Post: 2007-08-16, 11:11 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •