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

Lua 3.1 patch



Dear David and Group,

I have done some updates to the lua part of Femm to fix some of the
outstanding bugs/known issues

I have posted the files on the files section of the group. The files in the
3.1-patch(bins).zip can be used to simply replace the 'official' files in
the 3.1 rough draft release.

The src zip also contains a changelog.txt file with details of all (well
very very nearly all) the changes

At present there are no real new features as I am concentrating on getting
every thing we've got going first !
The only new commands are some that were missed.

-------------------------
Femme Pre processor

Fixed save_bitmap()
Added save_metafile() -
Fixed select_group() - so it dosn't clear any previously selected items use
clear_selected() instead
Added exit_pre() - to exit pre-processor
Added refresh_view()
Added pause() - same as post processor, a ok dialog box to pause script

-------------------------------------------------------------------
Femme Post processor

Fixed save_bitmap()
Added save_metafile()
added select_point() to allow the selection of pre-existing nodes in the
definitions of contours
added hide_point_props() and show_point_props() - shows or hides the point
props dialog bar
added refresh_view()
added global variable command line parsing
added invisible mode !

to activate invisible mode in the post-processor use
run_post("c:\\myluascrip.lua","-windowhide")
the window will return on an lua error condition (via _ALERT function) or if
the end of lua execution is reached and an exit_post() is not found

it is now also possible to send variables to the post-processor from the
pre-processor use
run_post("c:\\myluascrip.lua","-lua-var=bitmapfilename=bitmap1.bmp")
all variables MUST be passed in the form -lua-var=variablename=value they
are always string types and you must use internal lua conversion functions
to get data as number types.
The variables can be accessed directly in the post-processor eg with with
above example
A save_bitmap(bitmapfilename) will save a bitmap as bitmap1.bmp !

Many variables can be passed in this way, up to the limit of the operating
system for command line parameters ?

Other changes

The script file name in run_post() no longer requires a leading - but if you
have an existing script it will still work OK

For consistency all femm lua commands will now be of the form xxx_yyy_zzz
instead of xxxyyyzzz. All old commands of the form xxxyyyzzz will still work
and have been made available as xxx_yyy_zzz as well.


Have Fun


Robin Cornelius