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

# Re: [FEMM] some lua questions

- To: FEMM mailing list <femm@list.foster-miller.net>
- Subject: Re: [FEMM] some lua questions
- From: David Meeker <dmeeker@ieee.org>
- Date: Tue, 13 Apr 2004 21:33:36 -0400
- In-reply-to: <OFA7E97ADF.0119E099-ON85256E75.005F81AA-85256E75.005FEC17@checkpt.com>
- List-archive: <http://femm.foster-miller.net/pipermail/femm>
- List-help: <mailto:femm-request@list.foster-miller.net?subject=help>
- List-id: FEMM mailing list <femm.list.foster-miller.net>
- List-post: <mailto:femm@list.foster-miller.net>
- List-subscribe: <http://femm.foster-miller.net/mailman/listinfo/femm>, <mailto:femm-request@list.foster-miller.net?subject=subscribe>
- List-unsubscribe: <http://femm.foster-miller.net/mailman/listinfo/femm>, <mailto:femm-request@list.foster-miller.net?subject=unsubscribe>
- References: <OFA7E97ADF.0119E099-ON85256E75.005F81AA-85256E75.005FEC17@checkpt.com>
- Reply-to: FEMM mailing list <femm@list.foster-miller.net>
- User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040113 MultiZilla/1.6.0.0e

`RONALD.SALESKY@checkpt.com wrote:`

> `
> Hello,`
> `Is there a way to access the FEMM materials library from a LUA script?`

`
There isn't a way to access the materials library. However, you can get the same effect by defining a file that contains just the materials that you want and loading it at the beginning of your Lua script to get definitions of the materials that you need.`

> `Also, is there a way to pass variables from a LUA script running under the FEMM editor to the FEMM viewer?`

`
Yes, although in FEMM 3.3 and lower, this is sort of a kludge. Check the documentation of the runpost command in the manual--it shows how to pass a small amount of information via the call to run the postprocessor. Otherwise, you can use a temporary file to pass variables (i.e. write them in the preprocessor, read them in the postprocessor). The Lua scrips on the examples page at http://femm.foster-miller.com/examples.htm use the temporary file method.`
`In v4, there is only one instance of Lua that controls both the pre- and post-processor at the same time, eliminating the problem of passing information from the preprocessor tothe postprocessor.`
`Dave.`

- Follow-Ups:
  - [FEMM] Another lua question
    - From: "Fabio" <fmilanesi@tin.it>

- References:
  - [FEMM] some lua questions
    - From: RONALD.SALESKY@checkpt.com

- Prev by Date: Re: [FEMM] Updated development version
- Next by Date: Re: [FEMM] Updated development version
- Previous by thread: [FEMM] some lua questions
- Next by thread: [FEMM] Another lua question
- Index(es):
  - Date
  - Thread