framework/grasp_poses_markup/main.py

30 lines
939 B
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import os
import FreeCADGui as Gui
import FreeCAD as App
from gui.init_gui import StabilityWorkbench
import json
def importObjAtPath(path: str):
import importOBJ
importOBJ.insert(u"" + path, App.ActiveDocument.Label)
pass
def getFullPathObj(assemblyFolder: str, name: str):
return assemblyFolder + 'sdf/meshes/' + name + '.obj'
def main():
App.newDocument()
#TODO(Mark): 1. Добавить парсер файлов пути генерации. Нужно определить неразмеченные детали и импортировать объекты, которые соответствуют неразмеченным деталям
#2. Добавить процедуру экспорта информации о разметке
#3.
Gui.SendMsgToActiveView("ViewSelection")
Gui.addWorkbench(StabilityWorkbench(''))
Gui.activateWorkbench("StabilityWorkbench")
main()