Use the Load command to create a new load.
strCmdForLoad = "<Load Name=""<Load Name>"" ID=""<Load ID>"" Type=""<Load Type>"" SubType=""0"" EntitiesCount=""<Entities Count>"" Subcases=""<Subcase Name>"" ArrowLength=""<Display Arrow Size>"" ArrowColor=""<Hex Color code in Decimal>"" DisplayDensity=""<Display Density>"" Direction=""<Components>"" CoordinateSystemID=""<Coordinate System ID>"" Display=""1"" Fx=""<Magnitude in X-DIR>"" Fy=""<Magnitude in Y-DIR>"" Fz=""<Magnitude in ZDIR>"" HasVariableLoad=""0"" HasHeatGenTable=""0"" HadConvCoeffTable=""0"" HasRadTable=""0"" HasTransTable=""0"" HasVelTransTable=""0"" HasAccTransTable=""0"" HasVelFreqTable=""0"" HasAccFreqTable=""0"" HasFreqTable=""0"" HasFreqPhaseTable=""0"" HasAccFreqPhaseTable=""0""><Entity1 GeometryType=""<Geometry Type>"" GeometryID=""<Vertex/Edge/Face ID>"" ComponentName=""<Component Name>""/></Load>"
Available load types include the following:
| Load Type | Value |
| Force | 0 |
| Moment | 1 |
| Pressure | 2 |
| Gravity | 3 |
| Heat Flux | 4 |
| Initial Condition | 5 |
| Body Temperature | 6 |
| Enforced Motion | 7 |
| Enforced Rotation | 8 |
| Temperature | 9 |
| Convection | 10 |
| Radiation | 11 |
| Heat Generation | 12 |
| Rotational Force | 13 |
| From Output | 14 |
| From FLOEFD | 15 |
| Distributed Load | 16 |
| Remote Force | 17 |
| Bearing Load | 18 |
When the enforced motion load type is used, the following sub types are available:
| Sub Type | Value |
| Force | 0 |
| Moment | 1 |
Available directions include the following:
| Direction | Value |
| Components | 0 |
| Normal to Surface | 1 |
| Geometric Entity | 2 |
Available geometry types include the following:
| Geometry Type | Value |
| Vertex | 0 |
| Edge | 1 |
| Face | 2 |
For example:
strCmdForLoad = "<Load Name=""Load 1"" ID=""1"" Type=""0"" SubType=""0"" EntitiesCount=""1"" Subcases=""1"" ArrowLength=""50"" ArrowColor=""65280"" DisplayDensity=""4"" Direction=""0"" CoordinateSystemID=""0"" Display=""1"" Fx=""0.0000000000[N]"" Fy=""-10.0000000000[N]"" Fz=""0.0000000000[N]"" HasVariableLoad=""0"" HasHeatGenTable=""0"" HadConvCoeffTable=""0"" HasRadTable=""0"" HasTransTable=""0"" HasVelTransTable=""0"" HasAccTransTable=""0"" HasVelFreqTable=""0"" HasAccFreqTable=""0"" HasFreqTable=""0"" HasFreqPhaseTable=""0"" HasAccFreqPhaseTable=""0""><Entity1 GeometryType=""2"" GeometryID=""4"" ComponentName=""Part 1""/></Load>"