找回密码
 注册
Simdroid-非首页
查看: 99|回复: 1

[5. Python] python中MakeSketchTransform(...)的用法

[复制链接]
发表于 2011-4-20 17:31:55 | 显示全部楼层 |阅读模式 来自 黑龙江哈尔滨
MakeSketchTransform(...)
的用法不理解参数的意思,哪位能给解释一下。以下为例:

t = p.MakeSketchTransform(sketchPlane=f.findAt(coordinates=(69.150002, 20.0,
    20.0)), sketchUpEdge=e1.findAt(coordinates=(79.15, 22.5, 20.0)),
    sketchPlaneSide=SIDE1, origin=(39.575, 15.0, 20.0))



This method creates a Transform object. A Transform object is a 4x3 matrix of Floats that represents the transformation from sketch coordinates to part coordinates.
Required argument
sketchPlane
A Datum plane object or a planar Face object specifying the sketch plane.
Optional arguments

origin
A sequence of Floats specifying the X-, Y-, and Z-coordinates that will be used as the origin of the sketch. The default value is computed as the centroid of the face.


sketchOrientation
A SymbolicConstant specifying the orientation of sketchUpEdge on the sketch. Possible values are RIGHT, LEFT, TOP, and BOTTOM. The default value is RIGHT.





发表于 2011-4-21 11:35:02 | 显示全部楼层 来自 江苏南京
Simdroid开发平台
MakeSketchTransform是abquas中python模块的命令,不是python自身的。
从意思上看其功能是从草图坐标转换到零件图坐标。没用过abquas,其他的不好说。
回复 不支持

使用道具 举报

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

本版积分规则

Archiver|小黑屋|联系我们|仿真互动网 ( 京ICP备15048925号-7 )

GMT+8, 2024-5-6 10:54 , Processed in 0.057023 second(s), 11 queries , Gzip On, MemCache On.

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表