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

# Re: LUA NODE and SEGMENT EDIT

- To: femm@yahoogroups.com
- Subject: Re: LUA NODE and SEGMENT EDIT
- From: "David Meeker" <dcm3c@earthlink.net>
- Date: Wed, 11 Sep 2002 13:23:49 -0000
- In-reply-to: <1031750398.3d7f42fe161ab@webmail.if.ufrj.br>
- User-agent: eGroups-EW/0.82

    The command is actually "deleteselectednodes" with an 's' on the end.
    To call this function, you have to use the syntax:

    deleteselectednodes()

    with the parentheses on the end--this is a call to a function with no
    arguments. When I do this in the lua console window, the view is not
    immediately updated(i.e. the nodes are still visible on the screen),
    but the selected nodes actually do get deleted internally and go away
    the next time the view gets redrawn.

    --- In femm@y..., "<Joao Paulo Sinnecker>" <jps@i...> wrote:
    > Hi,
    >
    > I am facing some problems while editing with some LUA commands. I
    need to edit
    > nodes and segments(arcs) in my model. Adding nodes and segments
    works fine.
    > Selecting also works fine (they turn red). But when I try the delete
    commands,
    > I get either an error, or nothing heppens.
    >
    > An example of what I tried:
    >
    > addnode(50,45) (in polar mode)
    > selectnode (50,45)
    >
    > deleteselectednode
    >
    > This last command returns an error:
    >
    > error: `=` expected
    > last token read : `<eof>` at line 1 in string deleteselectednode
    >
    >
    > I tried to put something like: a=deleteselectednode and the error is
    removed,
    > but the node is not deleted.
    >
    > The same happens to arcs and segments.
    >
    > If somebody have an idea, I would appreciate...
    >
    > Thanks,
    >
    >
    > João Paulo Sinnecker
    > Instituto de Física - UFRJ
    > C.P. 68528
    > 21941-972 - Rio de Janeiro - RJ
    > voice : 55-21-2562 7319
    > fax : 55-21-2562 7368

- Follow-Ups:
  - Re: [femm] Re: LUA NODE and SEGMENT EDIT
    - From: "<Joao Paulo Sinnecker>" <jps@if.ufrj.br>

- References:
  - LUA NODE and SEGMENT EDIT
    - From: "<Joao Paulo Sinnecker>" <jps@if.ufrj.br>

- Prev by Date: LUA NODE and SEGMENT EDIT
- Next by Date: Re: [femm] Re: LUA NODE and SEGMENT EDIT
- Previous by thread: LUA NODE and SEGMENT EDIT
- Next by thread: Re: [femm] Re: LUA NODE and SEGMENT EDIT
- Index(es):
  - Date
  - Thread