asm4 parse feature

This commit is contained in:
IDONTSUDO 2023-03-03 19:02:46 +03:00
parent 6fcd2566b5
commit 3d3a063a5d
6 changed files with 474 additions and 143 deletions

View file

@ -13,6 +13,8 @@
# License along with this library. If not, see <http://www.gnu.org/licenses/>.
import FreeCAD
import Tools
from usecases.asm4parser_usecase import Asm4StructureParseUseCase
if FreeCAD.GuiUp:
import FreeCADGui
from pivy import coin
@ -309,7 +311,11 @@ Tools.spawnClassCommand("FrameCommand",
{"Pixmap": str(os.path.join(icondir, "frame.svg")),
"MenuText": "Make a free frame",
"ToolTip": "Make a freestanding reference frame."})
Tools.spawnClassCommand("ASM4StructureParsing",
Asm4StructureParseUseCase().initParse,
{"Pixmap": str(os.path.join(icondir, "assembly4.svg")),
"MenuText": "Make a ASM4 parsing",
"ToolTip": "Make a ASM4 1"})
Tools.spawnClassCommand("SelectedPartFrameCommand",
makeSelectedPartFrames,
{"Pixmap": str(os.path.join(icondir, "partframe.svg")),