The ability to set witness line lengths for dimensions is missing from the API. Please add support to do this.
See forum topic: https://forums.autodesk.com/t5/revit-api-forum/is-there-a-way-to-adjust-a-witness-line-gap/td-p/8025... for more info.
Can't find what you're looking for? Ask the community or share your knowledge.