 | CCHIMERArAtomicWeight Method |
Return the atomic weight of a particular element.
Namespace:
Geosoft.Desktop.GXNetX
Assembly:
geosoft.desktop.gxnetx (in geosoft.desktop.gxnetx.dll) Version: 2025.1.0.25
Syntaxpublic static double rAtomicWeight(
CGXNETCore gxNetShared,
string element
)
public static double rAtomicWeight(
CGXNETCore gxNetShared,
string element
)
Public Shared Function rAtomicWeight (
gxNetShared As CGXNETCore,
element As String
) As Double
Public Shared Function rAtomicWeight (
gxNetShared As CGXNETCore,
element As String
) As Double
public:
static double rAtomicWeight(
CGXNETCore^ gxNetShared,
String^ element
)
public:
static double rAtomicWeight(
CGXNETCore^ gxNetShared,
String^ element
)
static member rAtomicWeight :
gxNetShared : CGXNETCore *
element : string -> float
static member rAtomicWeight :
gxNetShared : CGXNETCore *
element : string -> float
Parameters
- gxNetShared
- Type: GeoEngine.Core.GXNetXCGXNETCore
A shared CGXNETCore - element
- Type: SystemString
Element name (case insensitive)
Return Value
Type:
DoubleThe atomic weight of the given element.
Remarks
If the input string is not an element symbol (elements in the range
1-92, "H" to "U"), then returns a dummy (<define>GS_R8DM</define>).
See Also