欢迎来到天天文库
浏览记录
ID:48445382
大小:17.76 KB
页数:2页
时间:2020-01-30
《SolidWorks二次开发配合函数.doc》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、IAssemblyDoc:Addmate3value=instance.AddMate3(MateTypeFromEnum,AlignFromEnum,Flip,Distance,DistanceAbsUpperLimit,DistanceAbsLowerLimit,GearRatioNumerator,GearRatioDenominator,Angle,AngleAbsUpperLimit,AngleAbsLowerLimit,ForPositioningOnly,ErrorStatus)Addmate的参数说明输入:(long)MateTypeFromEnum配合类型swMa
2、teType_e:swMateCOINCIDENT=0重合swMateCONCENTRIC=1同轴swMatePERPENDICULAR=2垂直swMatePARALLEL=3平行swMateTANGENT=4相切swMateDISTANCE=5间隔swMateANGLE=6角度swMateUNKNOWN=7未知swMateSYMMETRIC=8对称swMateCAMFOLLOWER=9凸轮从动件swMateGEAR=10齿轮swMateWIDTH=11宽度swMateLOCKTOSKETCH=12锁定草图swMateRACKPINION=13包小齿轮swMateMAXMATES=
3、14最大配合?swMatePATH=15轨迹swMateLOCK=16锁定swMateSCREW=17螺旋swMateLINEARCOUPLER=18线性耦合器swMateUNIVERSALJOINT=19万向接头swMateCOORDINATE=10并列swMateSLOT=Slot狭槽swMateHINGE=Hinge铰链swMateSLIDER=Slider滑动输入:(long)AlignFromEnum对齐方式swMateAlign_e:?swMateAlignALIGNED=0均衡的swMateAlignANTI_ALIGNED=1不均衡的swMateAlignCLOSE
4、ST=2最靠近的输入:(VARIANT_BOOL)FlipTrue翻转组件输入:(double)DistanceDistancevaluetousewithdistanceorlimitmates位置配合的距离值输入:(double)DistanceAbsUpperLimitAbsolutemaximumdistancevalue(seeRemarks)最大距离绝对值输入:(double)DistanceAbsLowerLimitAbsoluteminimumdistancevalue(seeRemarks)最小距离绝对值输入:(double)GearRatioNumeratorG
5、earrationumeratorvalueforgearmates齿轮传动中传动比分子值输入:(double)GearRatioDenominatorGearratiodenominatorvalueforgearmates齿轮传动中传动比分母值输入:(double)AngleAnglevaluetousewithanglemates与角配合的角度值输入:(double)AngleAbsUpperLimitAbsolutemaximumanglevalue最大角度绝对值输入:(double)AngleAbsLowerLimitAbsoluteminimumanglevalue最小
6、角度绝对值输入:(VARIANT_BOOL)ForPositioningOnlyTruepositionsthecomponentsaccordingtothematingrelationshipbutamaterelationshipisnotcreatedandreturned,falsedoesnotTRUE根据配合关系组件的位置没有创建?输入:(long)ErrorStatusswAddMateError_e:swAddMateError_ErrorUknown:UnknownerroroccurredswAddMateError_NoError:Success,noerr
7、orswAddMateError_IncorrectMateType:UnknownmatetypeormatetypenotpresentinswMateType_eswAddMateError_IncorrectAlignment:UnknownmatealignmentormatealignmnetisnotpresentinswMateAlign_eswAddMateError_IncorrectSelections:Incorrectselectionsfo
此文档下载收益归作者所有