Skip to content

Commit

Permalink
Merge pull request #507 from kbwbe/tmp
Browse files Browse the repository at this point in the history
Tmp
  • Loading branch information
kbwbe authored Sep 10, 2022
2 parents 58517c2 + 485eaa1 commit eea6546
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion InitGui.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
__author__ = 'kbwbe'


A2P_VERSION = 'V0.4.58'
A2P_VERSION = 'V0.4.58a'

import FreeCAD
import FreeCADGui
Expand Down
9 changes: 9 additions & 0 deletions a2p_recursiveUpdatePlanner.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,15 @@ class a2p_recursiveUpdateImportedPartsCommand:
def Activated(self):
a2plib.setAutoSolve(True) # makes no sense without autosolve = ON
doc = FreeCAD.activeDocument()

if doc is None:
QtGui.QMessageBox.information(
QtGui.QApplication.activeWindow(),
translate("a2p_recursiveUpdateImportedPartsCommand","No active document found!"),
translate("a2p_recursiveUpdateImportedPartsCommand","Before recursive updating parts, you have to open an assembly file.")
)
return

fileName = doc.FileName
workingDir,basicFileName = os.path.split(fileName)

Expand Down
2 changes: 1 addition & 1 deletion package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package format="1" xmlns="https://wiki.freecad.org/Package_Metadata">
<name>A2plus</name>
<description>Another assembly workbench for FreeCAD, following and extending Hamish's Assembly 2 workbench hence Assembly2plus. The main goal of A2plus is to create a very simple, easy to use, and not over-featured workbench for FreeCAD assemblies. Using the KISS principle: KEEP IT SIMPLE, STUPID</description>
<version>0.4.58</version>
<version>0.4.58a</version>
<date>2022-01-24</date>
<maintainer email="[email protected]">kbwbe</maintainer>
<license file="LICENSE">LGPLv2.1</license>
Expand Down

0 comments on commit eea6546

Please sign in to comment.