My repository consists of one MyExtention extension and several User scripts.
When loading Easy-eda MyExtention scans all your installed User scripts and adds them to the Menu called [MyExtention].
Moreover, MyExtention does not depend on my scripts, it works separately, so it can use scripts of other users. But most of my scripts won't work without MyExtention installed.
- First of all, you have to install the extension MyExtensions.
- Then (or before) you must install any of your (or mine) Easy-eda java scripts.
- Reload Easy-eda.
MyExtensions
provides a menu in the toolbar to easily choose any EasyEDA User Script you have installed, it also provides some support for the scripts in easyeda-MyExtensions
and is required to use them.
- Download Zip and extract files
- In EasyEDA Select Advanced > Extensions > Extensions Setting
- Click Load Extension
- Click Select Files
- In the file dialog that opens, navigate to the "
MyExtensions
" folder which was unzipped and select all the files in that folder which includesmanifest.json
,main.js
,locale.txt
... you must choose all the files at once (shift-click) in the dialog, click open/ok in the file dialog. - Extension ID should be filled out and say MyExtensions, click Load extension button with the tick next to it.
- Make sure you have saved any changes to open project, and then reload EasyEDA
After you have installed the MyExtensions
above, you can then install the scripts you want to use.
- In EasyEDA select Advanced > Extensions > Load Script
- Click "Install..." button
- In the file dialod that appears locate the script
*.js
file - for exampleReplaceSchlib.js
- Click open/ok in the file dialog
- Make sure you have saved any changes to open project, and then reload EasyEDA
After reloading you will see the MyExtension
menu in the toolbar and can choose from scripts to run. Some scripts require that you must choose things before you run them, for example, ReplaceSchlib
script you must choose all the items you want to replace, and the last item the one you want to replace those items with (each is replaced with a copy).
User Script is a java script file with a .js extension. In my repository you can find such scripts:
[SmartCopyPaste]/
1SmartCopy.js
[SmartCopyPaste]/
2SmartPaste.js
[SmartCopyPaste]/
3SmartRenamePref.js
[SmartCopyPaste]/
4SmartReconnectTracks.js
[ReplaceSchlib]/
ReplaceSchlib.js
CopperArea_Clone.js
CopperArea_RebuildAll.js
SelectLike.js
ShowHidePref.js
SmartCopyPaste scripts description:
Select part of scheme, then 1SmartCopy.js and 2SmartPaste.js, then 3SmartRenamePref.js and Save.
Select part of scheme, then 1SmartCopy.js and 2SmartPaste.js, then 3SmartRenamePref.js and Import Changes.
Select, then SmartReconnectTracks, and then Import Changes to Verify.
First you need to select the components to be replaced and the last one is the replacement sample.