smbPosgcb

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - SimMechanics
Introduced first in SolidGeometry 3.2, Creation date: 2016-12-25, Last change: 2025-09-14

sets the gcb to predefined position



See Also: smbPosgcb , smbSetPosition , smbNewGridPos

Example Illustration

 missing image of smbPosgcb (Nr)

Syntax

smbPosgcb(Nr)

Input Parameter

Nr: Grid position




Copyright 2016-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, smbPosgcb, is part of the SG-Library and is used to set the graphical callback block (gcb) to a predefined position within a grid. The function was introduced in SolidGeometry 3.2 and is authored by Tim Lueth.

Input Parameters

Function Workflow

  1. The function smbPosgcb is called with a single argument, Nr, which indicates the target grid position.
  2. Inside the function, the smbNewGridPos function is called with Nr as its argument. This function calculates the new position coordinates based on the grid position number provided.
  3. The result from smbNewGridPos(Nr) is then used as an argument for the smbSetPosition function.
  4. The smbSetPosition function takes two arguments: the current graphical callback block (gcb) and the new position coordinates obtained from smbNewGridPos. It sets the position of the gcb to these new coordinates.

The function does not return any values, as its primary purpose is to update the position of the gcb within the grid.

Algorithm explaination created using ChatGPT on 2025-08-18 21:49. (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