APIWord格式.docx

上传人:b****4 文档编号:6475420 上传时间:2023-05-06 格式:DOCX 页数:14 大小:39.07KB
下载 相关 举报
APIWord格式.docx_第1页
第1页 / 共14页
APIWord格式.docx_第2页
第2页 / 共14页
APIWord格式.docx_第3页
第3页 / 共14页
APIWord格式.docx_第4页
第4页 / 共14页
APIWord格式.docx_第5页
第5页 / 共14页
APIWord格式.docx_第6页
第6页 / 共14页
APIWord格式.docx_第7页
第7页 / 共14页
APIWord格式.docx_第8页
第8页 / 共14页
APIWord格式.docx_第9页
第9页 / 共14页
APIWord格式.docx_第10页
第10页 / 共14页
APIWord格式.docx_第11页
第11页 / 共14页
APIWord格式.docx_第12页
第12页 / 共14页
APIWord格式.docx_第13页
第13页 / 共14页
APIWord格式.docx_第14页
第14页 / 共14页
亲,该文档总共14页,全部预览完了,如果喜欢就下载吧!
下载资源
资源描述

APIWord格式.docx

《APIWord格式.docx》由会员分享,可在线阅读,更多相关《APIWord格式.docx(14页珍藏版)》请在冰点文库上搜索。

APIWord格式.docx

Getthedistancetoanotherpoint.

获取到另一个点的距离。

P1.DistanceTo("

P2"

)orP1.DistanceTo(L1.StartPoint)

SlopeTo("

Gettheslopetoanotherpoint.

获取到另一个点的坡度。

P1.SlopeTo("

)orP1.SlopeTo(L1.StartPoint)

IsValid

Determinewhetheratargetisassignedandisvalidtouse.

确定是否制定了目标并且是否有效可用。

DistanceToSurface(surfacetarget)

Gettheverticaldistancetoasurfacetarget.

获取到目标曲面的垂直距离。

P1.DistanceToSurface(ExistingSurface)>

0.

∙IfP1isabovethesurface,apositivevalueisreturned.

∙IfP1isbelowthesurface,anegativevalueisreturned.

如果P1高出曲面,返回正值;

如果P1低于曲面,返回负值。

L1(AL1)Class

L1(AL1)类

L1toL1000isreservedasSubassemblyLinks.AL1toAL1000areavailabletorepresentauxiliarylinks.

L1至L1000保留为部件的连接,AL1至AL1000用于辅助连接。

Slope

Gettheslopeofalink.

获取连接的坡度。

Theslopeispositiveifthelinkisinupwarddirection.

如果连接方向是向上的则坡度为正值。

Length

Getanabsolutelength.

获取绝对长度。

Apositivevalueisalwaysreturned.

永远返回正值。

Xlength

Getalink'

shorizontallength.

获取一个连接的水平投影长度。

Ylength

sverticallength.

获取一个连接的垂直投影长度。

StartPoint

Getthestartpointofalink.

获取连接的起点。

Togetthestartpoint'

sX:

L1.StartPoint.X

要获取起点的X:

L1.StartPoint.X

EndPoint

Gettheendpointofalink.

获取连接的终点。

MaxY

GetthemaximumYelevationfromalink'

spoints.

获取连接点的最大高程值。

MinY

GettheminimumYelevationfromthelink'

获取连接点的最小高程值。

MaxInterceptY(slope)

Applythehighestinterceptofagivenlink'

spointstothestartofanotherlink.

将给定连接点的最高截距点套用到另一个连接的起点。

TheYelevationisrelativetoOriginpoint.

Thisisusedinrehabsubassembliestofindthecriticaldepthformill/overlay.

高程Y相对于原点。

它用于修复部件,用来寻找mill/overlay的临界深度。

MinInterceptY(slope)

Applythelowestinterceptofagivenlink'

将给定连接点的最低截距点套用到另一个连接的起点。

LinearRegressionSlope

Doalinearregressiononthepointsinalinktofindthebestfitslopebetweenallofthem.

对连接上的点进行线性回归来确定所有点之间的最佳拟合坡度。

Thisisusedinrehabsubassembliestofindtheslopeoftheexistingpavement.

它用于修复部件,用来寻找铺面的坡度。

Bothoftheselinearregressionfunctionsarebasedonstandardformulasforlinearregression.

这里两个线性回归函数都是基于标准的线性回归公式。

LinearRegressionInterceptY

FindtheYvalueofthelinearregressionline(atthestartpointofthelink).

寻找线性回归线的Y值(在连接的起点处)。

确定目标是否指定并且是否有效可用。

HasIntersection(Link2IDasstring,ExtendLink1asbool=false,ExtendLink2asbool=false)

Determinewhetherthecurrentlinkintersectswithanotherlink.

确定是否与另一连接相交。

Threeparametersareavailable:

三个参数可用:

∙Link2ID:

stringspecifyingtheintersectinglink.Enterintersectionlinknameinquotationmarks.

指定相交连接的字符串,在双引号中输入连接名称。

∙ExtendLink1:

booleanvaluespecifyingwhetherLink1isextended.ThedefaultvalueisFalse.

指定是否延伸连接1的布尔值,默认值是False。

∙ExtendLink2:

booleanvaluespecifyingwhetherLink2isextended.ThedefaultvalueisFalse.

指定是否延伸连接2的布尔值,默认值是False。

Examples:

L1.HasIntersection("

L2"

true,true)

SEClass

SE类

HasLeftLI

Returntrueifleftlaneinsidesuperelevationslopeispresent.

如果存在左侧车道内侧超高坡度,则传回真。

HasLeftLO

Returntrueifleftlaneoutsidesuperelevationslopeispresent.

如果存在左侧车道外侧超高坡度,则传回真。

HasLeftSI

Returntrueifleftshouderinsidesuperelevationslopeispresent.

如果存在左侧路肩内侧超高坡度,则传回真。

HasLeftSO

Returntrueifleftshouderoutsidesuperelevationslopeispresent.

如果存在左侧路肩外侧超高坡度,则传回真。

HasRightLI

Returntrueifrightlaneinsidesuperelevationslopeispresent.

如果存在右侧车道内侧超高坡度,则传回真。

HasRightLO

Returntrueifrightlaneoutsidesuperelevationslopeispresent.

如果存在右侧车道外侧超高坡度,则传回真。

HasRightSI

Returntrueifrightshouderinsidesuperelevationslopeispresent.

如果存在右侧路肩内侧超高坡度,则传回真。

HasRightSO

Returntrueifrightshouderoutsidesuperelevationslopeispresent.

如果存在右侧路肩外侧超高坡度,则传回真。

LeftLI

Returnleftlaneinsidesuperelevationslope.

传回左侧车道内侧超高坡度。

LeftLO

Returnleftlaneoutsidesuperelevationslope.

传回左侧车道外侧超高坡度。

LeftSI

Returnleftshouderinsidesuperelevationslope.

传回左侧路肩内侧超高坡度。

LeftSO

Returnleftshouderoutsidesuperelevationslope.

传回左侧路肩外侧超高坡度。

RightLI

Returnrightlaneinsidesuperelevationslope.

传回右侧车道内侧超高坡度。

RightLO

Returnrightlaneoutsidesuperelevationslope.

传回右侧车道外侧超高坡度。

RightSI

Returnrightshouderinsidesuperelevationslope.

传回右侧路肩内侧超高坡度。

RightSO

Returnrightshouderoutsidesuperelevationslope.

传回右侧路肩外侧超高坡度。

OffsetTargetClass

目标偏移类

OffsetTarget.IsValid

Gettheoffsetvalueofthetarget.

获取目标的偏移值。

OffsetTarget.Offset

ElevationTargetClass

目标高程类

ElevationTarget.IsValid

Gettheelevationvalueofatarget.

获取目标的高程值。

ElevationTarget.Elevation

SurfaceTargetClass

目标曲面类

SurfaceTarget.isValid

BaselineClass

基线类

Station

Getthecurrentstationonthebaselinealignment.

在基准线定线上取得目前的桩号。

Getthecurrentelevationonthebaseline.

在基准线上取得目前的高程。

RegionStart

Getthestartstationofthecurrentregion.

取得目前区域的起点桩号。

RegionEnd

Gettheendstationofthecurrentregion.

取得目前区域的终点桩号。

Grade

Getthegradeofthebaselineprothecurrentstation.

取得目前桩号处基准线纵断面的坡度比。

TurnDirection

Gettheturndirectionatthecurrentstation,basedonthecurvegroup.

根据曲线群组,取得目前桩号处的转向。

Dependingontheresultfoundatthecurrentstation,theresultisreturnedinoneofthreeways:

根据在目前桩号处找到的结果,将以三种方式之一传回结果:

∙Leftturn:

-1 

左转向:

-1

∙Notoncurve:

0不在曲线上:

0

∙Rightturn:

1右转:

1

EnumerationTypeClass

枚举类型类

Value

Returnthestringvalueofthecurrentenumerationitem.

传回目前枚举项的字符串值。

SAClass

SA类

Thisclasschecksthestatusofanoverallsubassembly.

此类检查整个部件的状态。

IsLayout

ReturnTrueifthecurrentpreviewmodeisLayoutMode.

如果预览模式是布局模式则返回真。

SubassemblyName.IsLayout

CantClass

Cant类

PivotType

Returnsthepivotmethodassignedtothecurrentcurve.

传回指定给目前曲线的旋转方式。

∙-1:

LowSideRail(leftrail)-1:

低侧轨道(左轨道)

∙0:

CenterBaseline(centerline)0:

中心基准线(中心线)

∙1:

HighSideRail(rightrail)1:

高侧轨道(右轨道)

LeftRailDeltaElevation

Returnsthedifferentialelevationfortheleftrail.

传回左轨道的差别高程。

RightRailDeltaElevation

Returnsthedifferentialelevationfortherightrail.

传回右轨道的差别高程。

TrackWidth

ReturnstheTrackWidththatisassignedtothealignment.

传回指定给定线的轨道宽度。

IsDefined

Determineswhethercanthasbeencalculatedonthealignment.

决定是否已根据定线计算铁路铁路铁路超高。

IF(Cant.IsDefined,True,False)

APIFunctionExamples

API函数样例

UsetheAPIfunctionstogetparametervaluesfromothergeometryelements.

使用API函数从其他几何图形元素取得参数值。

ToseeexamplesofAPIfunctions,openthefollowing 

SamplePKTfile:

若要查看API函数的样例,请打开以下PKT样例文件:

APIFunctionExamples.pkt

ThefollowingtableexplainseachoftheAPIfunctionsthatareusedinthisexample.

下表说明了此范例中使用的每种API函数。

CutorFillDecision

填挖判断

AP10.Y<

P1.Y

CheckswhethertheYvalueofAP10islessthantheYvalueofP1:

检查AP10的Y值是否小于P1的Y值:

∙IfTrue,theFillcaseisused

∙IfFalse,theCutcaseisused

如果为真,则使用填方情况

如果为假,则使用挖方情况

FillDecision

填方判断

P1.DistanceToSurface(Surface)>

2

CheckswhetherthedistancebetweenP1andtheSurfaceisgreaterthan2:

检查P1和曲面之间的距离是否大于2:

∙IfTrue,theHighFillcase(slopetothesurfaceat-200%)isused

∙IfFalse,theLowFillcase(slopethesurfaceat-100%)isused

如果为真,则使用“高填方”情况(地形坡度-200%)

如果为假,则使用“低填充”情况(地形坡度-100%)

CutDecision

挖方判断

-2

CheckswhetherthedistancebetweenP1andtheSurfaceisgreaterthan-2:

检查P1和曲面之间的距离是否大于-2:

∙IfTrue,theDeepCutcase(slopetothesurfaceat100%)isused

∙IfFalse,theShallowCutcase(slopethesurfaceat200%)isused

如果为真,则使用“深挖”情况(地形坡度100%)

如果为假,则使用“浅挖”情况(地形坡度200%)

P4Slope

P4坡度

L1.Slope

ApplytheslopethatiscalculatedforL1.

使用L1的坡度

P4DeltaY

P4增量Y

P2.Y-P3.Y

ApplyaYvaluethatisrelativetotheverticaldistancefromthepreviouspoint(P3).

使用相对于前一点P3的垂直距离的Y值。

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 解决方案 > 学习计划

copyright@ 2008-2023 冰点文库 网站版权所有

经营许可证编号:鄂ICP备19020893号-2