top of page
Admin
13 minutes ago1 min read
Reading a csv file by using tcl
Reading a csv file procedure is similar to the other programming languages. # Open the CSV file in read mode set filePath...
0 views0 comments
Admin
Jan 22 min read
Understanding tk_messagebox in Tcl
The tk_messagebox module in Tcl is a versatile tool used to display dialog boxes in graphical user interface (GUI) applications. Whether...
2 views0 comments
Admin
Sep 28, 20241 min read
Obtain components dimensions with hm_getboundingbox
In hypermesh getting the values of the panel dimension are important for hand calculations or reporting the comps properties....
6 views0 comments
Admin
Jun 23, 20241 min read
Simple for loop in C#
To write all the number from 0 to 10 for (int i = 1; i <= 10; i++) { Console.Write($"{i} "); } output: 1 2 3 4 5 6 7 8 9 10 To write all...
2 views0 comments
Admin
Jun 23, 20241 min read
Swicth Case Example for C#
This console application use switch&case for detecting the day type which represents the simple example for C# Console.WriteLine("type a...
0 views0 comments
Admin
Jun 23, 20241 min read
C# Conditions and IF statements example
Here is a simple console application for letter grade calculation. using System.Numerics; Console.WriteLine("MidTerm Grade:"); byte...
1 view0 comments
Admin
Jun 23, 20241 min read
Prefix and Postfix increments in C#
Example at belows show prefix and postfix increments in C#. int x = 5; Console.WriteLine("x: {0}", x); //Output x: 5...
1 view0 comments
Admin
Jun 16, 20241 min read
Hypermesh Batch Mode
Hypermesh can be used in batch mode. Here is an example of creating a surface in batch mode. It means withouth opening hypermesh, you can...
36 views0 comments
Admin
Jun 7, 20241 min read
C# Console.ReadLine()
Console.ReadLine can be used for string input. Console.WriteLine("Input a text then press enter"); string text=Console.ReadLine();...
1 view0 comments
Admin
Jun 7, 20241 min read
Console.ReadKey()
Generalley this command is used for terminating the session. It asks to user to input any key. Console.WriteLine("press a button:");...
0 views0 comments
Admin
Jun 7, 20241 min read
C# Console.Read()
This code only allows you input one character. Console.WriteLine("Input a character:"); int ch = Console.Read(); Console.Write("Character...
0 views0 comments
Admin
May 13, 20241 min read
C# Placeholder
When you define a seri in C#, it follows the variables in the list provided. The seri is defined inside the Console.Writeline...
2 views0 comments
Admin
May 13, 20241 min read
C# Writeline vs Write
Write is used to output data without adding a newline character, while Writeline adds a newline character after the output...
3 views0 comments
Admin
Mar 24, 20241 min read
Obtain bar element thickness and width values
*createmarkpanel elems 1 "onyl select bar elements" set barlist [hm_getmark elems 1] foreach elemID $barlist {...
12 views0 comments
Admin
Mar 24, 20241 min read
get the dependent node of rbe3 element list
# Select the rbe3 elements only *createmarkpanel elements 1 "Select the rbe3 elements" set rbelist [hm_getmark elememts 1] # get the...
1 view0 comments
Admin
Feb 19, 20241 min read
Rename all properties with component name
This codes gets the names of selected components and assign these names to their properties. *createmarkpanel comps 1 "Select the...
2 views0 comments
Admin
Feb 18, 20242 min read
TCL GUI with simple procs
When you run this code it creates a simple gui for some procs. When you click buttons it calls a procedure and does defined operation....
1 view0 comments
Admin
Feb 14, 20241 min read
TCL for finding adjacent elements in Hypermesh
This code helps you to find elements around the element 50. *createmark elements 1 50 "50 is the element id" *findmark elements...
14 views0 comments
Admin
Feb 14, 20241 min read
Looping with foreach in TCL
When you have unsorted list, foreach can be handful set randomlist {orange blue 4 6 Türkiye 8 France cat dog} foreach i $randomlist {...
0 views0 comments
Admin
Feb 14, 20241 min read
While loop for TCL
Until i becomes 11 the loop continue to puts $i set i 1 while {$i < 11} { puts "i = $i" incr i } Output i = 1 i = 2 i = 3 i = 4 i = 5 i =...
1 view0 comments
bottom of page