Videoquickwritelastcommand

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Video/Audio/PDF
Introduced first in SolidGeometry 5.3, Creation date: 2023-02-23, Last change: 2025-08-18

writes in a video the line of the last command

Description

It is also automtically called by Videoquickstart


See Also: lastcommand , Videoquickstart , Videoquickcloseandopen , drawnowvid

Example Illustration

 missing image of Videoquickwritelastcommand

Syntax

Videoquickwritelastcommand

Examples


Videoquickstart; Videoquickcloseandopen; % Just open and close




Copyright 2023-2025 Tim C. Lueth. All rights reserved. The code is the property of Tim C. Lueth and may not be redistributed or modified without explicit written permission. This software may be used free of charge for academic research and teaching purposes only. Commercial use, redistribution, modification, or reverse engineering is strictly prohibited. Access to source code is restricted and granted only under specific agreements. For licensing inquiries or commercial use, please contact: Tim C. Lueth

Algorithm (Workflow)

This function, Videoquickwritelastcommand, is designed to write the last executed command into a video. It is part of the SolidGeometry library and is used for visualization purposes.

Input Parameters

The function does not take any input parameters.

Process

  1. The function constructs a string, stext, which contains a message indicating that the video was created using the last command executed. This is done using the sprintf function, which formats the string to include the last command retrieved by the lastcommand function.
  2. The function then attempts to write this text into a video using the Videoquickwritetextpage function. The parameters passed to this function are:
    • An empty string for the first parameter, which might represent a title or header.
    • stext as the main content to be written.
    • Two additional empty strings, possibly for footer or additional formatting options.
    • The number 12, which could represent font size or another formatting parameter.
  3. If the attempt to write to the video fails (e.g., due to an error in Videoquickwritetextpage), the function catches the exception and instead prints the text to the debug console using dbprintf.

Output

The function does not return any output. Its primary purpose is to write the last command to a video or print it to the console if an error occurs.

Related Functions

Algorithm explaination created using ChatGPT on 2025-08-18 22:55. (Please note: No guarantee for the correctness of this explanation)

Last html export of this page out of FM database by TL: 2025-09-21