Macro Select Hovering: Difference between revisions
(upgrade to 00.04 version) |
(Marked this version for translation) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 42: | Line 42: | ||
<translate> |
<translate> |
||
<!--T:19--> |
|||
{{CheckBox}} Select Face → 3 number of face(s) |
{{CheckBox}} Select Face → 3 number of face(s) |
||
{{LineEdit|300.0}} area total of selections |
{{LineEdit|300.0}} area total of selections |
||
Line 50: | Line 51: | ||
<translate> |
<translate> |
||
<!--T:20--> |
|||
{{CheckBox}} Select Edge → 4 number of edge(s) |
{{CheckBox}} Select Edge → 4 number of edge(s) |
||
{{LineEdit|40.0}} length total of selections |
{{LineEdit|40.0}} length total of selections |
||
{{LineEdit|10.0}} length of the latest selection |
{{LineEdit|10.0}} length of the latest selection |
||
</translate> |
|||
====Section Vertex==== |
====Section Vertex==== |
||
<translate> |
|||
<!--T:33--> |
|||
{{CheckBox}} Select Vertex → 1 number of vertex(s) |
{{CheckBox}} Select Vertex → 1 number of vertex(s) |
||
Line 61: | Line 67: | ||
<translate> |
<translate> |
||
<!--T:22--> |
|||
Title display info of the : |
Title display info of the : |
||
*( Obj: 1 ) : number object(s) selected |
*( Obj: 1 ) : number object(s) selected |
||
Line 70: | Line 77: | ||
<translate> |
<translate> |
||
<!--T:23--> |
|||
* display little info and info below the cursor mouse |
* display little info and info below the cursor mouse |
||
Line 76: | Line 84: | ||
<translate> |
<translate> |
||
<!--T:24--> |
|||
*Name of document |
*Name of document |
||
*8 selections |
*8 selections |
||
Line 92: | Line 101: | ||
{{Button|Selected by Box}} |
{{Button|Selected by Box}} |
||
<translate> |
<translate> |
||
<!--T:25--> |
|||
*if you select by the Box selection this button select all objects checked of the selection |
*if you select by the Box selection this button select all objects checked of the selection |
||
*Other think you check the vertex option and you want selected all vertexes of the object ... click this button |
*Other think you check the vertex option and you want selected all vertexes of the object ... click this button |
||
Line 98: | Line 109: | ||
{{Button|Reset Data}} |
{{Button|Reset Data}} |
||
<translate> |
<translate> |
||
<!--T:26--> |
|||
*Reset all data in the macro (not the memo) |
*Reset all data in the macro (not the memo) |
||
Line 104: | Line 117: | ||
<translate> |
<translate> |
||
<!--T:27--> |
|||
*Reset the memo |
*Reset the memo |
||
Line 110: | Line 124: | ||
<translate> |
<translate> |
||
<!--T:28--> |
|||
*Reset the memo |
|||
*Remove the selections in the current document |
|||
''('''PS:''' if several document are open on click mouse in the 3D view remove all selection in all documents)'' |
|||
</translate> |
</translate> |
||
Line 116: | Line 132: | ||
<translate> |
<translate> |
||
<!--T:29--> |
|||
*Quit the macro |
*Quit the macro |
||
Line 122: | Line 139: | ||
<translate> |
<translate> |
||
<!--T:30--> |
|||
*Pause the macro for ex: deselect on of many object |
*Pause the macro for ex: deselect on of many object |
||
*after pause click for return on macro and upgrade al info in the macro |
*after pause click for return on macro and upgrade al info in the macro |
||
*Can be use for upgrade the selections in the macro (all time) |
*Can be use for upgrade the selections in the macro (all time) |
||
*Ex: many object |
*Ex: many object are selected before run the macro |
||
*The macro adapts and detect all change of document |
*The macro adapts and detect all change of document |
||
Line 133: | Line 151: | ||
The icon must be copied into the same directory as the macro |
The icon must be copied into the same directory as the macro |
||
<!--T:31--> |
|||
The icon ToolBar [[File:Macro Select Hovering.png|Macro Select Hovering]] |
The icon ToolBar [[File:Macro Select Hovering.png|Macro Select Hovering]] |
||
Line 145: | Line 164: | ||
==Version== <!--T:10--> |
==Version== <!--T:10--> |
||
<!--T:32--> |
|||
ver 00.04 (11/01/2024) : add: |
ver 00.04 (11/01/2024) : add: |
||
*LineEdit info, |
*LineEdit info, |
Latest revision as of 20:30, 11 January 2024
Description |
---|
This macro select a choice Face, Edge, Vertex hovering by the mouse. PS: For unselected one face (or other) click the Pause grab and use the standard procedure : CTRL + Click Macro version: 00.04 Last modified: 2024-01-11 FreeCAD version: All Download: ToolBar Icon Author: Mario52 |
Author |
Mario52 |
Download |
ToolBar Icon |
Links |
Macros recipes How to install macros How to customize toolbars |
Macro Version |
00.04 |
Date last modified |
2024-01-11 |
FreeCAD Version(s) |
All |
Default shortcut |
None |
See also |
None |
Description
this macro select a choice Face, Edge, Vertex hovering by the mouse.
Temporary code for external macro link. Do not use this code. This code is used exclusively by Addon Manager. Link for optional manual installation: Macro
# This code is copied instead of the original macro code # to guide the user to the online download page. # Use it if the code of the macro is larger than 64 KB and cannot be included in the wiki # or if the RAW code URL is somewhere else in the wiki. from PySide import QtGui, QtCore diag = QtGui.QMessageBox(QtGui.QMessageBox.Information, "Information", "This macro must be downloaded from this link\n" "\n" "https://gist.githubusercontent.com/mario52a/7ebe6b3fd047441114d9d0e08ceddd63/raw/f9dea03a0327b48c76a7c3e9d7cd391b5093a8cf/Macro%2520Select%2520Hovering.FCMacro" + "\n" "\n" "Quit this window to access the download page") diag.setWindowFlags(QtCore.Qt.WindowStaysOnTopHint) diag.setWindowModality(QtCore.Qt.ApplicationModal) diag.exec_() import webbrowser webbrowser.open("https://gist.githubusercontent.com/mario52a/7ebe6b3fd047441114d9d0e08ceddd63/raw/f9dea03a0327b48c76a7c3e9d7cd391b5093a8cf/Macro%2520Select%2520Hovering.FCMacro")
PS: For deselect one face (or other) click the Pause grab and use the standard procedure : CTRL + Click
How To Use
Hovering element by the mouse.
Section Face
Select Face → 3 number of face(s) 300.0 area total of selections 100.0 area of the latest selection
Section Edge
Select Edge → 4 number of edge(s) 40.0 length total of selections 10.0 length of the latest selection
Section Vertex
Select Vertex → 1 number of vertex(s)
Section Main
Title display info of the :
- ( Obj: 1 ) : number object(s) selected
- ( Sub: 8 ) : number of Sub object(s) selected
- ( Tot: 9 ) : Somme Obj + Sub
Unnamed: Box. Face6 (1.34,2.64,10.0)
- display little info and info below the cursor mouse
Unnamed: 1 : (8 sel.) (Obj. 1, Fa. 3, Ed. 4, Ve. 1)
- Name of document
- 8 selections
- Obj. 1 object
- Fa. 3 faces
- Ed. 4 edges
- Ve. 1 vertex
- If you use several document the macro restores only the selection in the document open (to work)
- The toolTip display the listing of the selected document Name and subObject
Selected by Box
- if you select by the Box selection this button select all objects checked of the selection
- Other think you check the vertex option and you want selected all vertexes of the object ... click this button
Reset Data
- Reset all data in the macro (not the memo)
Reset Memo
- Reset the memo
Remove selection
- Remove the selections in the current document
(PS: if several document are open on click mouse in the 3D view remove all selection in all documents)
Quit
- Quit the macro
Pause grab/Refresh
- Pause the macro for ex: deselect on of many object
- after pause click for return on macro and upgrade al info in the macro
- Can be use for upgrade the selections in the macro (all time)
- Ex: many object are selected before run the macro
- The macro adapts and detect all change of document
Icons
The icon must be copied into the same directory as the macro
Script
Macro_Select_Hovering.FCMacro
Version
ver 00.04 (11/01/2024) : add:
- LineEdit info,
- ComboBox memo selection,
- Button Memo selection,
- Button Selected by body
- Button Reset Data
- Button Reset Memo
- Button Remove Selection
ver 00.03b (28/10/2020) : add print() for Python 3
ver 00.03 (26/12/2017) : replace test with (FreeCAD.ActiveDocument.getObject(obj), sub) == False)
ver 00.02 (26/12/2017) :
ver 00.01 (25/12/2017) :
Link
Multiple face selection to convert a shape to a solid