Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/python-3.x/15.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 3.x 在FreeCad Assembly 4中插入LCS和其他模型的Python脚本_Python 3.x_Freecad - Fatal编程技术网

Python 3.x 在FreeCad Assembly 4中插入LCS和其他模型的Python脚本

Python 3.x 在FreeCad Assembly 4中插入LCS和其他模型的Python脚本,python-3.x,freecad,Python 3.x,Freecad,对于每个模型,我希望在固定点插入多个LCS。我有足够的时间插入LCS本身并设置偏移量。但LCS也需要一个参考点。有人知道添加参考点的脚本吗(在GUI中,它列在坐标系参数下)?此外,是否有人知道将其他模型插入部件的脚本 App.getDocument('Model_1').Model.newObject('PartDesign::CoordinateSystem','LCS_1') App.getDocument('Model_1').getObject('LCS_1').AttachmentOf

对于每个模型,我希望在固定点插入多个LCS。我有足够的时间插入LCS本身并设置偏移量。但LCS也需要一个参考点。有人知道添加参考点的脚本吗(在GUI中,它列在坐标系参数下)?此外,是否有人知道将其他模型插入部件的脚本

App.getDocument('Model_1').Model.newObject('PartDesign::CoordinateSystem','LCS_1')
App.getDocument('Model_1').getObject('LCS_1').AttachmentOffset = App.Placement(App.Vector(-185.8, 0, 2.375),  App.Rotation(0, 0, 0))