Adjust blocks size to drawing setup

Discussion in 'AutoCAD' started by mgrigoriev, Jun 18, 2004.

  1. mgrigoriev

    mgrigoriev Guest

    Hi,
    Is it possible to automatically scale blocks in the drawing according to the drawing scale? Say, you inserted blocks in 1"=40' scale. Then you change the scale of the drawing, say to 1"=20' and all the blocks in the drawing get reduced in half. I would greatly appreciate any help you could give me on this one.
    Thanks,
    Mike
     
    mgrigoriev, Jun 18, 2004
    #1
  2. You need to detect current objects' scale (via objects themselves or via
    stored value) and apply BlockReference.ScaleEntity to uniformly re-scale
    them.

    Regards,
    Maksim Sestic

    the drawing scale? Say, you inserted blocks in 1"=40' scale. Then you change
    the scale of the drawing, say to 1"=20' and all the blocks in the drawing
    get reduced in half. I would greatly appreciate any help you could give me
    on this one.
     
    Maksim Sestic, Jun 18, 2004
    #2
  3. mgrigoriev

    mgrigoriev Guest

    I still have a few questions:
    - Is that right that AutoCAD won't help me here, and I have to write my own code?
    - Is there a way to create an event that triggers every time the drawing scale is changed?
    - How can I detect current objects' scale?
     
    mgrigoriev, Jun 18, 2004
    #3
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.