All checks were successful
Build and Test / build (pull_request) Successful in 30m3s
- Create docs/examples/example-addon/ with a complete, copy-paste-ready addon skeleton demonstrating command registration, context injection, dock panels, lifecycle hooks, and event bus subscription - Add Examples section to docs/src/SUMMARY.md - Add quick-start cross-reference in writing-an-addon.md
13 lines
370 B
Python
13 lines
370 B
Python
"""Example addon — console initialization.
|
|
|
|
This file runs in both console and GUI mode. Use it for non-GUI setup
|
|
such as registering custom property types or document observers that
|
|
should work without a display.
|
|
|
|
Most addons only need a log line here. Heavy setup belongs in InitGui.py.
|
|
"""
|
|
|
|
import FreeCAD
|
|
|
|
FreeCAD.Console.PrintLog("example-addon: console init\n")
|