![]() ![]() New directory created after unpacking the archiveĥ. The decompressor creates a new directory with the unpacked files. Download the compressed archive with the macro code to a local folder.ĭownloading the compressed archive to a local directoryĤ. Running the macro that is loaded in the editorĢ. The macro can now be run with Macro → Execute macro, or by clicking on the Std DlgMacroExecuteDirect button in the toolbar. Go to Macro → Macros., select the macro and press Edit.ġ4. You can open the macro in the editor again to run it or modify it. Once an active document is available, the macro runs and creates an object.ġ3. The macro returning an error if no document is activeġ2. This macro should return an error if no document is active other macros open a new document if none exists.Ĭreate a new document with File → New, and then repeat the previous steps to execute the macro. The macro in action fill in the information and press OK when readyġ1. Fill in the fields with your values and click the OK button. Open the menu again, Macro → Macros., select the new macro and press Execute.ġ0. Restart FreeCAD to correctly register the new macro.ĩ. You can also use Ctrl+ S to save the file. A window appears asking for confirmation to save the code click on Yes. Paste the code in the editor window, and then click the cross on the tab to close the window.Ĩ. The macro editor opens, showing the full path of the new macro.ħ. Enter the macro name, here Macro_Apothem_Based_Prism_GUI, and press OK.Ħ. In FreeCAD, open the menu Macro → Macros. In the macro page, select the code inside the Script or Macro sections, and copy it.ģ. This icon can be used as a shortcut for the macro in a custom toolbar. If there is a custom icon download it click on it with the right mouse button and select Save image as. Go to the macro wiki page, which should be listed in Macros recipes. We will use Macro Apothem Based Prism GUI as an example.ġ. MacOS: either leave a "Finder" window open, or bookmark the location in your "File explorer", or set up an "Alias" to point to it, or drag the folder into the "SideBar" of the "Finder" so it is there to use from other programs such as text editors.Linux: leave the file manager open, and bookmark the location for faster access.MacOS: locate the folder in the "Finder" or paste the address into a "File explorer" remember the file:/// prefix in the "File explorer" for a file on disk.Īccessing the macros directory in the operating system.Windows: paste the address into your "File explorer" and confirm. ![]() You may have to press Ctrl+ H to make the hidden directory.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |