Std DlgMacroExecute/ru: Difference between revisions

From FreeCAD Documentation
(Created page with "===Дополнения===")
(Updating to match new version of source page)
(12 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<languages/>
<languages/>


<div class="mw-translate-fuzzy">
{{Docnav
{{Docnav/ru
|[[Std_MacroStopRecord|MacroStopRecord]]
|[[Std_MacroStopRecord/ru|Команда "Остановить запись макроса"]]
|[[Std_DlgMacroExecuteDirect|DlgMacroExecuteDirect]]
|[[Std_DlgMacroExecuteDirect/ru|Команда "Выполнить макрос"]]
|[[Std_Macro_Menu|Std Macro Menu]]
|[[Std_Macro_Menu/ru|Меню "Макросы"]]
|IconL=Std_MacroStopRecord.svg
|IconL=Std_MacroStopRecord.svg
|IconR=Std_DlgMacroExecuteDirect.svg
|IconR=Std_DlgMacroExecuteDirect.svg
|IconC=Freecad.svg
|IconC=Freecad.svg
}}
}}

<div class="mw-translate-fuzzy">
{{GuiCommand/ru|Name=Std DlgMacroExecute|Name/ru=Std DlgMacroExecute|MenuLocation=[[Macros/ru|Макрос]] → Выполнить макрос|Shortcut=CTRL+F6|Workbenches=All|SeeAlso=[[Std_DlgMacroExecuteDirect/ru|Execute Direct]]}}
</div>
</div>


{{GuiCommand/ru
|Name/ru=Макрос
|Name=Std_DlgMacroExecute
|MenuLocation=Макрос → Макросs...
|Workbenches=Все
|SeeAlso=[[Std_DlgMacroExecuteDirect/ru|Выполнить макрос]]
}}

<span id="Description"></span>
==Описание==
==Описание==


The '''Std DlgMacroExecute''' command opens the Execute macro dialog box. From this dialog box macros can be executed, edited and managed.
The '''Std DlgMacroExecute''' command opens the Execute macro dialog box. From this dialog box macros can be executed, edited and managed.


[[Image:Std_DlgMacroExecute_dialog.png]]
[[Image:Std_DlgMacroExecute_dialog.png|300px]]
{{Caption|The Execute macro dialog box}}
{{Caption|The Execute macro dialog box}}


<span id="Usage"></span>
==Применение==
==Применение==


Line 26: Line 34:
#* Press the {{Button|[[Image:Std_DlgMacroExecute.svg|16px]] [[Std_DlgMacroExecute|Std DlgMacroExecute]]}} button.
#* Press the {{Button|[[Image:Std_DlgMacroExecute.svg|16px]] [[Std_DlgMacroExecute|Std DlgMacroExecute]]}} button.
#* Select the {{MenuCommand|Macro → [[Image:Std_DlgMacroExecute.svg|16px]] Macros...}} option from the menu.
#* Select the {{MenuCommand|Macro → [[Image:Std_DlgMacroExecute.svg|16px]] Macros...}} option from the menu.
# The Execute macro dialog box opens. See [[#Options|Options]].
# The '''Execute macro''' dialog box opens. See [[#Options|Options]].


<span id="Options"></span>
==Опции==
==Опции==


===Find file / Find in files===

: {{Version|0.22}}

: These two input boxes can be used to filter macros from the file list on the '''User macros''' tab or the '''System macros''' tab. You may use regular expressions or simply enter text. All matches are case-insensitive.

: '''Find file''' filters the list by filename. Only filenames that match the entered text will appear in the list. '''Find in files''' filters the list by file content. Only files whose text content matches the entered text will appear in the list.

: Remove all text from a filter's input box to disable it. If both input boxes contain text, both filters are applied. Filtering may result in an empty list.

<span id="User_macros"></span>
===Пользовательские макросы===
===Пользовательские макросы===


# The '''User macros''' tab lists the macros available in the '''User macros location'''.
: The '''User macros''' tab lists the macros available in the '''User macros location'''.

# Click a macro to select it.
# Click a macro in the list to select it.
# The name of the selected macro will appear in the '''Macro name''' box.
# The name of the selected macro will appear in the '''Macro name''' box.


<span id="System_macros"></span>
===Системные макросы===
===Системные макросы===


: To make use of the '''System macros''' tab you must create a folder named {{FileName|Macro}} as a sibling folder of the {{FileName|bin}} folder where FreeCAD is installed and put some macros there.
: The '''System macros''' tab is not used at this time.


: To find the {{FileName|bin}} folder enter this in the [[Python_console|Python console]]:

: {{Code|code=
App.getHomePath()
}}

# Click a macro in the list to select it.
# The name of the selected macro will appear in the '''Macro name''' box.

<span id="User_macros_location"></span>
===Расположение пользовательских макросов===
===Расположение пользовательских макросов===


Line 45: Line 77:
# Browse to a different folder and select it.
# Browse to a different folder and select it.


<span id="Execute"></span>
===Выполнить===
===Выполнить===


Line 53: Line 86:
# The macro is executed.
# The macro is executed.


<span id="Close"></span>
===Закрыть===
===Закрыть===


# Press {{KEY|Esc}} or the {{Button|Close}} button to close the dialog box.
# Нажмите {{KEY|Esc}} или кнопку {{Button|Закрыть}}, чтобы закрыть диалоговое окно.


<span id="Create"></span>
===Создать===
===Создать===


Line 65: Line 100:
# The new file is opened in the Macro editor.
# The new file is opened in the Macro editor.


<span id="Delete"></span>
===Удалить===
===Удалить===


Line 71: Line 107:
# Press the {{Button|Yes}} button in the confirmation dialog box that pops up.
# Press the {{Button|Yes}} button in the confirmation dialog box that pops up.


<span id="Edit"></span>
===Редактировать===
===Редактировать===


Line 78: Line 115:
# The selected file is opened in the Macro editor.
# The selected file is opened in the Macro editor.


<span id="Rename"></span>
===Переименовать===
===Переименовать===


Line 85: Line 123:
# Press {{KEY|Enter}} or the {{Button|OK}} button.
# Press {{KEY|Enter}} or the {{Button|OK}} button.


<span id="Duplicate"></span>
===Дублировать===
===Дублировать===


Line 92: Line 131:
# Press {{KEY|Enter}} or the {{Button|OK}} button.
# Press {{KEY|Enter}} or the {{Button|OK}} button.


<span id="Toolbar"></span>
===Панель инструментов===
===Панель инструментов===


Line 98: Line 138:
# Two 'walkthrough' dialogs will guide you through the required steps. See [[Interface_Customization|Interface Customization]] for more information.
# Two 'walkthrough' dialogs will guide you through the required steps. See [[Interface_Customization|Interface Customization]] for more information.


===Дополнения===
===Download===


# Press the {{Button|Addons...}} button to start the [[Addon_manager|Addon manager]].
# Press the {{Button|Download}} button to start the [[Std_AddonMgr|Addon manager]].


==Notes==
<span id="Notes"></span>
==Примечания==


* To learn more about macros see the [[Macros]] page.
* To learn more about macros see the [[Macros]] page.


==Preferences==
<span id="Preferences"></span>
==Настройки==


* The user macros location can also be changed in the preferences: {{MenuCommand|Edit → Preferences... → General → Macro → Macro path}}. See [[Preferences_Editor#Macro|Preferences Editor]].
* The user macros location can also be changed in the preferences: {{MenuCommand|Edit → Preferences... → Python → Macro → Macro path}}. See [[Preferences_Editor#Macro|Preferences Editor]].



{{Docnav
<div class="mw-translate-fuzzy">
|[[Std_MacroStopRecord|MacroStopRecord]]
{{Docnav/ru
|[[Std_DlgMacroExecuteDirect|DlgMacroExecuteDirect]]
|[[Std_MacroStopRecord/ru|Команда "Остановить запись макроса"]]
|[[Std_Macro_Menu|Std Macro Menu]]
|[[Std_DlgMacroExecuteDirect/ru|Команда "Выполнить макрос"]]
|[[Std_Macro_Menu/ru|Меню "Макросы"]]
|IconL=Std_MacroStopRecord.svg
|IconL=Std_MacroStopRecord.svg
|IconR=Std_DlgMacroExecuteDirect.svg
|IconR=Std_DlgMacroExecuteDirect.svg
|IconC=Freecad.svg
|IconC=Freecad.svg
}}
}}
</div>


{{Std Base navi{{#translation:}}}}
{{Std Base navi{{#translation:}}}}
{{Userdocnavi{{#translation:}}}}
{{Userdocnavi{{#translation:}}}}
{{clear}}

Revision as of 08:03, 10 October 2023

Other languages:

Макрос

Системное название
Std_DlgMacroExecute
Расположение в меню
Макрос → Макросs...
Верстаки
Все
Быстрые клавиши
Нет
Представлено в версии
-
См. также
Выполнить макрос

Описание

The Std DlgMacroExecute command opens the Execute macro dialog box. From this dialog box macros can be executed, edited and managed.

The Execute macro dialog box

Применение

  1. There are several ways to invoke the command:
  2. The Execute macro dialog box opens. See Options.

Опции

Find file / Find in files

introduced in version 0.22
These two input boxes can be used to filter macros from the file list on the User macros tab or the System macros tab. You may use regular expressions or simply enter text. All matches are case-insensitive.
Find file filters the list by filename. Only filenames that match the entered text will appear in the list. Find in files filters the list by file content. Only files whose text content matches the entered text will appear in the list.
Remove all text from a filter's input box to disable it. If both input boxes contain text, both filters are applied. Filtering may result in an empty list.

Пользовательские макросы

The User macros tab lists the macros available in the User macros location.
  1. Click a macro in the list to select it.
  2. The name of the selected macro will appear in the Macro name box.

Системные макросы

To make use of the System macros tab you must create a folder named Macro as a sibling folder of the bin folder where FreeCAD is installed and put some macros there.
To find the bin folder enter this in the Python console:
App.getHomePath()
  1. Click a macro in the list to select it.
  2. The name of the selected macro will appear in the Macro name box.

Расположение пользовательских макросов

  1. Press the ... button to change the user macros location.
  2. Browse to a different folder and select it.

Выполнить

  1. To execute a macro do one of the following:
    • Select the macro in the list and press the Execute button.
    • Double-click the macro in the list.
  2. The dialog box closes.
  3. The macro is executed.

Закрыть

  1. Нажмите Esc или кнопку Закрыть, чтобы закрыть диалоговое окно.

Создать

  1. Press the Create button to create a new macro file.
  2. Enter a name in the dialog box that pops up. You do not have to include the .FCMacro extension.
  3. Press Enter or the OK button.
  4. Both dialog boxes close.
  5. The new file is opened in the Macro editor.

Удалить

  1. Select the macro you want to delete in the list.
  2. Press the Delete button.
  3. Press the Yes button in the confirmation dialog box that pops up.

Редактировать

  1. Select the macro you want to edit in the list.
  2. Press the Edit button.
  3. The dialog box closes.
  4. The selected file is opened in the Macro editor.

Переименовать

  1. Select the macro you want to rename in the list.
  2. Press the Rename button.
  3. Enter a new name in the dialog box that pops up. You do not have to include the .FCMacro extension.
  4. Press Enter or the OK button.

Дублировать

  1. Select the macro you want to duplicate in the list.
  2. Press the Duplicate button.
  3. Enter a new name in the dialog box that pops up. You do not have to include the .FCMacro extension.
  4. Press Enter or the OK button.

Панель инструментов

  1. Select the macro you want to add to a custom toolbar in the list.
  2. Press the Toolbar button.
  3. Two 'walkthrough' dialogs will guide you through the required steps. See Interface Customization for more information.

Download

  1. Press the Download button to start the Addon manager.

Примечания

  • To learn more about macros see the Macros page.

Настройки

  • The user macros location can also be changed in the preferences: Edit → Preferences... → Python → Macro → Macro path. See Preferences Editor.