Unterminated Keyins for Changing Cell Colours

Discussion in 'Microstation' started by Greg Carlill, Aug 7, 2003.

  1. Greg Carlill

    Greg Carlill Guest

    Hi all,
    Using V7
    I'm trying to simplify the process of changing the colours of some
    cells on our drawings. The prosess we're using is to use power
    selector to select the cells then change the colours. The reason why I
    wanted a unterminated keyin is that different cells are to be
    different colours and if the keyin for active colour is unterminated
    the user can enter there own colour value. I wanted to use the
    following unterminated keyin but it seems as soon as you put a semi
    colon in it terminated the keyin.

    my keyin is
    dialog cmdb;k,active color 4;change color element;choose none

    All the drawings were translated into ustn from our old GDS cad
    package.
    The cell library has been modified but because cells on the drawing
    have:
    1. different names to the library cell.
    2. different origins to the library cell.
    I can't do a replace cell.

    I'd like to keep it to a keyin if I can, but will accept going to a
    macro if needed. I could put the colour as a command line argument to
    a macro but I'd like to keep it simple. Any ideas?

    Thanks.
     
    Greg Carlill, Aug 7, 2003
    #1
  2. Greg Carlill

    Dave Preston Guest

    If the user has to select a color anyway why not let them select it from the
    Primary toolbox then run your keyin?

    --

    Regards
    Dave Preston


    www.cadesignservices.co.uk
     
    Dave Preston, Aug 7, 2003
    #2
  3. Greg Carlill

    Lorys Guest

    Try %d between the key ins ie
    k,active color 4;%d;change color element;%d;choose none
    this usually works for me and waits for the user to make a data point before
    going on to next command
     
    Lorys, Aug 8, 2003
    #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.