Syntax
smbPosgcb(Nr)
Input Parameter
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
- Nr: This parameter represents the grid position where the gcb should be set. It is an integer value that specifies the desired position within a predefined grid layout.
Function Workflow
- The function
smbPosgcb
is called with a single argument, Nr
, which indicates the target grid position.
- 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.
- The result from
smbNewGridPos(Nr)
is then used as an argument for the smbSetPosition
function.
- 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