Support "Assemble them all" trajectory generation from CAD
This commit is contained in:
parent
47773be8d4
commit
a38c3bec5a
42 changed files with 537 additions and 119 deletions
16
asp/src/model/asm.py
Normal file
16
asp/src/model/asm.py
Normal file
|
@ -0,0 +1,16 @@
|
|||
from distutils.dir_util import copy_tree
|
||||
from src.model.enum import Enum
|
||||
|
||||
class Assembly:
|
||||
def generateSubAssembly(self, assembly: list[str]):
|
||||
asm = {}
|
||||
inc = 0
|
||||
for el in assembly:
|
||||
asm[str("asm" + str(inc))] = {
|
||||
"part": el,
|
||||
"assembly": assembly[0:inc],
|
||||
}
|
||||
inc += 1
|
||||
return asm
|
||||
def copy(self,generationFolder,format,outPath ):
|
||||
copy_tree(generationFolder + format, outPath + Enum.folderPath)
|
Loading…
Add table
Add a link
Reference in a new issue