See the top rated post in this thread. Click here

Page 3 of 3 FirstFirst 123
Results 21 to 27 of 27

Thread: Create Dynamic Block

  1. #21
    I could stop if I wanted to
    Join Date
    2003-03
    Location
    Alberta
    Posts
    260
    Login to Give a bone
    0

    Default Re: Create Dynamic Block

    Still haven't found anything on how to create a dynamic block or modify a dynamic block definition using AutoCAD's .NET API. Think this is an item for the wish list.

  2. #22
    AUGI Addict
    Join Date
    2005-08
    Posts
    1,043
    Login to Give a bone
    0

    Default Re: Create Dynamic Block

    Looks like all the properties are kept in the extension dictionary of the block table record. At least that is how I got there with lisp.

    But I don't see what to do from there with .Net.

  3. #23
    I could stop if I wanted to
    Join Date
    2003-03
    Location
    Alberta
    Posts
    260
    Login to Give a bone
    0

    Default Re: Create Dynamic Block

    Quote Originally Posted by T.Willey View Post
    Looks like all the properties are kept in the extension dictionary of the block table record. At least that is how I got there with lisp.

    But I don't see what to do from there with .Net.
    I think I've gotten to about the same point with .NET. There is some sort of object called an "ImpDBObject" in the dictionary. I'm guessing it holds the secret to the Dynamic Block Definition. I don't know where this object comes from or if I can include it in my .NET project. Any ideas?

  4. #24
    AUGI Addict
    Join Date
    2005-08
    Posts
    1,043
    Login to Give a bone
    0

    Default Re: Create Dynamic Block

    If I wanted to know how to build stuff with the .Net language, I would go here and download the db view arx. It will show you the items that make up a dynamic block, and then it might help you along your path with other questions.

    Attached is a sample look at one of my dynamic blocks (the only one I have done so far). You can see the items that are in the extension dictionary, and the names of such items, and hopefully that will start you on your path.

    When you do find how to do this, I hope you will share your code so others can learn from what you have done.
    Attached Images Attached Images

  5. #25
    I could stop if I wanted to
    Join Date
    2003-03
    Location
    Alberta
    Posts
    260
    Login to Give a bone
    0

    Default Re: Create Dynamic Block

    Thanks, I'll give it a try.

  6. #26
    AUGI Addict
    Join Date
    2005-08
    Posts
    1,043
    Login to Give a bone
    0

    Default Re: Create Dynamic Block

    Quote Originally Posted by tony.tanzillo View Post
    Don't want to tell you you can't define dynamic blocks in code, because you can do that even in LISP, using nothing but (entmake).

    But doing that will require you to reverse-engineer all of the "authoriing components" like parameters and actions. There are no APIs or managed wrappers for those objects so there's nothing the NET API can do to make it any easier.
    Thanks for the heads up Tony.

  7. #27
    Member
    Join Date
    2008-01
    Location
    Ireland
    Posts
    6
    Login to Give a bone
    0

    Default Re: Create Dynamic Block

    Follow this thread as i wish to start BEditor and enter <Current Drawing> from a script see below
    where i want to replace xx with -BE <Current Drawing>, but from what you say i can not enter BE from script, however this script start out of BE then can be resumed in BE

    Any guidance

    Open C:/Library/Rap2/R008D01
    xx
    -BVState S Front
    -Insert C:/Library/Rapid/Rap1/R008D02
    0,0 1 1 0 -BVState N
    End To
    H -Insert C:/Library/Rapid/Rap1/R008D03
    0,0 1 1 0 -BVState N
    End Away
    H -Insert C:/Library/Rapid/Rap1/R008D04
    0,0 1 1 0 -BVState N
    Plan To
    H -Insert C:/Library/Rapid/Rap1/R008D05
    0,0 1 1 0 -BVState N
    45° To
    H -Insert C:/Library/Rapid/Rap1/R008D07
    0,0 1 1 0 -BVState N
    45° Away
    H -Insert C:/Library/Rapid/Rap1/R008D08
    0,0 1 1 0 -BVState S Front
    BVMode 1 DiddlePoints BVMode 0 _Bsave Bclose Zoom E Qsave Close

Page 3 of 3 FirstFirst 123

Similar Threads

  1. How to create dynamic block in 3d?
    By radosak368138 in forum Dynamic Blocks - Technical
    Replies: 1
    Last Post: 2013-10-30, 05:13 PM
  2. Create a dynamic block with multiple insertion points
    By danielk in forum Dynamic Blocks - Technical
    Replies: 18
    Last Post: 2012-09-07, 08:38 AM
  3. How To Create Dynamic Block With Attributes - Drawing Title
    By omorah in forum Dynamic Blocks - Technical
    Replies: 1
    Last Post: 2012-08-09, 02:36 AM
  4. How to create a dynamic attributed block
    By andy.89024 in forum Dynamic Blocks - Technical
    Replies: 10
    Last Post: 2006-07-05, 07:19 PM
  5. Create new Dynamic Block via editing a Block within another drawing file
    By pbrumberg in forum Dynamic Blocks - Technical
    Replies: 2
    Last Post: 2006-01-10, 05:55 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
  •