请选择 进入手机版 | 继续访问电脑版

[知识工程] Ctia知识工程约束创建

[复制链接]
查看508 | 回复0 | 2021-6-23 17:55:21 | 显示全部楼层 |阅读模式
可用约束列表
约束类型示例
  • 固定 (Fix)
let pathstring1 (String)
let pathstring2 (String)

pathstring1 = Root > CreatePathString(Part3.1,Part3\PartBody\Plane.1 )
pathstring2 = Root > CreatePathString(Product1.1\Part2.1 ,Part2\PartBody\Plane.2 )
Root > CreateConstraint("MyFixConstraint","Fix",pathstring1)

  • 偏移 (Offset)
let pathPubPlane(String)
let ctr(MfLengthConstraint)

Product1.1 > CreatePublication(Product1.1\Part2.1 , Part2\PartBody\Plane.2 , "Plane")
pathPubPlane=Root > CreatePathString(Product1.1, "Plane")
ctr = Root > CreateConstraint("MyOffsetConstraint","Offset", pathPubPlane, "Part3.1\Part3\PartBody\Plane.1") ctr.MfLength = 50mm
  • 相合 (Coincidence)
let pathstring1 (String)
let pathstring2 (String)
pathstring1 = Root  > CreatePathString(Part3.1,Part3\PartBody\Plane.1 )
pathstring2 = Root  > CreatePathString(Product1.1\Part2.1 ,Part2\PartBody\Plane.2 )
Root > CreateConstraint("MyCoincidenceConstraint","Coincidence",pathstring1,pathstring2)

  • 角度 (Angle)
let pathstring1 (String)
let pathstring2 (String)

pathstring1 = Root  > CreatePathString(Part3.1,Part3\PartBody\Plane.1 )
pathstring2 = Root  > CreatePathString(Product1.1\Part2.1 ,Part2\PartBody\Plane.2 )
Root > CreateConstraint("MyAngleConstraint","Angle",pathstring1,pathstring2)

  • 平面角度 (Planar Angle)
let pathstring1 (String)
let pathstring2 (String)
let pathstring3 (String)

pathstring1 = Root  > CreatePathString(Part3.1,Part3\PartBody\Plane.1 )
pathstring2 = Root  > CreatePathString(Product1.1\Part2.1 ,Part2\PartBody\Plane.2 )
pathstring3 = Root > CreatePathString(Product1.1\Part2.1 ,Part2\PartBody\Sketch.2 )
Message("# | #",pathstring1, pathstring2, pathstring3)
Root > CreateConstraint("MyPlanarAngle","Planarangle",pathstring1, pathstring2, pathstring3)

  • 平行度约束 (Parallelism)
let pathstring1 (String)
let pathstring2 (String)

pathstring1 = Root  > CreatePathString(Part3.1,Part3\PartBody\Plane.1 )
pathstring2 = Root  > CreatePathString(Product1.1\Part2.1 ,Part2\PartBody\Plane.2 )
Root > CreateConstraint("MyParallelismConstraint","Parallelism",pathstring1,pathstring2)

  • 垂直度 (Perpendicularity)
let pathstring1 (String)
let pathstring2 (String)

pathstring1 = Root  > CreatePathString(Part3.1,Part3\PartBody\Plane.1 )
pathstring2 = Root  > CreatePathString(Product1.1\Part2.1 ,Part2\PartBody\Plane.2 ) Root > CreateConstraint("MyPerpendicularityConstraint","Perpendicularity",pathstring1,pathstring2)

  • 曲面接触 (Surface Contact)
let pathstring1 (String)
let pathstring2 (String)

pathstring1 = Root  > CreatePathString(Product1.1\Part2.1 ,Part3\PartBody\Pad.1 )
pathstring2 = Root  > CreatePathString(Product1.1\Part2.1 ,Part2\PartBody\Pad.1 )
Root > CreateConstraint("MySurfaceContactConstraint","SurfaceContact",pathstring1,pathstring2)

  • 直线接触 (Line Contact)
let pathstring1 (String)
let pathstring2 (String)

pathstring1 = Root  > CreatePathString(Product1.1\Part2.1 ,Part3\PartBody\Line.1 )
pathstring2 = Root  > CreatePathString(Product1.1\Part2.1 ,Part2\PartBody\Line.1 )
Root > CreateConstraint("MyLineContactConstraint","LineContact",pathstring1,pathstring2)

  • 点接触 (Point Contact)
let pathstring1 (String)
let pathstring2 (String)

pathstring1 = Root  > CreatePathString(Product1.1\Part2.1 ,Part3\PartBody\Point.1 )
pathstring2 = Root  > CreatePathString(Product1.1\Part2.1 ,Part2\PartBody\Point.1 )
Root > CreateConstraint("MyPointContactConstraint","PointContact",pathstring1,pathstring2)

  • 直线环形接触 (Line Annular Contact)
let pathstring1 (String)
let pathstring2 (String)

pathstring1 = Root  > CreatePathString(Product1.1\Part2.1 ,Part3\PartBody\Line.1 )
pathstring2 = Root  > CreatePathString(Product1.1\Part2.1 ,Part2\PartBody\Line.1 )
Root > CreateConstraint("MyLineAnnularContactConstraint","LineAnnularContact",pathstring1,pathstring2)


回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则