Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

List and Export linked files #370

Closed
wants to merge 16 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
122 changes: 65 additions & 57 deletions InitGui.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,23 @@
###################################################################################
#
# InitGui.py
#
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
# MA 02110-1301, USA.
#
#
#
#
###################################################################################


Expand Down Expand Up @@ -140,6 +140,8 @@ def Initialize(self):
self.dot()
import makeBomCmd # creates the parts list
self.dot()
import exportFiles
self.dot()
import HelpCmd # shows a basic help window
self.dot()
import showHideLcsCmd # shows/hides all the LCSs
Expand Down Expand Up @@ -201,39 +203,42 @@ def Initialize(self):
"""
def assemblyMenuItems(self):
commandList = [ "Asm4_newModel",
"Asm4_newPart",
"Asm4_newBody",
"Asm4_newGroup",
"Asm4_newSketch",
"Asm4_newPart",
"Asm4_newBody",
"Asm4_newGroup",
"Asm4_newSketch",
'Asm4_createDatum',
self.FastenersCmd,
self.FastenersCmd,
"Separator",
"Asm4_insertLink",
"Asm4_mirrorPart",
"Asm4_circularArray",
"Asm4_expressionArray",
"Asm4_variantLink",
"Asm4_insertLink",
"Asm4_mirrorPart",
"Asm4_circularArray",
"Asm4_expressionArray",
"Asm4_variantLink",
"Separator",
"Asm4_cloneFastenersToAxes",
"Asm4_importDatum",
"Asm4_shapeBinder",
"Asm4_cloneFastenersToAxes",
"Asm4_importDatum",
"Asm4_shapeBinder",
"Separator",
"Asm4_infoPart",
"Asm4_makeLocalBOM",
"Asm4_makeBOM",
"Asm4_Measure",
"Asm4_infoPart",
"Asm4_makeLocalBOM",
"Asm4_makeBOM",
"Asm4_listLinkedFilesTree",
"Asm4_listLinkedFiles",
"Asm4_exportFiles",
"Asm4_Measure",
'Asm4_showLcs',
'Asm4_hideLcs',
"Asm4_addVariable",
"Asm4_delVariable",
"Asm4_openConfigurations",
"Asm4_Animate",
"Asm4_addVariable",
"Asm4_delVariable",
"Asm4_openConfigurations",
"Asm4_Animate",
]
return commandList

def constraintsMenuItems(self):
commandList = [ "Asm4_placeLink",
"Asm4_releaseAttachment",
"Asm4_releaseAttachment",
"Separator",
"Asm4_updateAssembly",
"Separator",
Expand All @@ -242,34 +247,37 @@ def constraintsMenuItems(self):

def assemblyToolbarItems(self):
commandList = [ "Asm4_newModel",
"Asm4_newPart",
"Asm4_newBody",
"Asm4_newGroup",
"Asm4_infoPart",
"Asm4_insertLink",
self.FastenersCmd,
"Asm4_newPart",
"Asm4_newBody",
"Asm4_newGroup",
"Asm4_infoPart",
"Asm4_insertLink",
self.FastenersCmd,
"Separator",
"Asm4_newSketch",
"Asm4_newSketch",
'Asm4_createDatum',
"Asm4_importDatum",
"Asm4_importDatum",
"Asm4_shapeBinder",
"Separator",
"Asm4_placeLink",
"Asm4_releaseAttachment",
"Asm4_placeLink",
"Asm4_releaseAttachment",
"Asm4_updateAssembly",
"Separator",
"Asm4_mirrorPart",
"Asm4_circularArray",
"Asm4_expressionArray",
"Asm4_variantLink",
"Asm4_mirrorPart",
"Asm4_circularArray",
"Asm4_expressionArray",
"Asm4_variantLink",
"Separator",
'Asm4_showLcs',
'Asm4_hideLcs',
"Asm4_makeLocalBOM",
"Asm4_makeBOM",
"Asm4_Measure",
"Asm4_makeLocalBOM",
"Asm4_makeBOM",
"Asm4_listLinkedFilesTree",
"Asm4_listLinkedFiles",
"Asm4_exportFiles",
"Asm4_Measure",
"Asm4_variablesCmd",
"Asm4_openConfigurations",
"Asm4_openConfigurations",
"Asm4_Animate",
]
return commandList
Expand Down Expand Up @@ -302,22 +310,22 @@ def ContextMenu(self, recipient):
'Asm4_showLcs' ,
'Asm4_hideLcs' ]
# commands to appear in the 'Assembly' sub-menu in the contextual menu (right-click)
assemblySubMenu =[ "Asm4_insertLink" ,
"Asm4_placeLink" ,
assemblySubMenu =[ "Asm4_insertLink" ,
"Asm4_placeLink" ,
"Asm4_importDatum" ,
'Asm4_FSparameters' ,
'Separator' ,
'Asm4_applyConfiguration']
# commands to appear in the 'Create' sub-menu in the contextual menu (right-click)
createSubMenu =["Asm4_newSketch",
"Asm4_newBody",
"Asm4_newLCS",
"Asm4_newAxis",
"Asm4_newPlane",
"Asm4_newPoint",
"Asm4_newHole",
"Asm4_insertScrew",
"Asm4_insertNut",
createSubMenu =["Asm4_newSketch",
"Asm4_newBody",
"Asm4_newLCS",
"Asm4_newAxis",
"Asm4_newPlane",
"Asm4_newPoint",
"Asm4_newHole",
"Asm4_insertScrew",
"Asm4_insertNut",
"Asm4_insertWasher",
'Separator',
'Asm4_newConfiguration']
Expand Down Expand Up @@ -350,7 +358,7 @@ def dot(self):
FreeCADGui.updateGui()



"""
+-----------------------------------------------+
| actually make the workbench |
Expand Down
63 changes: 63 additions & 0 deletions Resources/icons/Asm4_Export_PartsList.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
71 changes: 71 additions & 0 deletions Resources/icons/Asm4_List_Liked_Files.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.