Mutate an existing harness connector group through the connector-owned public API.
This sample:
- builds its own standalone baseline harness document that matches the creation example geometry and styling
- reopens it from disk through
AltiumSchDoc(...) - looks up entries through
connector.get_entry(...) - renames
SDAtoSDA0and replacesSCLwithSCL0 - mutates connector, entry, signal-harness, and port colors and fonts
- moves the connector type label to
3700 mil, 4600 miland renames it toI2C_CTRL - saves the mutated document back through the normal
save()path
The example is self-contained. It writes both an input and mutated output file so the round-trip result is easy to inspect.
uv run python examples\schdoc_mutate_harness_connector\schdoc_mutate_harness_connector.pyThe script writes:
output/harness_mutation_input.SchDoc
output/harness_mutation_output.SchDoc