Results 1 to 7 of 7

Thread: ATTIN with Annotative Blocks

  1. #1
    Member
    Join Date
    2011-11
    Posts
    4

    Default ATTIN with Annotative Blocks

    Hi, been a long time reader of AUGI but this is my first post. I'm using the express tool ATTIN/ATTOUT, but I'm running into a problem when it operates on my annotative blocks. When it replaces the attribute in an annotative block, it scales the text by the current scale, so if i'm working at 1/4" = 1'-0", my attribute text will scale by 48 each time I use ATTIN.

    The command works if I add the scale to 1'-0" = 1'-0" and use the command when I'm in that scale, but that's a problem because I don't want multiple scales on my blocks in the same drawing. I've tried looking at the LISP code, but don't know what's causing that behavior. Any help would be appreciated!

  2. #2
    Certifiable AUGI Addict irneb's Avatar
    Join Date
    2007-07
    Location
    Jo'burg SA
    Posts
    4,344

    Default Re: ATTIN with Annotative Blocks

    The issue is the AttIn was created long before anno scales. And whenever you use entmod on an annotative text there's an issue with the height setting. EntGet returns the model height (i.e. a scale of 1" = 1' would give a 12x height in model), but entmod sees that same height as the paper height.

    You've got 3 options to correct this (in order of difficulty):
    1. Use vla (ActiveX) to modify the text instead of entmod
    2. Omit the dxf code 40 for the text height when sending to entmod
    3. Calculate the correct height by checking the scale's factor and converting it down to paper height when performing the entget
    Knowledge is proportional to experience, but wisdom is inversely proportional to ego!
    My little bit of "wisdom": Hind-sight is useless, unless used to improve the next forethought!

  3. #3
    Member
    Join Date
    2011-11
    Posts
    4

    Default Re: ATTIN with Annotative Blocks

    Thanks for the help irneb. I don't know much ActiveX so I'd probably need too much help with that one. Right now I'm trying option number 2. The thing is, I don't see entmod at all in the attout.lsp routine. As far as I can tell, the actual attribute is edited by the line (acet-undo-end). Is this some function that is called within attout? And if so, where is it located?

  4. #4
    Certifiable AUGI Addict irneb's Avatar
    Join Date
    2007-07
    Location
    Jo'burg SA
    Posts
    4,344

    Default Re: ATTIN with Annotative Blocks

    Att out doesn't do the entmod, it's in the attin function. AttOut simply gets the values and writes them to file. AttIn reads the file then entmods the attributes. That seems to use the acet-insert-attrib-set function which is inside the acetutil4.fas file. So it seems one should actually thus rewrite the entire attin - a fas file is not editable.
    Knowledge is proportional to experience, but wisdom is inversely proportional to ego!
    My little bit of "wisdom": Hind-sight is useless, unless used to improve the next forethought!

  5. #5
    Member
    Join Date
    2011-11
    Posts
    4

    Default Re: ATTIN with Annotative Blocks

    Dang. So you're saying that you can't do the change without rewriting the entire function?

  6. #6
    Certifiable AUGI Addict irneb's Avatar
    Join Date
    2007-07
    Location
    Jo'burg SA
    Posts
    4,344

    Default Re: ATTIN with Annotative Blocks

    Yep. Of course you could write something which would add 1:1 into all annotative blocks, set 1:1 current,, then run c:attin, then set the previous scale current and remove 1:1 from those blocks.
    Knowledge is proportional to experience, but wisdom is inversely proportional to ego!
    My little bit of "wisdom": Hind-sight is useless, unless used to improve the next forethought!

  7. #7
    Member
    Join Date
    2011-11
    Posts
    4

    Default Re: ATTIN with Annotative Blocks

    Yes, that sounds like a great option. Thanks again!

Similar Threads

  1. Annotative MEP Blocks not doing the annotative thing
    By pauljordan in forum AMEP General
    Replies: 0
    Last Post: 2010-07-07, 10:38 PM
  2. Annotative Blocks lose annotative properties
    By CAD-MAN II in forum AutoCAD Civil 3D - General
    Replies: 5
    Last Post: 2009-06-03, 01:50 PM
  3. Annotative Blocks
    By Katika in forum AutoCAD Annotation
    Replies: 2
    Last Post: 2008-12-28, 11:42 PM
  4. Base points in Blocks not behaving when I make Blocks use annotative scale
    By dood in forum AutoCAD Land Desktop - General
    Replies: 12
    Last Post: 2007-06-10, 04:51 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
  •