stepalibre
Alibre Super User
To all,
I'm at a stopping point for now and would love some feedback from users before I continue. I would like to include your ideas and to understand if this is relevant to how you use AlibreScript.
AlibreScriptPython3 is a way to use AlibreScript API inside of Python 3 supported text editors and IDEs. It will allow for autocomplete and type hinting along with other possible python language features. This can make it easier to build AlibreScripts and work inside the Python ecosystem. Using it can be as simple as AlibreScripting is today. You would instead use a Python editor of your choice. I plan to package it into a ready to use library and files available under MIT license.
AlibreScript:
AlibreScriptPython3:
There are difference between AlibreScript (ironpython2.7) and AlibreScriptPython3 (py3) but these can be solved and discussed later.
AlibreScriptPython3 is the full AlibreScript API which is 700+ members.
This can become many things far beyond what I have made, this is AlibreScript inside Python. The way it works can be changed and made much simpler and can grow and be updated alongside AlibreScript.
Tools to convert to and from AlibreScript scripts and AlibreScriptPython3 are not made yet. An addon and other tools can be developed. This is very early work.
Thanks for your help.
I'm at a stopping point for now and would love some feedback from users before I continue. I would like to include your ideas and to understand if this is relevant to how you use AlibreScript.
AlibreScriptPython3 is a way to use AlibreScript API inside of Python 3 supported text editors and IDEs. It will allow for autocomplete and type hinting along with other possible python language features. This can make it easier to build AlibreScripts and work inside the Python ecosystem. Using it can be as simple as AlibreScripting is today. You would instead use a Python editor of your choice. I plan to package it into a ready to use library and files available under MIT license.
AlibreScript:
Python:
Win = Windows()
Win.InfoDialog('I am about to create a part', 'My Script')
Win.ErrorDialog("Oops. That didn't go as planned", 'My Script')
print Win.QuestionDialog('Shall I stop?', 'My Script')
AlibreScriptPython3:
Python:
from AlibreScriptPython3 import *
win = ErrorDialog('I am about to create a part', 'My Script')
InfoDialog('I am about to create a part', 'My Script')
print(QuestionDialog('Shall I stop?', 'My Script'))
There are difference between AlibreScript (ironpython2.7) and AlibreScriptPython3 (py3) but these can be solved and discussed later.
AlibreScriptPython3 is the full AlibreScript API which is 700+ members.
alibre.script.api.text/alibre.script.api2.txt at 843c1489aa324f77a252ef9a72e876f2e72fe47d · Testbed-for-Alibre-Design/alibre.script.api.text
Contribute to Testbed-for-Alibre-Design/alibre.script.api.text development by creating an account on GitHub.
github.com
This can become many things far beyond what I have made, this is AlibreScript inside Python. The way it works can be changed and made much simpler and can grow and be updated alongside AlibreScript.
Tools to convert to and from AlibreScript scripts and AlibreScriptPython3 are not made yet. An addon and other tools can be developed. This is very early work.
Thanks for your help.
Last edited: