こちらのトピですが、
パッチでつくった面に文字をどうやって乗せるのか - Autodesk Community
回答では、スケッチを作成するためには平面が必要な為、
パッチを使いサーフェス上に作っています。
どうせならパッチを作成せずに、マウスでクリックした位置に
平面を作ってしまってはどうだろうか? と思い
スプリクトを作成しました。
#FusionAPI_python - このスプリクトは不完全 import adsk.core, adsk.fusion, traceback def run(context): ui = None try: app = adsk.core.Application.get() ui = app.userInterface des = adsk.fusion.Design.cast(app.activeProduct) root = des.rootComponent plns = root.constructionPlanes plnInput = plns.createInput() msg = 'クリックした面上に、平面を作成 / ESCキー:中止' while True: try: sel = ui.selectEntity(msg,'Faces') except: return#break plnInput.setByTangentAtPoint(sel.entity, sel.point) plns.add(plnInput) except: if ui: ui.messageBox('Failed:\n{}'.format(traceback.format_exc()))
上手く行かないんです。何故だろう?