Insert Routine Problem

Discussion in 'AutoCAD' started by mr_nick, May 5, 2004.

  1. mr_nick

    mr_nick Guest

    I'm writing a custom symbol insert routine and have run into a bit of a problem which I'm somebody may be able to help me with.

    When I use PAUSE in the insert command to get the insert position, my symbol is ghosted on the end of the cursor but depending on the drawing scale, it views at different sizes. All my symbols are drawn based on a 10x10 square and scaled when inserted to suit the drawing scale. The problem is that when the ghost image is put on the cursor, it is the original sized version that is shown which then displays at the correct size when inserted. At the moment, I have got around this by inserting the block in the centre of the screen and then doing a move entlast. This gets around the problem but looks a bit clumsy. Is there any better way to get around this ghost image problem. I considered changing the sizes of my symbols but this would work against me when working at smaller scales and leave me in the same position.

    All ideas gratefully appreciated.
     
    mr_nick, May 5, 2004
    #1
  2. mr_nick

    zeha Guest

    Given first the scale before pause drags the insert to the right scale
    (command ".insert" "yourSymbol" "scale" "yourScale" pause)
     
    zeha, May 5, 2004
    #2
  3. mr_nick

    mr_nick Guest

    Ah yes - couldn't see the wood for the trees with that one!!

    Thanks for casting a fresh pair of eyes on it for me.
     
    mr_nick, May 5, 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.