API教学文案.docx
- 文档编号:14168263
- 上传时间:2023-06-21
- 格式:DOCX
- 页数:16
- 大小:41.35KB
API教学文案.docx
《API教学文案.docx》由会员分享,可在线阅读,更多相关《API教学文案.docx(16页珍藏版)》请在冰点文库上搜索。
API教学文案
P1(AP1)Class
P1(AP1)类
P1toP1000isreservedasSubassemblyPoints.AP1toAP1000areavailabletorepresentauxiliarypoints.
P1至P1000保留为部件的点,AP1至AP1000用于辅助点。
FunctionName函数名称
Description描述
Description注释
X
Getapoint'shorizontalposition,relativetotheOriginPointofSubassembly.
获取一个点的水平坐标,相对于部件的原点。
Example:
示例:
P1.X
∙IfSubassemblySideisRightandP1isontherightofOrigin,thenP1.XisPositive.
∙IfSubassemblySideisLeftandP1isontheleftofOrigin,thenP1.XisPositive.
如果部件是“右侧”,并且P1在原点右侧,则P1.X为正值。
如果部件是“左侧”,并且P1在原点左侧,则P1.X为正值。
Y
Getapoint'sverticalposition,relativetotheOriginPointofSubassembly.
获取一个点的垂直坐标,相对于部件的原点。
Offset
Getapoint'soffsetposition,relativetothebaseline.
获取一个点相对于基准线的偏移。
Ifthesubassemblyisattachedtoanoffsetbaseline,thentheoffsetvalueisrelativetotheoffsetbaseline.
如果部件被附着在一个偏移基准线上,偏移值将相对于这个基准线。
Elevation
Getapoint'selevationrelativeto0.0.
获取一个点相对于0.0的高程。
DistanceTo("point")
Getthedistancetoanotherpoint.
获取到另一个点的距离。
Example:
示例:
P1.DistanceTo("P2")orP1.DistanceTo(L1.StartPoint)
SlopeTo("point")
Gettheslopetoanotherpoint.
获取到另一个点的坡度。
Example:
示例:
P1.SlopeTo("P2")orP1.SlopeTo(L1.StartPoint)
IsValid
Determinewhetheratargetisassignedandisvalidtouse.
确定是否制定了目标并且是否有效可用。
DistanceToSurface(surfacetarget)
Gettheverticaldistancetoasurfacetarget.
获取到目标曲面的垂直距离。
Example:
示例:
P1.DistanceToSurface(ExistingSurface)>0.
∙
∙
(一)上海的经济环境对饰品消费的影响IfP1isabovethesurface,apositivevalueisreturned.
∙IfP1isbelowthesurface,anegativevalueisreturned.
如果P1高出曲面,返回正值;如果P1低于曲面,返回负值。
L1(AL1)Class
L1(AL1)类
L1toL1000isreservedasSubassemblyLinks.AL1toAL1000areavailabletorepresentauxiliarylinks.
L1至L1000保留为部件的连接,AL1至AL1000用于辅助连接。
FunctionName函数名称
Description描述
“碧芝”最吸引人的是那些小巧的珠子、亮片等,都是平日里不常见的。
店长梁小姐介绍,店内的饰珠有威尼斯印第安的玻璃珠、秘鲁的陶珠、奥利的施华洛世奇水晶、法国的仿金片、日本的梦幻珠等,五彩缤纷,流光异彩。
按照饰珠的质地可分为玻璃、骨质、角质、陶制、水晶、仿金、木制等种类,其造型更是千姿百态:
珠型、圆柱型、动物造型、多边形、图腾形象等,美不胜收。
全部都是进口的,从几毛钱一个到几十元一个的珠子,做一个成品饰物大约需要几十元,当然,还要决定于你的心意。
“碧芝”提倡自己制作:
端个特制的盘子到柜台前,按自己的构思选取喜爱的饰珠和配件,再把它们串成成品。
这里的饰珠和配件的价格随质地而各有同,所用的线绳价格从几元到一二十元不等,如果让店员帮忙串制,还要收取10%~20%的手工费。
Description注释
1996年“碧芝自制饰品店”在迪美购物中心开张,这里地理位置十分优越,交通四通八达,由于位于市中心,汇集了来自各地的游客和时尚人群,不用担心客流量的问题。
迪美有300多家商铺,不包括柜台,现在这个商铺的位置还是比较合适的,位于中心地带,左边出口的自动扶梯直接通向地面,从正对着的旋转式楼梯阶而上就是人民广场中央,周边4、5条地下通道都交汇于此,从自家店铺门口经过的90%的顾客会因为好奇而进去看一下。
Slope
Gettheslopeofalink.
获取连接的坡度。
Theslopeispositiveifthelinkisinupwarddirection.
如果连接方向是向上的则坡度为正值。
为了解目前大学生对DIY手工艺品制作的消费情况,我们于己于人2004年3月22日下午利用下课时间在校园内进行了一次快速抽样调查。
据调查本次调查人数共50人,并收回有效问卷50份。
调查分析如下:
Length
Getanabsolutelength.
获取绝对长度。
Apositivevalueisalwaysreturned.
永远返回正值。
据调查统计在对大学生进行店铺经营风格所考虑的因素问题调查中,发现有50%人选择了价格便宜些,有28%人选择服务热情些,有30%人选择店面装潢有个性,只有14%人选择新颖多样。
如图(1-5)所示Xlength
Getalink'shorizontallength.
获取一个连接的水平投影长度。
Apositivevalueisalwaysreturned.
永远返回正值。
调研课题:
Ylength
我们认为:
创业是一个整合的过程,它需要合作、互助。
大学生创业“独木难支”。
在知识经济时代,事业的成功来自于合作,团队精神。
创业更能培养了我们的团队精神。
我们一个集体的智慧、力量一定能够展示我们当代大学生的耐心.勇气和坚强的毅力。
能够努力克服自身的弱点,取得创业的成功。
Getalink'sverticallength.
获取一个连接的垂直投影长度。
Apositivevalueisalwaysreturned.
永远返回正值。
图1-5购物是对消费环境的要求分布StartPoint
Getthestartpointofalink.
获取连接的起点。
功能性手工艺品。
不同的玉石具有不同的功效,比如石榴石可以促进血液循环,改善风湿和关节炎;白水晶则可以增强记忆力;茶晶能够帮助镇定情绪,缓解失眠、头昏等症状。
顾客可以根据自己的需要和喜好自行搭配,每一件都独一无二、与众不同。
Example:
示例:
4.WWW。
google。
com。
cn。
大学生政策2004年3月23日Togetthestartpoint'sX:
L1.StartPoint.X
要获取起点的X:
L1.StartPoint.X
EndPoint
Gettheendpointofalink.
获取连接的终点。
MaxY
GetthemaximumYelevationfromalink'spoints.
获取连接点的最大高程值。
MinY
GettheminimumYelevationfromthelink'spoints.
获取连接点的最小高程值。
MaxInterceptY(slope)
Applythehighestinterceptofagivenlink'spointstothestartofanotherlink.
将给定连接点的最高截距点套用到另一个连接的起点。
TheYelevationisrelativetoOriginpoint.
Thisisusedinrehabsubassembliestofindthecriticaldepthformill/overlay.
高程Y相对于原点。
它用于修复部件,用来寻找mill/overlay的临界深度。
MinInterceptY(slope)
Applythelowestinterceptofagivenlink'spointstothestartofanotherlink.
将给定连接点的最低截距点套用到另一个连接的起点。
LinearRegressionSlope
Doalinearregressiononthepointsinalinktofindthebestfitslopebetweenallofthem.
对连接上的点进行线性回归来确定所有点之间的最佳拟合坡度。
Thisisusedinrehabsubassembliestofindtheslopeoftheexistingpavement.
它用于修复部件,用来寻找铺面的坡度。
Bothoftheselinearregressionfunctionsarebasedonstandardformulasforlinearregression.
这里两个线性回归函数都是基于标准的线性回归公式。
LinearRegressionInterceptY
FindtheYvalueofthelinearregressionline(atthestartpointofthelink).
寻找线性回归线的Y值(在连接的起点处)。
IsValid
Determinewhetheratargetisassignedandisvalidtouse.
确定目标是否指定并且是否有效可用。
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")
L1.HasIntersection("L2",true,true)
SEClass
SE类
FunctionName函数名称
Description描述
Description注释
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
目标偏移类
FunctionName函数名称
Description描述
Description注释
IsValid
Determinewhetheratargetisassignedandisvalidtouse.
确定目标是否指定并且是否有效可用。
Example:
示例:
OffsetTarget.IsValid
Offset
Gettheoffsetvalueofthetarget.
获取目标的偏移值。
Example:
示例:
OffsetTarget.Offset
ElevationTargetClass
目标高程类
FunctionName函数名称
Description描述
Description注释
IsValid
Determinewhetheratargetisassignedandisvalidtouse.
确定目标是否指定并且是否有效可用。
Example:
示例:
ElevationTarget.IsValid
Elevation
Gettheelevationvalueofatarget.
获取目标的高程值。
Example:
示例:
ElevationTarget.Elevation
SurfaceTargetClass
目标曲面类
FunctionName函数名称
Description描述
Description注释
IsValid
Determinewhetheratargetisassignedandisvalidtouse.
确定目标是否指定并且是否有效可用。
Example:
示例:
SurfaceTarget.isValid
BaselineClass
基线类
FunctionName函数名称
Description描述
Description注释
Station
Getthecurrentstationonthebaselinealignment.
在基准线定线上取得目前的桩号。
Elevation
Getthecurrentelevationonthebaseline.
在基准线上取得目前的高程。
RegionStart
Getthestartstationofthecurrentregion.
取得目前区域的起点桩号。
RegionEnd
Gettheendstationofthecurrentregion.
取得目前区域的终点桩号。
Grade
Getthegradeofthebaselineprofileatthecurrentstation.
取得目前桩号处基准线纵断面的坡度比。
TurnDirection
Gettheturndirectionatthecurrentstation,basedonthecurvegroup.
根据曲线群组,取得目前桩号处的转向。
Dependingontheresultfoundatthecurrentstation,theresultisreturnedinoneofthreeways:
根据在目前桩号处找到的结果,将以三种方式之一传回结果:
∙Leftturn:
-1 左转向:
-1
∙Notoncurve:
0不在曲线上:
0
∙Rightturn:
1右转:
1
EnumerationTypeClass
枚举类型类
FunctionName函数名称
Description描述
Description注释
Value
Returnthestringvalueofthecurrentenumerationitem.
传回目前枚举项的字符串值。
SAClass
SA类
Thisclasschecksthestatusofanoverallsubassembly.
此类检查整个部件的状态。
FunctionName函数名称
Description描述
Description注释
IsLayout
ReturnTrueifthecurrentpreviewmodeisLayoutMode.
如果预览模式是布局模式则返回真。
Example:
示例:
SubassemblyName.IsLayout
CantClass
Cant类
FunctionName函数名称
Description描述
Description注释
PivotType
Returnsthepivotmethodassignedtothecurrentcurve.
传回指定给目前曲线的旋转方式。
Dependingontheresultfoundatthecurrentstation,theresultisreturnedinoneofthreeways:
根据在目前桩号处找到的结果,将以三种方式之一传回结果:
∙-1:
LowSideRail(leftrail)-1:
低侧轨道(左轨道)
∙0:
CenterBaseline(centerline)0:
中心基准线(中心线)
∙1:
HighSideRail(rightrail)1:
高侧轨道(右轨道)
LeftRailDeltaElevation
Returnsthedifferentialelevationfortheleftrail.
传回左轨道的差别高程。
RightRailDeltaElevation
Returnsthedifferentialelevationfortherightrail.
传回右轨道的差别高程。
TrackWidth
ReturnstheTrackWidththatisassignedtothealignment.
传回指定给定线的轨道宽度。
IsDefined
Determineswhethercanthasbeencalculatedonthealignment.
决定是否已根据定线计算铁路铁路铁路超高。
Example:
示例:
IF(Cant.IsDefined,True,False)
APIFunctionExamples
API函数样例
UsetheAPIfunctionstogetparametervaluesfromothergeometryelements.
使用API函数从其他
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- API 教学 文案