計測ライン(線分)の長さを計算
Namespace: fvalgcliAssembly: fvalgcli (in fvalgcli.dll) Version: 3.1.0.0 (3.1.0.11)
Syntax
C# |
---|
public static int fnFIE_edge1d_calc_projection_line_length(
DSGMT_T line,
ref int length
) |
Visual Basic |
---|
Public Shared Function fnFIE_edge1d_calc_projection_line_length (
line As DSGMT_T,
ByRef length As Integer
) As Integer |
Return Value
Type:
Int32
以下のエラーコードを返します。
エラーコード:f_err | 内容 |
---|
F_ERR_NONE | 正常終了 |
F_ERR_INVALID_PARAM | 不正なパラメータが渡された
|
F_ERR_NO_LICENCE | ライセンスエラー、または未初期化エラー |
Examples
C# | Copy |
---|
using System;
using System.Collections.Generic;
using System.Text;
using fvalgcli;
namespace TC
{
public partial class FIE
{
public void fnFIE_edge1d_calc_projection_line_length(DSGMT_T line)
{
try
{
int length = 0;
int status = api.fnFIE_edge1d_calc_projection_line_length(line, ref length);
Assert.IsTrue(status == (int)f_err.F_ERR_NONE, "fnFIE_edge1d_calc_projection_line_length: エラーが発生しました。({0})", (f_err)status);
Console.WriteLine("fnFIE_edge1d_calc_projection_line_length");
Console.WriteLine("length={0}", length);
}
finally
{
}
}
}
} |
Visual Basic | Copy |
---|
Imports System.Collections.Generic
Imports System.Text
Imports fvalgcli
Public Partial Class FIE
Public Sub fnFIE_edge1d_calc_projection_line_length(line As DSGMT_T)
Try
Dim length As Integer = 0
Dim status As Integer = api.fnFIE_edge1d_calc_projection_line_length(line, length)
Assert.IsTrue(status = CInt(f_err.F_ERR_NONE), "fnFIE_edge1d_calc_projection_line_length: エラーが発生しました。({0})", CType(status, f_err))
Console.WriteLine("fnFIE_edge1d_calc_projection_line_length")
Console.WriteLine("length={0}", length)
Finally
End Try
End Sub
End Class |
See Also