From 1763a50769f78d499ad2f40ea1906e078abb1ada Mon Sep 17 00:00:00 2001 From: Leandro Heck <1277920+leoheck@users.noreply.github.com> Date: Wed, 24 Sep 2025 15:37:39 -0300 Subject: [PATCH 1/2] Fix typo --- lattice2ArrayFilter.py | 2 +- lattice2AttachablePlacement.py | 2 +- lattice2Placement.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lattice2ArrayFilter.py b/lattice2ArrayFilter.py index 2741fe0..705eddd 100644 --- a/lattice2ArrayFilter.py +++ b/lattice2ArrayFilter.py @@ -314,7 +314,7 @@ def ExplodeArray(feature): plms = lattice2BaseFeature.getPlacementsList(feature) features_created = [] for i in range(len(plms)): - af = makeArrayFilter(name = 'Placment') + af = makeArrayFilter(name = 'Placement') af.Label = u'Placement' + str(i) af.Base = feature af.FilterType = 'specific items' diff --git a/lattice2AttachablePlacement.py b/lattice2AttachablePlacement.py index b0d08d3..9702e31 100644 --- a/lattice2AttachablePlacement.py +++ b/lattice2AttachablePlacement.py @@ -207,7 +207,7 @@ def GetResources(self): def Activated(self): try: - CreateAttachablePlacement(name= "Placment") + CreateAttachablePlacement(name= "Placement") except Exception as err: msgError(err) diff --git a/lattice2Placement.py b/lattice2Placement.py index 9db1b88..6cb609e 100644 --- a/lattice2Placement.py +++ b/lattice2Placement.py @@ -242,7 +242,7 @@ def GetResources(self): def Activated(self): FreeCADGui.Selection.clearSelection() - CreateLatticePlacement(name= "Placment", mode= self.mode) + CreateLatticePlacement(name= "Placement", mode= self.mode) if self.mode == "Custom": FreeCADGui.runCommand("Std_Placement") From 88f60baf84ddb03d7197a708af1b0afb3ade0747 Mon Sep 17 00:00:00 2001 From: Leandro Heck <1277920+leoheck@users.noreply.github.com> Date: Wed, 24 Sep 2025 15:53:11 -0300 Subject: [PATCH 2/2] Remove colon at the end of some menus --- lattice2ArrayFilter.py | 2 +- lattice2ArrayFromShape.py | 2 +- lattice2AttachablePlacement.py | 2 +- lattice2BoundBox.py | 2 +- lattice2Inspect.py | 2 +- lattice2InterpolateGroup.py | 2 +- lattice2PopulateChildren.py | 2 +- lattice2PopulateCopies.py | 2 +- lattice2RecomputeLocker.py | 2 +- lattice2SeriesGroup.py | 2 +- lattice2SubLink.py | 2 +- 11 files changed, 11 insertions(+), 11 deletions(-) diff --git a/lattice2ArrayFilter.py b/lattice2ArrayFilter.py index 705eddd..5d08593 100644 --- a/lattice2ArrayFilter.py +++ b/lattice2ArrayFilter.py @@ -300,7 +300,7 @@ def GetDefaultCommand(self): # return the index of the tuple of the default comm return 0 def GetResources(self): - return { 'MenuText': 'Array filter:', + return { 'MenuText': 'Array filter', 'ToolTip': 'Array filter: tool to extract specific elements from lattice2 arrays.'} def IsActive(self): # optional diff --git a/lattice2ArrayFromShape.py b/lattice2ArrayFromShape.py index 0c3395a..577c874 100644 --- a/lattice2ArrayFromShape.py +++ b/lattice2ArrayFromShape.py @@ -281,7 +281,7 @@ def GetDefaultCommand(self): # return the index of the tuple of the default comm return 0 def GetResources(self): - return { 'MenuText': 'Array from shape:', 'ToolTip': 'Array from shape: make array of placements from children of a compound'} + return { 'MenuText': 'Array from shape', 'ToolTip': 'Array from shape: make array of placements from children of a compound'} def IsActive(self): # optional return True diff --git a/lattice2AttachablePlacement.py b/lattice2AttachablePlacement.py index 9702e31..425b6cb 100644 --- a/lattice2AttachablePlacement.py +++ b/lattice2AttachablePlacement.py @@ -261,7 +261,7 @@ def GetDefaultCommand(self): # return the index of the tuple of the default comm return 0 def GetResources(self): - return { 'MenuText': 'Attached Placement:', + return { 'MenuText': 'Attached Placement', 'ToolTip': 'Attached Placement (group): tools to work with attached placement objects.'} def IsActive(self): # optional diff --git a/lattice2BoundBox.py b/lattice2BoundBox.py index 79736c8..c08ad29 100644 --- a/lattice2BoundBox.py +++ b/lattice2BoundBox.py @@ -420,7 +420,7 @@ def GetDefaultCommand(self): # return the index of the tuple of the default comm return 0 def GetResources(self): - return { 'MenuText': 'Bounding Box:', + return { 'MenuText': 'Bounding Box', 'ToolTip': 'Bounding Box: make a box that precisely fits a shape.'} def IsActive(self): # optional diff --git a/lattice2Inspect.py b/lattice2Inspect.py index cb9d960..7899a14 100644 --- a/lattice2Inspect.py +++ b/lattice2Inspect.py @@ -153,7 +153,7 @@ def GetDefaultCommand(self): # return the index of the tuple of the default comm return 0 def GetResources(self): - return { 'MenuText': 'Inspect:', 'ToolTip': 'Inspect: tools to analyze shape structure.'} + return { 'MenuText': 'Inspect', 'ToolTip': 'Inspect: tools to analyze shape structure.'} def IsActive(self): # optional return True diff --git a/lattice2InterpolateGroup.py b/lattice2InterpolateGroup.py index 7cb3a30..b0dcf32 100644 --- a/lattice2InterpolateGroup.py +++ b/lattice2InterpolateGroup.py @@ -40,7 +40,7 @@ def GetDefaultCommand(self): # return the index of the tuple of the default comm return 0 def GetResources(self): - return { 'MenuText': 'Interpolation features:', + return { 'MenuText': 'Interpolation features', 'ToolTip': 'Interpolation features (group): creating placements between occurrences.'} def IsActive(self): # optional diff --git a/lattice2PopulateChildren.py b/lattice2PopulateChildren.py index 6bbcf9a..8c11366 100644 --- a/lattice2PopulateChildren.py +++ b/lattice2PopulateChildren.py @@ -342,7 +342,7 @@ def GetDefaultCommand(self): # return the index of the tuple of the default comm return 0 def GetResources(self): - return { 'MenuText': 'Populate with Children:', + return { 'MenuText': 'Populate with Children', 'ToolTip': 'Populate with Children: put children of compound at corresponding placements in an array of placements.'} def IsActive(self): # optional diff --git a/lattice2PopulateCopies.py b/lattice2PopulateCopies.py index 4337330..7d05897 100644 --- a/lattice2PopulateCopies.py +++ b/lattice2PopulateCopies.py @@ -369,7 +369,7 @@ def GetDefaultCommand(self): # return the index of the tuple of the default comm return 0 def GetResources(self): - return { 'MenuText': 'Populate with copies:', + return { 'MenuText': 'Populate with copies', 'ToolTip': 'Populate with copies: put a copy of an object at every placement in an array of placements.'} def IsActive(self): # optional diff --git a/lattice2RecomputeLocker.py b/lattice2RecomputeLocker.py index b2ab040..762e135 100644 --- a/lattice2RecomputeLocker.py +++ b/lattice2RecomputeLocker.py @@ -430,7 +430,7 @@ def GetDefaultCommand(self): # return the index of the tuple of the default comm return 0 def GetResources(self): - return { 'MenuText': 'Lattice recompute control:', + return { 'MenuText': 'Lattice recompute control', 'ToolTip': 'Document recompute controlling tools from Lattice2 workbench', 'CmdType':"ForEdit"} diff --git a/lattice2SeriesGroup.py b/lattice2SeriesGroup.py index 88e41f2..4cf5467 100644 --- a/lattice2SeriesGroup.py +++ b/lattice2SeriesGroup.py @@ -42,7 +42,7 @@ def GetDefaultCommand(self): # return the index of the tuple of the default comm return 0 def GetResources(self): - return { 'MenuText': 'Series features:', + return { 'MenuText': 'Series features', 'ToolTip': 'Series features (group): features that collect permutations of an object by changing dependent objects.'} def IsActive(self): # optional diff --git a/lattice2SubLink.py b/lattice2SubLink.py index 132cab2..4965849 100644 --- a/lattice2SubLink.py +++ b/lattice2SubLink.py @@ -339,7 +339,7 @@ def GetDefaultCommand(self): # return the index of the tuple of the default comm return 0 def GetResources(self): - return { 'MenuText': 'Sublink:', + return { 'MenuText': 'Sublink', 'ToolTip': 'Sublink (group): extract elements from shapes.'} def IsActive(self): # optional