top of page


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...
Admin
Jun 23, 20241 min read
3 views
0 comments


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...
Admin
Jun 23, 20241 min read
0 views
0 comments


C# Conditions and IF statements example
Here is a simple console application for letter grade calculation. using System.Numerics; Console.WriteLine("MidTerm Grade:"); byte...
Admin
Jun 23, 20241 min read
1 view
0 comments
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...
Admin
Jun 23, 20241 min read
1 view
0 comments
Console.ReadKey()
Generalley this command is used for terminating the session. It asks to user to input any key. Console.WriteLine("press a button:");...
Admin
Jun 7, 20241 min read
0 views
0 comments
C# Console.Read()
This code only allows you input one character. Console.WriteLine("Input a character:"); int ch = Console.Read(); Console.Write("Character...
Admin
Jun 7, 20241 min read
0 views
0 comments
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...
Admin
Feb 19, 20241 min read
3 views
0 comments
TCL file for showing element configuras
This code helps you to find element configuration in Hypermesh *createmarkpanel elems 1 'Select Elems' set elems [hm_getmark elems 1]...
Admin
Feb 14, 20241 min read
0 views
0 comments
NASTRAN SOLVER
Nastran solver has a specific code number foreach type of analysis. Model input file (bdf, dat) starts with these code.
Admin
Feb 12, 20241 min read
23 views
0 comments
Creating for loop in tcl
You can create a for loop in TCL like below; for {set i 0} { $i < 5} {incr i} { puts “Loop number is : $i” } Output: Loop number is : 1...
Admin
Feb 12, 20241 min read
10 views
0 comments
Creating multiple properties in Hypermesh with TCL
You can create shell properties with the code belowMaterial id is 1001 and thickness is 1. Before the running code , create a material...
Admin
Feb 12, 20241 min read
19 views
0 comments
Creating components with TCL in Hypermesh
For creating multiple components in HYPERMESH with TCL, you can use the code below. for {set i 1000} {$i <1250} {incr i} {*createentity...
Admin
Feb 11, 20241 min read
40 views
0 comments
bottom of page