- •3.1 What Lua Scripting?
- •3.2 Common Lua Command Set
- •3.3 Magnetics Preprocessor Lua Command Set
- •3.3.1 Object Add/Remove Commands
- •3.3.2 Geometry Selection Commands
- •3.3.3 Object Labeling Commands
- •3.3.4 Problem Commands
- •3.3.5 Mesh Commands
- •3.3.6 Editing Commands
- •3.3.7 Zoom Commands
- •3.3.8 View Commands
- •3.3.9 Object Properties
- •3.3.10 Miscellaneous
- •3.4 Magnetics Post Processor Command Set
- •3.4.1 Data Extraction Commands
- •3.4.2 Selection Commands
- •3.4.3 Zoom Commands
- •3.4.4 View Commands
- •3.4.5 Miscellaneous
3.4.5 Miscellaneous
• mo close() Closes the current post-processor instance.
• mo refreshview() Redraws the current view.
• mo reload() Reloads the solution from disk.
• mo savebitmap("filename") saves a bitmapped screen shot of the current view to the file
specified by "filename". Note that if you use a path you must use two backslashes (e.g.
"c:\\temp\\myfemmfile.fem"). If the file name contains a space (e.g. file names like
c:\program files\stuff) you must enclose the file name in (extra) quotes by using a \"
sequence. For example:
mo_save_bitmap("\"c:\\temp\\screenshot.bmp\"")
• mo savemetafile("filename") saves a metafile screenshot of the current view to the file
specified by "filename", subject to the printf-type formatting explained previously for
the savebitmap command.
• mo shownames(flag) This function allow the user to display or hide the block label names
on screen. To hide the block label names, flag should be 0. To display the names, the
parameter should be set to 1.
