[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

# RE: [femm] Lua zoom & grid

- To: <femm@yahoogroups.com>
- Subject: RE: [femm] Lua zoom & grid
- From: "Carl Kopin" <ckopin@davinciresearch.com>
- Date: Tue, 5 Feb 2002 15:58:25 -0700
- Thread-index: AcGuiucKji83NqCGRkuZRMpxl72RdwADThaw
- Thread-topic: [femm] Lua zoom & grid

    Thanks Robin, that helped me and, I am sure, you will find the zoom problems!

    Carl

    -----Original Message-----
    From: Robin Cornelius [mailto:robin.cornelius@btinternet.com]
    Sent:	Saturday, 02 February 2002 14:16
    To:	femm@yahoogroups.com
    Subject:	RE: [femm] Lua zoom & grid

    Ok first the ...grid...() commands in the preprocessor are not there !. So
    that is why you are having trouble with them. They are only (currently?) in
    the post processor.

    The lua error "attempt to call '...' (a nil value)" means that the function
    (or variable) you are trying to use doesn't exist.

    as for snapgrid() in the post processor

    the format is snapgrid("on") and snapgrid("off") but there is a bug I have
    just detected it is reversed! Sorry for that one, i'll hold my hand up.

    the correct code should be (in luadoc.cpp) :-

    if(temp=="off"){
    theView->SnapFlag=FALSE;
    MMnu->CheckMenuItem(ID_SNAP_GRID, MF_UNCHECKED);
    tc->CheckButton(ID_SNAP_GRID,FALSE);
    }
    else{
    theView->SnapFlag=TRUE;
    MMnu->CheckMenuItem(ID_SNAP_GRID, MF_CHECKED);
    tc->CheckButton(ID_SNAP_GRID,TRUE);
    }

    I had =="on" in the if statement!

    Now I will investigate zoom

    Regards

    Robin Cornelius

    Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/

- Prev by Date: Re: [femm] FEMM + MathCad
- Next by Date: [femm] Lua zoom & grid
- Previous by thread: RE: [femm] Lua zoom & grid
- Next by thread: [femm] Lua zoom & grid
- Index(es):
  - Date
  - Thread