Results 1 to 8 of 8

Thread: Annotative scale in field?

  1. #1
    100 Club
    Join Date
    2007-05
    Location
    Chicago, Illinois
    Posts
    194
    Login to Give a bone
    0

    Default Annotative scale in field?

    I am trying to create a block with an attribute where the default value is the annotative scale. Is that possible?

  2. #2
    The Silent Type RobertB's Avatar
    Join Date
    2000-01
    Location
    Seattle WA USA
    Posts
    5,859
    Login to Give a bone
    0

    Default Re: Annotative scale in field?

    Does Other, System Variable, CAnnoScale address your issue?
    R. Robert Bell
    Design Technology Manager
    Stantec
    Opinions expressed are mine alone and do not reflect the views of Stantec.

  3. #3
    100 Club
    Join Date
    2007-05
    Location
    Chicago, Illinois
    Posts
    194
    Login to Give a bone
    0

    Default Re: Annotative scale in field?

    I though so when you said it, but the problem is that it changes whenever I change the annotation scale I'm working on. I am trying to create a drawing label that does the following:

    a) Fills in the scale heading automatically when I insert it based on the current annotation scale, but doesn't change when I change the current annotation scale.

    b) Changes the scale heading whenever I change the block's annotation scale manually.

    I can probably do without the second part as it would require a field, whereas, I'm not so sure the first part does. Is there a way to set an initial static value when you insert it based on the current annotation scale?

  4. #4
    Active Member Shinyhead's Avatar
    Join Date
    2006-07
    Location
    Gainesville, FL
    Posts
    84
    Login to Give a bone
    0

    Default Re: Annotative scale in field?

    yeah, you can do that, but don't use a field if you don't want it to change.
    The following is for LT, so there may be a fancy "lispy" way to do it as well.

    Make a macro that does a block insert for your block, and make sure attreq is 1 and attdia is 0, then use diesel to $m=$(getvar,cannoscale); when the prompt for that attribute comes up. May take a try or two to get the order right on the attributes, but its pretty easy to set up.

    You can also use a field that calls the cannoscale variable, and I am wondering why its an issue when you change annoscale, what counts is how it looks through a viewport, in which case it will show the cannoscale of the viewport. Unless you are plotting from modelspace.

  5. #5
    The Silent Type RobertB's Avatar
    Join Date
    2000-01
    Location
    Seattle WA USA
    Posts
    5,859
    Login to Give a bone
    0

    Default Re: Annotative scale in field?

    I don't think you can accomplish what you want without customization. I may be mistaken, but I see no object field for an object's annotation scale.
    R. Robert Bell
    Design Technology Manager
    Stantec
    Opinions expressed are mine alone and do not reflect the views of Stantec.

  6. #6
    Active Member Shinyhead's Avatar
    Join Date
    2006-07
    Location
    Gainesville, FL
    Posts
    84
    Login to Give a bone
    0

    Default Re: Annotative scale in field?

    I use this code for the field to get it into a format I like

    %<\AcDiesel $(RTOS,$(/,12,$(SUBSTR,$(GETVAR,CANNOSCALE),3)))>%

    the attribute follows the field with
    "=12"

    this will then give you something like

    1-1/2"=12" which is the format most of our clients prefer.

    If you make sure it is in a block, and it is an annotative block, just make sure that only the annotation scales you want it to display in are in the objects scale list. This is how we handle the viewlabels and it works nicely.

  7. #7
    100 Club
    Join Date
    2007-05
    Location
    Chicago, Illinois
    Posts
    194
    Login to Give a bone
    0

    Default Re: Annotative scale in field?

    Quote Originally Posted by Shinyhead View Post
    You can also use a field that calls the cannoscale variable, and I am wondering why its an issue when you change annoscale, what counts is how it looks through a viewport, in which case it will show the cannoscale of the viewport. Unless you are plotting from modelspace.
    I tried this but in model space fields at different scales update to the current anno scale and in paper space they seem to do whatever they want. I dropped in two blocks at two scales (3/8" & 1-1/2") and left the anno scale at 1-1/2". In model space they both showed up at 1-1/2" and in paper space in two different scaled viewports they showed up at 3/8". I fiddled around a little bit, not really doing much of anything, checked again and regened again and in paper space one showed 1-1/2" and the other 3". I regened again and now they are both stuck at 1-1/2".

    Quote Originally Posted by Shinyhead View Post
    I use this code for the field to get it into a format I like

    %<\AcDiesel $(RTOS,$(/,12,$(SUBSTR,$(GETVAR,CANNOSCALE),3)))>%

    the attribute follows the field with
    "=12"

    this will then give you something like

    1-1/2"=12" which is the format most of our clients prefer.

    If you make sure it is in a block, and it is an annotative block, just make sure that only the annotation scales you want it to display in are in the objects scale list. This is how we handle the viewlabels and it works nicely.
    I'm not familiar with Diesel, but I tried to put that expression in under "DieselExpression" and it gives me "Invalid Field Code". If I paste it in the attribute it shows a field with 1'-0", regardless of the scale I insert it at. I think I might just need to let it be for a while until I understand it all a little better. Tricky stuff.

  8. #8
    AUGI Addict madcadder's Avatar
    Join Date
    2000-11
    Location
    Too far from the beach
    Posts
    1,066
    Login to Give a bone
    0

    Default Re: Annotative scale in field?

    I'd like to bring this one back to top.
    Has this been figured out? Has CAD changed in any way to make this now possible?

    I was trying the same thing. I wanted to make a tag that would update the scale automatically according to the anno scale of the block it was in.
    Before finding this thread I tried the same method as the OP and got the same result. The scale would change to whatever the scale was set to, not the scale of the block it was within.

    I also thought that maybe I'd create an invisible object within the block and link it to it's scale, but that was a no go also.

    This one would be really cool to figure out.

Similar Threads

  1. Annotative Field References
    By mbrandt5 in forum AutoCAD Fields
    Replies: 5
    Last Post: 2015-08-06, 03:56 PM
  2. annotative scale as a scale header
    By ratnakaram_sivaramprasad362551 in forum AutoCAD Annotation
    Replies: 1
    Last Post: 2013-03-18, 03:07 PM
  3. Replies: 0
    Last Post: 2011-11-17, 04:25 PM
  4. Annotative Scale stuck
    By bjm in forum AutoCAD Annotation
    Replies: 4
    Last Post: 2007-12-14, 05:48 PM
  5. Replies: 1
    Last Post: 2007-08-17, 12:37 AM

Posting Permissions

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