Create a component by clicking the add-on button

Hello.
I am developing an add-on in Python.
After creating a button inside the add-on panel and clicking the button,
I would like to import a custom component from a local folder into the viewer.
Is it possible?
Please tell me the method and academy.
I think it will be helpful for development.
Thank you.

app = getApplication()
filePath = "file///:" + "D:/Example.vcmx"
component = app.load(filePath)

https://help.visualcomponents.com/4.8/Premium/en/Python_API/vcApplication.htm?rhhlterm=load

1 Like