|
Property |
Type |
Description |
|
AftPerp |
Double |
Read Only. Get the Aft Perpendicular Location |
|
Amidships |
Double |
Read Only. Get the Midships Location |
|
Baseline |
Double |
Read Only. Get the Baseline Location |
|
DatumWL |
Double |
Read Only. Get the Datum Waterline Location |
|
FwdPerp |
Double |
Read Only. Get the Forward Perpendicular Location |
The FrameOfReference object is used to get the locations of the Fore and Aft perpendiculars, Midships, Baseline and the Design Waterline.
See Also:
Frame of Reference on page 21
This information could be very useful if you were trying to find the LCB as a proportion of the LWL, aft of the Forward Perpendicular (as used by the parametric transformation method)
Sub FindLCBPercent()
Dim msDesign As Maxsurf.Design
Set msDesign = msApp.Design
Dim AftPerp As Double
Dim FwdPerp As Double
Dim LCB As Double
msDesign.Hydrostatics.Calculate
AftPerp = msDesign.FrameOfReference.AftPerp
FwdPerp = msDesign.FrameOfReference.FwdPerp
LCB = msDesign.Hydrostatics.LCB
LCB_percent = (LCB - FwdPerp) / (AftPerp - FwdPerp)
MsgBox "LCB from fwd perp " & LCB_percent
End Sub