FreeCAD: Workbench Refactor
This commit is contained in:
parent
037827669a
commit
a58dcdafb1
386 changed files with 997 additions and 64533 deletions
17
freecad_workbench/utils/freecad_processor.py
Normal file
17
freecad_workbench/utils/freecad_processor.py
Normal file
|
@ -0,0 +1,17 @@
|
|||
|
||||
import sys
|
||||
from utils.freecad_exporters import publish_project_database
|
||||
import FreeCAD as App
|
||||
|
||||
def process_file():
|
||||
|
||||
filename = App.getDocument(App.ActiveDocument.Label)
|
||||
publish_project_database(filename)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
if len(sys.argv) != 2:
|
||||
print("Использование: python main.py ")
|
||||
else:
|
||||
filename = sys.argv[1]
|
||||
process_file(filename)
|
Loading…
Add table
Add a link
Reference in a new issue