Results 1 to 9 of 9

Thread: LISP FOR CREATING ATTRIBUTES ON DYNAMIC BLOCKS

  1. #1
    Active Member
    Join Date
    2015-10
    Posts
    73
    Login to Give a bone
    0

    Default LISP FOR CREATING ATTRIBUTES ON DYNAMIC BLOCKS

    Does anyone know of a way or a lisp that will gather and create attributes for a dynamic block from it's visibility state or maybe from the block name.
    The blocks get inserted into the drawing and are often changed. Once the project is finished we hand it over to another department who then has to create the attribute data. So, in effect we're doing this exercise twice for sometimes thousands of points.
    Preferably we'd like to do this with a "window" selection set rather than individually.

    TIA

  2. #2
    Administrator Opie's Avatar
    Join Date
    2002-01
    Location
    jUSt Here (a lot)
    Posts
    9,082
    Login to Give a bone
    0

    Default Re: LISP FOR CREATING ATTRIBUTES ON DYNAMIC BLOCKS

    You can add an attribute definition to the block that references the block's visibility state.

    Or you can create an autolisp routine to query the dynamic block properties to extract that information. Have you searched this forum on how to retrieve the visibility state of a dynamic block?
    If you have a technical question, please find the appropriate forum and ask it there.
    You will get a quicker response from your fellow AUGI members than if you sent it to me via a PM or email.
    jUSt

  3. #3
    Active Member
    Join Date
    2015-10
    Posts
    73
    Login to Give a bone
    0

    Default Re: LISP FOR CREATING ATTRIBUTES ON DYNAMIC BLOCKS

    I did look around the forum for a possible answer to my problem. There are some extractors but none did what we need. Unfortunately, I don't understand a thing about writing code.

  4. #4
    Administrator Opie's Avatar
    Join Date
    2002-01
    Location
    jUSt Here (a lot)
    Posts
    9,082
    Login to Give a bone
    0

    Default Re: LISP FOR CREATING ATTRIBUTES ON DYNAMIC BLOCKS

    Can you post a sample of what you have in the before stage and what you are seeking in the after stage? Someone may be able to help with more information.
    If you have a technical question, please find the appropriate forum and ask it there.
    You will get a quicker response from your fellow AUGI members than if you sent it to me via a PM or email.
    jUSt

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

    Default Re: LISP FOR CREATING ATTRIBUTES ON DYNAMIC BLOCKS

    Yes, post samples of the blocks you are working with and the actual steps you are using now, plus the output from those steps.
    C:> ED WORKING....

  6. #6
    Active Member
    Join Date
    2015-10
    Posts
    73
    Login to Give a bone
    0

    Default Re: LISP FOR CREATING ATTRIBUTES ON DYNAMIC BLOCKS

    Well, as it turns out, the person asking me was looking for something entirely different.......so far.
    Now the ask is for an export of blocks w/attributes as a KML. The problem I've run into now, is that
    upon import the blocks come in as "Placemarks" not the block style thats in place in my drawing.

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

    Default Re: LISP FOR CREATING ATTRIBUTES ON DYNAMIC BLOCKS

    You need to use Map 3D. Convert the blocks into features, then you can save as a kml.
    C:> ED WORKING....

  8. #8
    Active Member
    Join Date
    2015-10
    Posts
    73
    Login to Give a bone
    0

    Default Re: LISP FOR CREATING ATTRIBUTES ON DYNAMIC BLOCKS

    Never gone through that process. Googling it now, any tips are appreciated! Can it be done in C3D?
    Last edited by rickquin651723; 2023-08-29 at 03:10 PM.

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

    Default Re: LISP FOR CREATING ATTRIBUTES ON DYNAMIC BLOCKS

    https://help.autodesk.com/view/MAP/2...6-BECACEDF35F6

    You first need to create a data store to store your GIS information. The most basic is to store it in a shape file (not and AutoCAD shx) or a Map 3D SDF file. You need to define the tables that hold features with the metadata you will need. For example, you would use a Point feature class to store your blocks. Table fields would include the block location and attribute data. Once you have linked a dwg to a data store using FDO, you can then convert AutoCAD entities to map objects and then add them to your shape file. Now the shape file data can be exported to a kml.
    Last edited by Ed Jobe; 2023-08-29 at 03:22 PM.
    C:> ED WORKING....

Similar Threads

  1. Dynamic Blocks - Creating dynamic bolt blocks
    By jake1889 in forum Dynamic Blocks - Technical
    Replies: 3
    Last Post: 2014-08-08, 12:56 PM
  2. Replies: 0
    Last Post: 2014-01-24, 07:48 PM
  3. 2012: Need help creating a dynamic block with attributes
    By sovby254640 in forum Dynamic Blocks - Technical
    Replies: 13
    Last Post: 2013-08-22, 04:32 AM
  4. Lisp to clone BLOCKS/DYNAMIC BLOCKS
    By kruuger in forum AutoLISP
    Replies: 6
    Last Post: 2009-05-02, 02:58 PM
  5. Replies: 21
    Last Post: 2007-03-20, 02:03 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
  •