The NodePreDisp object represents a prescribed displacement applied to a node as part of a load case. All the prescribed displacements applied in a particular load case are stored in a NodePreDisps collection. These displacements can be accessed via the PrescribedDisps property of the LoadCase object.
The NodePreDisp object is identical to the NodeLoad object except that the Value property of the NodePreDisp object returns a displacement or rotation instead of a force or a moment. The value of the displacement is specified in the current displacement or angular displacement units. Similarly, new displacements are added to a load case using the AddDisp or AddDisps methods of the NodePreDisps collection and these methods have the same syntax as the AddLoad and AddLoads methods of the NodeLoads collection. For example, the following code adds two prescribed displacements to the first load case.
Dim myLoad as Multiframe.NodePreDisp
Dim myNode as Multiframe.Node
With myFrame.LoadCases(1)
’Add prescribed displacement of
magnitude 7.5 units to node 12
set myLoad =
.PrescribedDisps.AddDisp(12,mfDOFx,7.5)
’Add prescribed rotation of magnitude
0.5 about the z-axis to node 7
set myNode = myFrame.Nodes(7)
set myLoad =
.PrescribedDisps.AddDisp(myNode,6,0.5)
End With