Below is a demonstration of a simple API request in Python using the PyPCAD libraryAPI:
Begin by importing the Python API and assigning it an alias 'api' for future reference.
Code Block import PyPCAD.api as api
Next, create an Application Object for further utilization.
Code Block app = api.PyPCAD()
Utilize AddText() to include text on the ModelSpace. Use Apoint() to pinpoint the location on the ModelSpace where the text will be inserted, specifying the desired height (e.g., 50).
Code Block app.AddText("HELLO", api.Apoint(0, 0, 0), 50)
Use ZoomExtents() to adjust the view to focus on the text within the ModelSpace.
Code Block app.ZoomExtents()
Save the Python file and execute the program to observe the outcome within the ModelSpace.
...