committed by
Kacper Donat
parent
627a89d8db
commit
2c7ee9b8ed
@@ -46,11 +46,11 @@ class CommandCreateAssembly:
|
||||
def GetResources(self):
|
||||
return {
|
||||
"Pixmap": "Geoassembly",
|
||||
"MenuText": QT_TRANSLATE_NOOP("Assembly_CreateAssembly", "Create Assembly"),
|
||||
"MenuText": QT_TRANSLATE_NOOP("Assembly_CreateAssembly", "New Assembly"),
|
||||
"Accel": "A",
|
||||
"ToolTip": QT_TRANSLATE_NOOP(
|
||||
"Assembly_CreateAssembly",
|
||||
"Create an assembly object in the current document, or in the current active assembly (if any). Limit of one root assembly per file.",
|
||||
"Creates an assembly object in the current document, or in the current active assembly (if any). Limit of one root assembly per file.",
|
||||
),
|
||||
"CmdType": "ForEdit",
|
||||
}
|
||||
@@ -68,7 +68,7 @@ class CommandCreateAssembly:
|
||||
return App.ActiveDocument is not None
|
||||
|
||||
def Activated(self):
|
||||
App.setActiveTransaction("Create assembly")
|
||||
App.setActiveTransaction("New Assembly")
|
||||
|
||||
activeAssembly = UtilsAssembly.activeAssembly()
|
||||
Gui.addModule("UtilsAssembly")
|
||||
|
||||
@@ -66,17 +66,17 @@ class CommandCreateBom:
|
||||
def GetResources(self):
|
||||
return {
|
||||
"Pixmap": "Assembly_BillOfMaterials",
|
||||
"MenuText": QT_TRANSLATE_NOOP("Assembly_CreateBom", "Create Bill of Materials"),
|
||||
"MenuText": QT_TRANSLATE_NOOP("Assembly_CreateBom", "Bill of Materials"),
|
||||
"Accel": "O",
|
||||
"ToolTip": "<p>"
|
||||
+ QT_TRANSLATE_NOOP(
|
||||
"Assembly_CreateBom",
|
||||
"Create a bill of materials of the current assembly. If an assembly is active, it will be a BOM of this assembly. Else it will be a BOM of the whole document.",
|
||||
"Creates a bill of materials of the current assembly. If an assembly is active, it will be a BOM of this assembly. Else it will be a BOM of the whole document.",
|
||||
)
|
||||
+ "</p><p>"
|
||||
+ QT_TRANSLATE_NOOP(
|
||||
"Assembly_CreateBom",
|
||||
"The BOM object is a document object that stores the settings of your BOM. It is also a spreadsheet object so you can easily visualize the BOM. If you don't need the BOM object to be saved as a document object, you can simply export and cancel the task.",
|
||||
"The BOM object is a document object that stores the settings of your BOM. It is also a spreadsheet object so you can easily visualize the BOM. If you do not need the BOM object to be saved as a document object, you can simply export and cancel the task.",
|
||||
)
|
||||
+ "</p><p>"
|
||||
+ QT_TRANSLATE_NOOP(
|
||||
@@ -370,28 +370,28 @@ class TaskAssemblyCreateBom(QtCore.QObject):
|
||||
layout = QtWidgets.QVBoxLayout()
|
||||
layout.setContentsMargins(10, 10, 10, 10)
|
||||
|
||||
options_title = QtWidgets.QLabel("<b>" + translate("Assembly", "Options:") + "</b>")
|
||||
options_title = QtWidgets.QLabel("<b>" + translate("Assembly", "Options") + "</b>")
|
||||
options_text = QtWidgets.QLabel(
|
||||
" - "
|
||||
+ translate(
|
||||
"Assembly",
|
||||
"Sub-assemblies children : If checked, Sub assemblies children will be added to the bill of materials.",
|
||||
"Sub-assembly children: the children of sub-assemblies will be included in the bill of materials",
|
||||
)
|
||||
+ "\n"
|
||||
" - "
|
||||
+ translate(
|
||||
"Assembly",
|
||||
"Parts children : If checked, Parts children will be added to the bill of materials.",
|
||||
"Parts children: the children of parts will be added to the bill of materials",
|
||||
)
|
||||
+ "\n"
|
||||
" - "
|
||||
+ translate(
|
||||
"Assembly",
|
||||
"Only parts : If checked, only Part containers and sub-assemblies will be added to the bill of materials. Solids like PartDesign Bodies, fasteners or Part workbench primitives will be ignored.",
|
||||
"Only parts: adds only part containers and sub-assemblies to the bill of materials. Solids like Part Design bodies, fasteners, or Part workbench primitives are ignored.",
|
||||
)
|
||||
+ "\n"
|
||||
)
|
||||
columns_title = QtWidgets.QLabel("<b>" + translate("Assembly", "Columns:") + "</b>")
|
||||
columns_title = QtWidgets.QLabel("<b>" + translate("Assembly", "Columns") + "</b>")
|
||||
columns_text = QtWidgets.QLabel(
|
||||
" - "
|
||||
+ translate(
|
||||
@@ -402,22 +402,22 @@ class TaskAssemblyCreateBom(QtCore.QObject):
|
||||
" - "
|
||||
+ translate(
|
||||
"Assembly",
|
||||
"Custom columns : 'Description' and other custom columns you add by clicking on 'Add column' will not have their data overwritten. If a column name starts with '.' followed by a property name (e.g. '.Length'), it will be auto-populated with that property value. These columns can be renamed by double-clicking or pressing F2 (Renaming a column will currently lose its data).",
|
||||
"Custom columns : 'Description' and other custom columns you add by clicking on 'Add column' will not have their data overwritten. If a column name starts with '.' followed by a property name (e.g. '.Length'), it will be auto-populated with that property value. These columns can be renamed by double-clicking or pressing F2 (renaming a column will currently lose its data).",
|
||||
)
|
||||
+ "\n"
|
||||
"\n"
|
||||
+ translate(
|
||||
"Assembly",
|
||||
"Any column (custom or not) can be deleted by pressing Del.",
|
||||
"Any column (custom or not), can be deleted by pressing the Delete key",
|
||||
)
|
||||
+ "\n"
|
||||
)
|
||||
export_title = QtWidgets.QLabel("<b>" + translate("Assembly", "Export:") + "</b>")
|
||||
export_title = QtWidgets.QLabel("<b>" + translate("Assembly", "Export") + "</b>")
|
||||
export_text = QtWidgets.QLabel(
|
||||
" - "
|
||||
+ translate(
|
||||
"Assembly",
|
||||
"The exported file format can be customized in the Spreadsheet workbench preferences.",
|
||||
"The exported file format can be customized in the Spreadsheet workbench preferences",
|
||||
)
|
||||
+ "\n"
|
||||
)
|
||||
|
||||
@@ -68,24 +68,23 @@ class CommandCreateJointFixed:
|
||||
pass
|
||||
|
||||
def GetResources(self):
|
||||
|
||||
return {
|
||||
"Pixmap": "Assembly_CreateJointFixed",
|
||||
"MenuText": QT_TRANSLATE_NOOP(
|
||||
"Assembly_CreateJointFixed",
|
||||
"Create Fixed Joint",
|
||||
"Fixed Joint",
|
||||
),
|
||||
"Accel": "F",
|
||||
"ToolTip": "<p>"
|
||||
+ QT_TRANSLATE_NOOP(
|
||||
"Assembly_CreateJointFixed",
|
||||
"1 - If an assembly is active : Create a joint permanently locking two parts together, preventing any movement or rotation.",
|
||||
"1 - If an assembly is active : Creates a joint permanently locking two parts together, preventing any movement or rotation",
|
||||
)
|
||||
+ "</p>"
|
||||
+ "<p>"
|
||||
+ QT_TRANSLATE_NOOP(
|
||||
"Assembly_CreateJointFixed",
|
||||
"2 - If a part is active : Position sub parts by matching selected coordinate systems. The second part selected will move.",
|
||||
"2 - If a part is active: Positions sub-parts by matching selected coordinate systems. The second part selected will move.",
|
||||
)
|
||||
+ "</p>",
|
||||
"CmdType": "ForEdit",
|
||||
@@ -106,15 +105,14 @@ class CommandCreateJointRevolute:
|
||||
pass
|
||||
|
||||
def GetResources(self):
|
||||
|
||||
return {
|
||||
"Pixmap": "Assembly_CreateJointRevolute",
|
||||
"MenuText": QT_TRANSLATE_NOOP("Assembly_CreateJointRevolute", "Create Revolute Joint"),
|
||||
"MenuText": QT_TRANSLATE_NOOP("Assembly_CreateJointRevolute", "Revolute Joint"),
|
||||
"Accel": "R",
|
||||
"ToolTip": "<p>"
|
||||
+ QT_TRANSLATE_NOOP(
|
||||
"Assembly_CreateJointRevolute",
|
||||
"Create a Revolute Joint: Allows rotation around a single axis between selected parts.",
|
||||
"Creates a revolute joint allowing rotation around a single axis between selected parts",
|
||||
)
|
||||
+ "</p>",
|
||||
"CmdType": "ForEdit",
|
||||
@@ -132,17 +130,14 @@ class CommandCreateJointCylindrical:
|
||||
pass
|
||||
|
||||
def GetResources(self):
|
||||
|
||||
return {
|
||||
"Pixmap": "Assembly_CreateJointCylindrical",
|
||||
"MenuText": QT_TRANSLATE_NOOP(
|
||||
"Assembly_CreateJointCylindrical", "Create Cylindrical Joint"
|
||||
),
|
||||
"MenuText": QT_TRANSLATE_NOOP("Assembly_CreateJointCylindrical", "Cylindrical Joint"),
|
||||
"Accel": "C",
|
||||
"ToolTip": "<p>"
|
||||
+ QT_TRANSLATE_NOOP(
|
||||
"Assembly_CreateJointCylindrical",
|
||||
"Create a Cylindrical Joint: Enables rotation along one axis while permitting movement along the same axis between assembled parts.",
|
||||
"Creates a cylindrical joint that allows rotation around and translation along a single axis between assembled parts",
|
||||
)
|
||||
+ "</p>",
|
||||
"CmdType": "ForEdit",
|
||||
@@ -160,15 +155,14 @@ class CommandCreateJointSlider:
|
||||
pass
|
||||
|
||||
def GetResources(self):
|
||||
|
||||
return {
|
||||
"Pixmap": "Assembly_CreateJointSlider",
|
||||
"MenuText": QT_TRANSLATE_NOOP("Assembly_CreateJointSlider", "Create Slider Joint"),
|
||||
"MenuText": QT_TRANSLATE_NOOP("Assembly_CreateJointSlider", "Slider Joint"),
|
||||
"Accel": "S",
|
||||
"ToolTip": "<p>"
|
||||
+ QT_TRANSLATE_NOOP(
|
||||
"Assembly_CreateJointSlider",
|
||||
"Create a Slider Joint: Allows linear movement along a single axis but restricts rotation between selected parts.",
|
||||
"Creates a slider joint that allows linear movement along a single axis, but restricts rotation between selected parts",
|
||||
)
|
||||
+ "</p>",
|
||||
"CmdType": "ForEdit",
|
||||
@@ -186,15 +180,14 @@ class CommandCreateJointBall:
|
||||
pass
|
||||
|
||||
def GetResources(self):
|
||||
|
||||
return {
|
||||
"Pixmap": "Assembly_CreateJointBall",
|
||||
"MenuText": QT_TRANSLATE_NOOP("Assembly_CreateJointBall", "Create Ball Joint"),
|
||||
"MenuText": QT_TRANSLATE_NOOP("Assembly_CreateJointBall", "Ball Joint"),
|
||||
"Accel": "B",
|
||||
"ToolTip": "<p>"
|
||||
+ QT_TRANSLATE_NOOP(
|
||||
"Assembly_CreateJointBall",
|
||||
"Create a Ball Joint: Connects parts at a point, allowing unrestricted movement as long as the connection points remain in contact.",
|
||||
"Creates a ball joint that connects parts at a point, allowing unrestricted movement as long as the connection points remain in contact",
|
||||
)
|
||||
+ "</p>",
|
||||
"CmdType": "ForEdit",
|
||||
@@ -212,20 +205,19 @@ class CommandCreateJointDistance:
|
||||
pass
|
||||
|
||||
def GetResources(self):
|
||||
|
||||
return {
|
||||
"Pixmap": "Assembly_CreateJointDistance",
|
||||
"MenuText": QT_TRANSLATE_NOOP("Assembly_CreateJointDistance", "Create Distance Joint"),
|
||||
"MenuText": QT_TRANSLATE_NOOP("Assembly_CreateJointDistance", "Distance Joint"),
|
||||
"Accel": "D",
|
||||
"ToolTip": "<p>"
|
||||
+ QT_TRANSLATE_NOOP(
|
||||
"Assembly_CreateJointDistance",
|
||||
"Create a Distance Joint: Fix the distance between the selected objects.",
|
||||
"Creates a distance joint that fixes the distance between the selected objects",
|
||||
)
|
||||
+ "</p><p>"
|
||||
+ QT_TRANSLATE_NOOP(
|
||||
"Assembly_CreateJointDistance",
|
||||
"Create one of several different joints based on the selection. "
|
||||
"Creates one of several different joints based on the selection"
|
||||
"For example, a distance of 0 between a plane and a cylinder creates a tangent joint. A distance of 0 between planes will make them co-planar.",
|
||||
)
|
||||
+ "</p>",
|
||||
@@ -244,15 +236,14 @@ class CommandCreateJointParallel:
|
||||
pass
|
||||
|
||||
def GetResources(self):
|
||||
|
||||
return {
|
||||
"Pixmap": "Assembly_CreateJointParallel",
|
||||
"MenuText": QT_TRANSLATE_NOOP("Assembly_CreateJointParallel", "Create Parallel Joint"),
|
||||
"MenuText": QT_TRANSLATE_NOOP("Assembly_CreateJointParallel", "Parallel Joint"),
|
||||
"Accel": "N",
|
||||
"ToolTip": "<p>"
|
||||
+ QT_TRANSLATE_NOOP(
|
||||
"Assembly_CreateJointParallel",
|
||||
"Create an Parallel Joint: Make the Z axis of selected coordinate systems parallel.",
|
||||
"Creates a parallel joint that makes the Z-axis of the selected coordinate systems parallel",
|
||||
)
|
||||
+ "</p>",
|
||||
"CmdType": "ForEdit",
|
||||
@@ -270,17 +261,16 @@ class CommandCreateJointPerpendicular:
|
||||
pass
|
||||
|
||||
def GetResources(self):
|
||||
|
||||
return {
|
||||
"Pixmap": "Assembly_CreateJointPerpendicular",
|
||||
"MenuText": QT_TRANSLATE_NOOP(
|
||||
"Assembly_CreateJointPerpendicular", "Create Perpendicular Joint"
|
||||
"Assembly_CreateJointPerpendicular", "Perpendicular Joint"
|
||||
),
|
||||
"Accel": "M",
|
||||
"ToolTip": "<p>"
|
||||
+ QT_TRANSLATE_NOOP(
|
||||
"Assembly_CreateJointPerpendicular",
|
||||
"Create an Perpendicular Joint: Make the Z axis of selected coordinate systems perpendicular.",
|
||||
"Creates a perpendicular joint that makes the Z-axis of the selected coordinate systems perpendicular",
|
||||
)
|
||||
+ "</p>",
|
||||
"CmdType": "ForEdit",
|
||||
@@ -298,15 +288,14 @@ class CommandCreateJointAngle:
|
||||
pass
|
||||
|
||||
def GetResources(self):
|
||||
|
||||
return {
|
||||
"Pixmap": "Assembly_CreateJointAngle",
|
||||
"MenuText": QT_TRANSLATE_NOOP("Assembly_CreateJointAngle", "Create Angle Joint"),
|
||||
"MenuText": QT_TRANSLATE_NOOP("Assembly_CreateJointAngle", "Angle Joint"),
|
||||
"Accel": "X",
|
||||
"ToolTip": "<p>"
|
||||
+ QT_TRANSLATE_NOOP(
|
||||
"Assembly_CreateJointAngle",
|
||||
"Create an Angle Joint: Fix the angle between the Z axis of selected coordinate systems.",
|
||||
"Creates an angle joint that fixes the angle between the Z-axis of the selected coordinate systems",
|
||||
)
|
||||
+ "</p>",
|
||||
"CmdType": "ForEdit",
|
||||
@@ -324,22 +313,21 @@ class CommandCreateJointRackPinion:
|
||||
pass
|
||||
|
||||
def GetResources(self):
|
||||
|
||||
return {
|
||||
"Pixmap": "Assembly_CreateJointRackPinion",
|
||||
"MenuText": QT_TRANSLATE_NOOP(
|
||||
"Assembly_CreateJointRackPinion", "Create Rack and Pinion Joint"
|
||||
"Assembly_CreateJointRackPinion", "Rack and Pinion Joint"
|
||||
),
|
||||
"Accel": "Q",
|
||||
"ToolTip": "<p>"
|
||||
+ QT_TRANSLATE_NOOP(
|
||||
"Assembly_CreateJointRackPinion",
|
||||
"Create a Rack and Pinion Joint: Links a part with a sliding joint with a part with a revolute joint.",
|
||||
"Creates a rack and pinion joint that links a part with a sliding joint to a part with a revolute joint",
|
||||
)
|
||||
+ "</p><p>"
|
||||
+ QT_TRANSLATE_NOOP(
|
||||
"Assembly_CreateJointRackPinion",
|
||||
"Select the same coordinate systems as the revolute and sliding joints. The pitch radius defines the movement ratio between the rack and the pinion.",
|
||||
"Selects the same coordinate systems as the revolute and sliding joints. The pitch radius defines the movement ratio between the rack and the pinion.",
|
||||
)
|
||||
+ "</p>",
|
||||
"CmdType": "ForEdit",
|
||||
@@ -357,15 +345,14 @@ class CommandCreateJointScrew:
|
||||
pass
|
||||
|
||||
def GetResources(self):
|
||||
|
||||
return {
|
||||
"Pixmap": "Assembly_CreateJointScrew",
|
||||
"MenuText": QT_TRANSLATE_NOOP("Assembly_CreateJointScrew", "Create Screw Joint"),
|
||||
"MenuText": QT_TRANSLATE_NOOP("Assembly_CreateJointScrew", "Screw Joint"),
|
||||
"Accel": "W",
|
||||
"ToolTip": "<p>"
|
||||
+ QT_TRANSLATE_NOOP(
|
||||
"Assembly_CreateJointScrew",
|
||||
"Create a Screw Joint: Links a part with a sliding joint with a part with a revolute joint.",
|
||||
"Creates a screw joint that links a part with a sliding joint to a part with a revolute joint",
|
||||
)
|
||||
+ "</p><p>"
|
||||
+ QT_TRANSLATE_NOOP(
|
||||
@@ -388,15 +375,14 @@ class CommandCreateJointGears:
|
||||
pass
|
||||
|
||||
def GetResources(self):
|
||||
|
||||
return {
|
||||
"Pixmap": "Assembly_CreateJointGears",
|
||||
"MenuText": QT_TRANSLATE_NOOP("Assembly_CreateJointGears", "Create Gears Joint"),
|
||||
"MenuText": QT_TRANSLATE_NOOP("Assembly_CreateJointGears", "Gears Joint"),
|
||||
"Accel": "T",
|
||||
"ToolTip": "<p>"
|
||||
+ QT_TRANSLATE_NOOP(
|
||||
"Assembly_CreateJointGears",
|
||||
"Create a Gears Joint: Links two rotating gears together. They will have inverse rotation direction.",
|
||||
"Creates a gears joint that links 2 rotating gears together. They will have inverse rotation direction.",
|
||||
)
|
||||
+ "</p><p>"
|
||||
+ QT_TRANSLATE_NOOP(
|
||||
@@ -419,15 +405,14 @@ class CommandCreateJointBelt:
|
||||
pass
|
||||
|
||||
def GetResources(self):
|
||||
|
||||
return {
|
||||
"Pixmap": "Assembly_CreateJointPulleys",
|
||||
"MenuText": QT_TRANSLATE_NOOP("Assembly_CreateJointBelt", "Create Belt Joint"),
|
||||
"MenuText": QT_TRANSLATE_NOOP("Assembly_CreateJointBelt", "Belt Joint"),
|
||||
"Accel": "L",
|
||||
"ToolTip": "<p>"
|
||||
+ QT_TRANSLATE_NOOP(
|
||||
"Assembly_CreateJointBelt",
|
||||
"Create a Belt Joint: Links two rotating objects together. They will have the same rotation direction.",
|
||||
"Creates a belt joint that links 2 rotating objects together. They will have the same rotation direction.",
|
||||
)
|
||||
+ "</p><p>"
|
||||
+ QT_TRANSLATE_NOOP(
|
||||
@@ -451,14 +436,13 @@ class CommandGroupGearBelt:
|
||||
|
||||
def GetResources(self):
|
||||
"""Set icon, menu and tooltip."""
|
||||
|
||||
return {
|
||||
"Pixmap": "Assembly_CreateJointGears",
|
||||
"MenuText": QT_TRANSLATE_NOOP("Assembly_CreateJointGearBelt", "Create Gear/Belt Joint"),
|
||||
"MenuText": QT_TRANSLATE_NOOP("Assembly_CreateJointGearBelt", "Gears/Belt Joint"),
|
||||
"ToolTip": "<p>"
|
||||
+ QT_TRANSLATE_NOOP(
|
||||
"Assembly_CreateJointGearBelt",
|
||||
"Create a Gears/Belt Joint: Links two rotating gears together.",
|
||||
"Creates a gears or belt joint that links 2 rotating gears together",
|
||||
)
|
||||
+ "</p><p>"
|
||||
+ QT_TRANSLATE_NOOP(
|
||||
@@ -496,15 +480,14 @@ class CommandToggleGrounded:
|
||||
pass
|
||||
|
||||
def GetResources(self):
|
||||
|
||||
return {
|
||||
"Pixmap": "Assembly_ToggleGrounded",
|
||||
"MenuText": QT_TRANSLATE_NOOP("Assembly_ToggleGrounded", "Toggle grounded"),
|
||||
"MenuText": QT_TRANSLATE_NOOP("Assembly_ToggleGrounded", "Toggle Grounded"),
|
||||
"Accel": "G",
|
||||
"ToolTip": "<p>"
|
||||
+ QT_TRANSLATE_NOOP(
|
||||
"Assembly_ToggleGrounded",
|
||||
"Grounding a part permanently locks its position in the assembly, preventing any movement or rotation. You need at least one grounded part before starting to assemble.",
|
||||
"Toggles the grounding of a part.\nGrounding a part permanently locks its position in the assembly, preventing any movement or rotation. You need at least one grounded part before starting to assemble.",
|
||||
)
|
||||
+ "</p>",
|
||||
"CmdType": "ForEdit",
|
||||
|
||||
@@ -64,12 +64,12 @@ class CommandCreateSimulation:
|
||||
def GetResources(self):
|
||||
return {
|
||||
"Pixmap": "Assembly_CreateSimulation",
|
||||
"MenuText": QT_TRANSLATE_NOOP("Assembly_CreateSimulation", "Create Simulation"),
|
||||
"MenuText": QT_TRANSLATE_NOOP("Assembly_CreateSimulation", "Simulation"),
|
||||
"Accel": "V",
|
||||
"ToolTip": "<p>"
|
||||
+ QT_TRANSLATE_NOOP(
|
||||
"Assembly_CreateSimulation",
|
||||
"Create a simulation of the current assembly.",
|
||||
"Creates a new simulation of the current assembly",
|
||||
)
|
||||
+ "</p>",
|
||||
"CmdType": "ForEdit",
|
||||
@@ -495,13 +495,13 @@ class MotionEditDialog:
|
||||
layout = QGridLayout(self.dialog)
|
||||
|
||||
# Add labels and widgets to the layout
|
||||
layout.addWidget(QLabel("Joint:"), 0, 0)
|
||||
layout.addWidget(QLabel("Joint"), 0, 0)
|
||||
layout.addWidget(self.joint_combo, 0, 1)
|
||||
|
||||
layout.addWidget(QLabel("Motion Type:"), 1, 0)
|
||||
layout.addWidget(QLabel("Motion Type"), 1, 0)
|
||||
layout.addWidget(self.motion_type_combo, 1, 1)
|
||||
|
||||
layout.addWidget(QLabel("Formula:"), 2, 0)
|
||||
layout.addWidget(QLabel("Formula"), 2, 0)
|
||||
layout.addWidget(formula_edit, 2, 1)
|
||||
|
||||
# Add the help label above the buttons
|
||||
|
||||
@@ -51,12 +51,12 @@ class CommandCreateView:
|
||||
def GetResources(self):
|
||||
return {
|
||||
"Pixmap": "Assembly_ExplodedView",
|
||||
"MenuText": QT_TRANSLATE_NOOP("Assembly_CreateView", "Create Exploded View"),
|
||||
"MenuText": QT_TRANSLATE_NOOP("Assembly_CreateView", "Exploded View"),
|
||||
"Accel": "E",
|
||||
"ToolTip": "<p>"
|
||||
+ QT_TRANSLATE_NOOP(
|
||||
"Assembly_CreateView",
|
||||
"Create an exploded view of the current assembly.",
|
||||
"Creates an exploded view of the current assembly",
|
||||
)
|
||||
+ "</p>",
|
||||
"CmdType": "ForEdit",
|
||||
|
||||
@@ -46,7 +46,7 @@ tooltip = (
|
||||
"<p>"
|
||||
+ QT_TRANSLATE_NOOP(
|
||||
"Assembly_InsertLink",
|
||||
"Insert a component into the active assembly. This will create dynamic links to parts, bodies, primitives, and assemblies. To insert external components, make sure that the file is <b>open in the current session</b>",
|
||||
"Inserts a component into the active assembly. This will create dynamic links to parts, bodies, primitives, and assemblies. To insert external components, make sure that the file is <b>open in the current session</b>",
|
||||
)
|
||||
+ "</p><p><ul><li>"
|
||||
+ QT_TRANSLATE_NOOP("Assembly_InsertLink", "Insert by left clicking items in the list.")
|
||||
@@ -70,7 +70,7 @@ class CommandGroupInsert:
|
||||
|
||||
return {
|
||||
"Pixmap": "Assembly_InsertLink",
|
||||
"MenuText": QT_TRANSLATE_NOOP("Assembly_Insert", "Insert"),
|
||||
"MenuText": QT_TRANSLATE_NOOP("Assembly_Insert", "Insert Component"),
|
||||
"ToolTip": tooltip,
|
||||
"CmdType": "ForEdit",
|
||||
}
|
||||
@@ -86,7 +86,7 @@ class CommandInsertLink:
|
||||
def GetResources(self):
|
||||
return {
|
||||
"Pixmap": "Assembly_InsertLink",
|
||||
"MenuText": QT_TRANSLATE_NOOP("Assembly_InsertLink", "Insert Component"),
|
||||
"MenuText": QT_TRANSLATE_NOOP("Assembly_InsertLink", "Component"),
|
||||
"Accel": "I",
|
||||
"ToolTip": tooltip,
|
||||
"CmdType": "ForEdit",
|
||||
|
||||
@@ -51,7 +51,7 @@ class CommandInsertNewPart:
|
||||
def GetResources(self):
|
||||
return {
|
||||
"Pixmap": "Geofeaturegroup",
|
||||
"MenuText": QT_TRANSLATE_NOOP("Assembly_InsertNewPart", "Insert New Part"),
|
||||
"MenuText": QT_TRANSLATE_NOOP("Assembly_InsertNewPart", "New Part"),
|
||||
"Accel": "P",
|
||||
"ToolTip": "<p>"
|
||||
+ QT_TRANSLATE_NOOP(
|
||||
@@ -137,7 +137,7 @@ class TaskAssemblyNewPart(JointObject.TaskAssemblyCreateJoint):
|
||||
translate("Assembly", "Save"), QtWidgets.QMessageBox.AcceptRole
|
||||
)
|
||||
cancelButton = msgBox.addButton(
|
||||
translate("Assembly", "Don't link"), QtWidgets.QMessageBox.RejectRole
|
||||
translate("Assembly", "Do not link"), QtWidgets.QMessageBox.RejectRole
|
||||
)
|
||||
|
||||
msgBox.exec_()
|
||||
|
||||
@@ -52,7 +52,7 @@ class CommandSolveAssembly:
|
||||
"ToolTip": "<p>"
|
||||
+ QT_TRANSLATE_NOOP(
|
||||
"Assembly_SolveAssembly",
|
||||
"Solve the currently active assembly.",
|
||||
"Solves the currently active assembly.",
|
||||
)
|
||||
+ "</p>",
|
||||
"CmdType": "ForEdit",
|
||||
|
||||
@@ -11,13 +11,13 @@
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Create Bill Of Materials</string>
|
||||
<string>Bill of Materials</string>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout">
|
||||
<item row="0" column="0" colspan="2">
|
||||
<widget class="Gui::PrefCheckBox" name="CheckBox_detailSubAssemblies">
|
||||
<property name="toolTip">
|
||||
<string>If checked, Sub assemblies children will be added to the bill of materials.</string>
|
||||
<string>Includes children of sub-assemblies in the bill of materials</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Sub-assemblies children</string>
|
||||
@@ -36,7 +36,7 @@
|
||||
<item row="1" column="0" colspan="2">
|
||||
<widget class="Gui::PrefCheckBox" name="CheckBox_detailParts">
|
||||
<property name="toolTip">
|
||||
<string>If checked, Parts children will be added to the bill of materials.</string>
|
||||
<string>Include child parts in the bill of materials</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Parts children</string>
|
||||
@@ -55,7 +55,7 @@
|
||||
<item row="2" column="0" colspan="2">
|
||||
<widget class="Gui::PrefCheckBox" name="CheckBox_onlyParts">
|
||||
<property name="toolTip">
|
||||
<string>If checked, only Part containers and sub-assemblies will be added to the bill of materials. Solids like PartDesign Bodies, fasteners or Part workbench primitives will be ignored.</string>
|
||||
<string>Adds only part containers and sub-assemblies to the bill of materials. Solids (e.g. bodies, fasteners, primitives) are excluded.</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Only parts</string>
|
||||
@@ -83,7 +83,7 @@
|
||||
<item row="1" column="0">
|
||||
<widget class="QPushButton" name="btnAddColumn">
|
||||
<property name="text">
|
||||
<string>Add column</string>
|
||||
<string>Add Column</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Create Joint</string>
|
||||
<string>Joint</string>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout">
|
||||
<item row="0" column="0" colspan="2">
|
||||
@@ -141,7 +141,7 @@
|
||||
<item>
|
||||
<widget class="QPushButton" name="offset1Button">
|
||||
<property name="toolTip">
|
||||
<string>By clicking this button, you can set the attachment offset of the first marker (coordinate system) of the joint.</string>
|
||||
<string>Sets the attachment offset of the joint’s first marker (coordinate system)</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string></string>
|
||||
@@ -162,7 +162,7 @@
|
||||
<item>
|
||||
<widget class="QPushButton" name="offset2Button">
|
||||
<property name="toolTip">
|
||||
<string>By clicking this button, you can set the attachment offset of the second marker (coordinate system) of the joint.</string>
|
||||
<string>Sets the attachment offset of the second marker (coordinate system) of the joint</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string></string>
|
||||
@@ -190,7 +190,7 @@
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Reverse the direction of the joint.</string>
|
||||
<string>Reverse the direction of the joint</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Reverse</string>
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Create Simulation</string>
|
||||
<string>Simulation</string>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_2">
|
||||
<item>
|
||||
@@ -86,7 +86,7 @@
|
||||
<item>
|
||||
<widget class="QGroupBox" name="groupBox_settings">
|
||||
<property name="title">
|
||||
<string>Simulation settings</string>
|
||||
<string>Simulation Settings</string>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout">
|
||||
<item row="0" column="0">
|
||||
@@ -129,14 +129,14 @@
|
||||
<string>Step</string>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Time Step</string>
|
||||
<string>Time step</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="1">
|
||||
<widget class="Gui::PrefQuantitySpinBox" name="TimeStepOutputSpinBox">
|
||||
<property name="toolTip">
|
||||
<string>Time Step</string>
|
||||
<string>Time step</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -146,14 +146,14 @@
|
||||
<string>Tolerance</string>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Global Error Tolerance</string>
|
||||
<string>Global error tolerance</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="5" column="1">
|
||||
<widget class="Gui::PrefQuantitySpinBox" name="GlobalErrorToleranceSpinBox">
|
||||
<property name="toolTip">
|
||||
<string>Global Error Tolerance</string>
|
||||
<string>Global error tolerance</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -170,7 +170,7 @@
|
||||
<item>
|
||||
<widget class="QGroupBox" name="groupBox_player">
|
||||
<property name="title">
|
||||
<string>Animation player</string>
|
||||
<string>Animation Player</string>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout">
|
||||
<item row="0" column="0">
|
||||
@@ -209,7 +209,7 @@
|
||||
<item>
|
||||
<widget class="QLabel" name="FramesPerSecondLabel">
|
||||
<property name="text">
|
||||
<string>Frames Per Second</string>
|
||||
<string>Frames per second</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
||||
@@ -11,13 +11,13 @@
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Create Exploded View</string>
|
||||
<string>Exploded View</string>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout">
|
||||
<item row="0" column="0">
|
||||
<widget class="Gui::PrefCheckBox" name="CheckBox_PartsAsSingleSolid">
|
||||
<property name="toolTip">
|
||||
<string>If checked, Parts will be selected as a single solid.</string>
|
||||
<string>If checked, parts will be selected as a single solid</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Parts as single solid</string>
|
||||
@@ -39,23 +39,21 @@
|
||||
<item row="3" column="0">
|
||||
<widget class="QPushButton" name="btnAlignDragger">
|
||||
<property name="text">
|
||||
<string>Align dragger</string>
|
||||
<string>Align Dragger</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="4" column="0">
|
||||
<widget class="QLabel" name="LabelAlignDragger">
|
||||
<property name="text">
|
||||
<string>Aligning dragger:
|
||||
Select a feature.
|
||||
Press ESC to cancel.</string>
|
||||
<string>Select a feature to align. Press Esc to cancel.</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="5" column="0">
|
||||
<widget class="QPushButton" name="btnRadialExplosion">
|
||||
<property name="text">
|
||||
<string>Explode radially</string>
|
||||
<string>Explode Radially</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
||||
@@ -11,13 +11,13 @@
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Insert Component</string>
|
||||
<string>Insert</string>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout">
|
||||
<item row="0" column="0">
|
||||
<widget class="QLineEdit" name="filterPartList">
|
||||
<property name="placeholderText">
|
||||
<string>Search parts...</string>
|
||||
<string>Search parts…</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -36,14 +36,14 @@
|
||||
<item>
|
||||
<widget class="QLabel" name="label1">
|
||||
<property name="text">
|
||||
<string>Don't find your part? </string>
|
||||
<string>Cannot find the part? </string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="openFileButton">
|
||||
<property name="text">
|
||||
<string>Open file</string>
|
||||
<string>Open File</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -52,7 +52,7 @@
|
||||
<item row="3" column="0">
|
||||
<widget class="Gui::PrefCheckBox" name="CheckBox_ShowOnlyParts">
|
||||
<property name="toolTip">
|
||||
<string>If checked, the list will show only Parts.</string>
|
||||
<string>Shows only parts in the list</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Show only parts</string>
|
||||
@@ -75,7 +75,7 @@
|
||||
Rigid means that the added sub-assembly will be considered as a solid unit within the parent assembly.
|
||||
Flexible means that the added sub-assembly will allow movement of its individual components' joints within the parent assembly.
|
||||
You can change this behavior at any time by either right-clicking the sub-assembly on the document tree and toggling the
|
||||
Turn rigid/Turn flexible command there, or by editing its Rigid property in the Property Editor.</string>
|
||||
'Turn rigid'/'Turn flexible' command there, or by editing its Rigid property in the property editor.</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Rigid sub-assemblies</string>
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
<item row="0" column="0">
|
||||
<widget class="Gui::PrefCheckBox" name="checkBoxEnableEscape">
|
||||
<property name="toolTip">
|
||||
<string>Allows leaving edit mode when pressing Esc button</string>
|
||||
<string>Allows leaving edit mode when pressing the Esc key</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Esc leaves edit mode</string>
|
||||
@@ -36,7 +36,7 @@
|
||||
<item row="1" column="0">
|
||||
<widget class="Gui::PrefCheckBox" name="checkBoxSolverDebug">
|
||||
<property name="toolTip">
|
||||
<string>Log the dragging steps of the solver. Useful if you want to report a bug.
|
||||
<string>Log the dragging steps of the solver. Useful to report a bug.
|
||||
The files are named "runPreDrag.asmt" and "dragging.log" and are located in the default directory of std::ofstream (on Windows it's the desktop)</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
@@ -56,14 +56,14 @@ The files are named "runPreDrag.asmt" and "dragging.log" and are located in the
|
||||
<item row="2" column="0">
|
||||
<widget class="QLabel" name="groundFirstPartLabel">
|
||||
<property name="text">
|
||||
<string>Ground first part:</string>
|
||||
<string>Ground first part</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="1">
|
||||
<widget class="QComboBox" name="groundFirstPart">
|
||||
<property name="toolTip">
|
||||
<string>When you insert the first part in the assembly, you can choose to ground the part automatically.</string>
|
||||
<string>When inserting the first part in the assembly, it can be grounded automatically</string>
|
||||
</property>
|
||||
<property name="currentIndex">
|
||||
<number>0</number>
|
||||
|
||||
Reference in New Issue
Block a user