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