Unable to add my custom button using custom extension directories

I have created all the folders with required extensions but I am not able to see my custom add in using pyrevit custom extension directories. Even though I am pasting the right path. I am adding a screen shot to show path and the other folders.

1 Like

Hi @SyedRafay
glad you found your way to the forum

  1. check the extra extension path in the parameters in pyrevit. It should point to the folder containing the .extension folder, and not point to the .extension folder itself
  2. you could try removing the bundle file
  3. the icon file should be named icon.png

Would you mind sharing your pyrevit config file found in your install folder of pyrevit? most probably here %AppData%\pyRevit
OR
the result of pyrevit env command in the command line

If you begin in pyrevit, you could try the content I presented at BILT to get started with: GitHub - jmcouffin/pyRevit-BILT_NA_2022
you will have everything to get you going smoothly.

just taking a close look at the structure of it all will help you understand the architecture

you should also take a look at @ErikFrits stuff

Ok but how looks your other folders? If you want, i can send you a simple folder with folders/yamls that works :smiley:

@Jean-Marc I would like to pay bundle of thanks first of all that you replied. I fortunately got the tool however getting an error may be any mistake in python. I am adding screen shot of error and attaching config file.


[environment]
Below is the code of config.

clones = {β€œmaster”:β€œC:\Users\m03\AppData\Roaming\pyRevit-Master”}

[core]
bincache = true
checkupdates = false
rocketmode = true
debug = false
verbose = false
filelogging = false
startuplogtimeout = 10
requiredhostbuild = β€œβ€
minhostdrivefreespace = 0
loadbeta = false
cpyengine = 385
userextensions = [β€œC:\Users\m03\Desktop\My First Tool”]
user_locale = β€œen_us”
colorize_docs = false
tooltip_debug_info = false

[telemetry]
utc_timestamps = true
active = false
telemetry_file_dir = β€œβ€
telemetry_server_url = β€œβ€
include_hooks = false
active_app = false
apptelemetry_server_url = β€œβ€
apptelemetry_event_flags = β€œ0x0”

[pyRevitTags.extension]
disabled = false
private_repo = true
username = β€œβ€
password = β€œβ€

[pyRevitTemplates.extension]
disabled = true
private_repo = true
username = β€œβ€
password = β€œβ€

[pyRevitTools.extension]
disabled = false
private_repo = true
username = β€œβ€
password = β€œβ€

[routes]
enabled = false
core_api = false

[EF-Tools.extension]
disabled = false
private_repo = false
username = β€œβ€
password = β€œβ€

[pyChilizer.extension]
disabled = false
private_repo = false
username = β€œβ€
password = β€œβ€

[pyTiBa.extension]
disabled = false
private_repo = false
username = β€œβ€
password = β€œβ€

[PyRevitMEP.extension]
disabled = false
private_repo = false
username = β€œβ€
password = β€œβ€

[PyRevitPlus.extension]
disabled = false
private_repo = false
username = β€œβ€
password = β€œβ€

[tabcoloring]
sort_colorize_docs = false
tabstyle_index = 0
family_tabstyle_index = 4
tab_colors = ["#FFF39C12","#FF2C3E50","#FF0000FF","#FF8B4513","#FFFFD700","#FF00CED1","#FFFF4500","#FF00FFFF","#FF9ACD32","#FFFF1493"]
tab_filtercolors = {}

[Revitron.lib]
disabled = false
private_repo = false
username = β€œβ€
password = β€œβ€

[Revitron UI.extension]
disabled = false
private_repo = false
username = β€œβ€
password = β€œβ€

[pyStructure.extension]
disabled = false
private_repo = false
username = β€œβ€
password = β€œβ€

[MEPDesign.extension]
disabled = false
private_repo = false
username = β€œβ€
password = β€œβ€

[pyApex.extension]
disabled = false
private_repo = false
username = β€œβ€
password = β€œβ€

no pb,
the issue is in your bundle.yaml file as cited in the error
you can check its formatting using online tools like this one https://jsonformatter.org/yaml-formatter
basic syntax:
the bundle.yaml at the .tab level works like this _the spaces are important _ the point of this file is to be able to organize your button:

layout:
  - first button title
  - second button title

at the button level:

title: your title for the button
tooltip: decription you want to display in the tooltip of the button

you could get ride of the bundle files first, they are optional. You would get things going, and then use the bundle file once your button is fine.
Complete documentation is here Notion – The all-in-one workspace for your notes, tasks, wikis, and databases.