Scaling a block before picking insert point.

Discussion in 'AutoCAD' started by Rick Keller, Sep 17, 2004.

  1. Rick Keller

    Rick Keller Guest

    I use alot of blocks that I draw full scale and then scale up by the
    dimscale. is there any way to make the block scale up so you can see the
    full size it will be when placed in the drawing.

    Here is an example of a weld symbol block menu syntax.

    [WELD(al-arnd)]*^C^Cclayer;S-NOTES;(setq xx (getvar
    "dimscale"))(initdia)(command "-insert" "//G12/Support/blocks/WELD/al-arnd"
    pause XX XX "")

    Rick
     
    Rick Keller, Sep 17, 2004
    #1
  2. Rick Keller

    bnarum Guest

    You can enter scale before picking insertion point...
    (command "insert" "block name" "_scale" (dimscale) (getpoint) "rotation angle")
     
    bnarum, Sep 17, 2004
    #2
  3. Rick Keller

    Walt Engle Guest

    Here is what I use for my blocks in my image file:

    [fillns,Fillet Near Side]^C^C-insert *fillns \(getvar "dimscale");;

    This brings up my welds (exploded) in accordance with whatever my
    dimscale is. Is that what you want?
     
    Walt Engle, Sep 17, 2004
    #3
  4. Rick Keller

    Rick Keller Guest

    Cool... It has been so long since I made the menus I didn't think about
    looking at the command line insert command again.

    Thanks
    Rick
     
    Rick Keller, Sep 17, 2004
    #4
  5. Walt,

    Why don't you pre-specify the scale before the pause for the insertion
    point? I bet your users would prefer that.

    --
    R. Robert Bell


    Here is what I use for my blocks in my image file:

    [fillns,Fillet Near Side]^C^C-insert *fillns \(getvar "dimscale");;

    This brings up my welds (exploded) in accordance with whatever my
    dimscale is. Is that what you want?
     
    R. Robert Bell, Sep 19, 2004
    #5
  6. Rick Keller

    Walt Engle Guest

    Duh - as my blocks are written, they don't insert before the dimscale
    affects their size - it just appears that way. Try one and you'll see.
     
    Walt Engle, Sep 19, 2004
    #6
  7. Rick Keller

    Doug Broad Guest

    Walt,
    I don't know what the "Duh" is about. Be careful you don't come
    across as insulting those who are trying to help you.

    Your posted menu macro

    [fillns,Fillet Near Side]^C^C-insert *fillns \(getvar "dimscale");;

    would not scale the block until the insertion point is chosen. So it
    may or may not be visible while you are dragging it. If you rewrote
    it to either scale or pre-scale the block before a drafter chooses
    the insertion point, then it becomes more dynamic. If you
    want to see the block as you are dragging, use two commands.
    Something like: (untested)

    ^c^c-insert fillns s (getvar "dimscale") \;;explode L ;

    Using the *name format does not allow for viewing while dragging.
     
    Doug Broad, Sep 20, 2004
    #7
  8. Rick Keller

    Walt Engle Guest

    The "duh" was about me. As far as the block is concerned, I want to pick
    the insertion point(s) first as I don't want to drag it anywhere. Those
    blocks are designed to be inserted at specific points or places. If I
    have to move it, then that is another story altogether.
     
    Walt Engle, Sep 20, 2004
    #8
  9. Whew! I'm glad I wasn't the duhnce <groan>.

    Walt, you might still be missing my point. I figure you only want the block
    in specific places, but why not at least see the size of the block while
    placing it, instead of guessing that it might fit in the area you are
    placing it?

    ^C^C._-Insert;FillNS;_s;(getvar "DimScale");_r;0;\._Explode;_l;

    Just Toggle DimScale between 1 and 12 using both your macro, and Doug's (or
    mine) to see the difference.


    --
    R. Robert Bell


    The "duh" was about me. As far as the block is concerned, I want to pick
    the insertion point(s) first as I don't want to drag it anywhere. Those
    blocks are designed to be inserted at specific points or places. If I
    have to move it, then that is another story altogether.
     
    R. Robert Bell, Sep 20, 2004
    #9
  10. Rick Keller

    Rick Keller Guest

    That is what I was looking for.
    I figured there was a way I just havent looked at the command line version
    of insert for a long time to figure it out.

    Rick
     
    Rick Keller, Sep 20, 2004
    #10
  11. Rick Keller

    Rick Keller Guest

    Walt thanks for the help. with the help I received from the group this is
    the result.

    [WELD(FWL1)]*^C^Cclayer;S-NOTES;(initdia)(command "-insert"
    "//G12/Support/blocks/WELD/FWL1" "scale" (getvar "dimscale") pause "")

    This changes the layer first so the weld symbol is on the correct layer so
    the user doesn't have to think.
    Then it inserts the weld symbol scaled up to the dimscale (because it has
    text in it).
    And now when I pick a point the block shows up scaled ahead of picking so I
    don't have to place it & then move it all of the time.

    I have a question for you though.

    Why do you explode your weld symbols?
    I use blocks with attributes in them for the size & length of weld so I
    don't have to explode them.... This creates many weld symbols but I just
    pick one and fill in the blanks & when I need to move one I pick one entity
    to move or pick the leader & block & stretch using grips.

    Rick
     
    Rick Keller, Sep 20, 2004
    #11
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.