select USER_Labs using PML based on cursor selection of design object in view

 
  • Hi

    I would like to automatically select the USER_Labs LAYER based on the selection of a design object in a view.
    The Design object may exist in multiple views but I need to select the LAYE associated with the view that the
    design objects graphics are selected in.

    We are using a form to create GLABS but users need to ensure they have selected the relevant LAYE owned by the VIEW
    for the GLAB creation to be succesful.

    ie When prompted by the PML code select the Design Object in a View and the system automatically creates the GLAB in the digitised view.

    I already have the code for creating the label etc but not to determine what view the Design object is represented in and then automatically select the LAYE.


    thanks

    Wayne
  • ID VIEW@ command gives you a possibility to get the VIEW object by clicking any item un the view, even desing objects

    May be this helps you
  • Thanks Colin

    that method works partially

    ideally what I want is to is digitise once to
    - select the design object
    - access the sheet X Y coordinate used to select the object
    - identify the view/layer using this coordinate location
    - insert the glab on the design element at the xypos stored
  • Hi flip,

    I have done this procedure a little bit another way

    1. Identify the view, the designer is working in

    VIEW $* Identify view in explorer hierarchy
    handle (2,111) $* handles access to the site
      ID VIEW @
    endhandle


    2. Get the element to set the glab on

    ID PANE FLOOR EQUI @
    handle (61,528)  $*--User exit from interaction submode
      return
    endhandle
    !element = !!ce
    NEW GLAB ON $!element


    3. And the next step is to set the GLAB position on the screen

    at @


    So by this command drafter needs 2 or 3 clicks to set the GLAB on design element of the view