Modify some instances of a block leaving the rest as they were.

Discussion in 'AutoCAD' started by meenakshi, Mar 9, 2005.

  1. meenakshi

    meenakshi Guest

    I would like to change the geometry of some instances of a block based on the attribute values. For example: All the instances are right now circles with text in them. I want to chance the circles to hexagons if the text was C10, C11, C12. And change the circles to squares if the text was D10, D11, D12. Is there possibly a way to do this?
    Was wondering if I can filter the blocks depending on the attribute values, rename those blocks and then substitute them. Do you have any suggestion?
     
    meenakshi, Mar 9, 2005
    #1
  2. meenakshi

    ozaheman Guest

    yeh its is possible to do this but the easer way will to create a lisp routine to perform this task for faster performance if u needed it just reply me
     
    ozaheman, Mar 9, 2005
    #2
  3. meenakshi

    meenakshi Guest

    Yes I do need it!!!! That would be awesome. Thanks a bunch.
     
    meenakshi, Mar 10, 2005
    #3
  4. meenakshi

    ECCAD Guest

    Meenankshi,
    I think you would need (3) blocks to accomplish this.
    One with a Circle (existing), One with a Hex, built
    the same as the Circle, and One with a Square, built
    same as the Circle..e.g. same insertion point.
    Then, with a lisp program, pick the Circle(s), replace with
    either a Hex or Square block, with the save value of attribute.
    What is needed is a Lisp that allows selection of the Circle(s),
    and a routine that gets the attribute value, and erases the Circle block, and inserts the Hex or Square, in the same spot,
    with the attribute filled in.
    If you want, I can provide the routine.

    Bob
     
    ECCAD, Mar 10, 2005
    #4
  5. meenakshi

    meenakshi Guest

    That would be great if you can provide the routine. Thank you. I really appreciate your help.
     
    meenakshi, Mar 10, 2005
    #5
  6. meenakshi

    ozaheman Guest

    tried my lisp had it showed any problems...
     
    ozaheman, Mar 16, 2005
    #6
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.