pub fn add_member(
input: &Path,
parent: &str,
member_name: &str,
member_kind: &str,
type_name: Option<&str>,
verbose: bool,
) -> Result<AddMemberResult, String>Expand description
Add a new member (part, attribute, etc.) to an existing element.
Uses AnalysisHost::apply_model_edit() to add a child element via
the semantic Model layer, with automatic text re-rendering and
SymbolIndex sync.
§Arguments
input- Path to a.sysmlfileparent- Name or qualified name of the parent elementmember_name- Name for the new membermember_kind- Kind string (e.g., “PartUsage”, “AttributeUsage”, “PartDefinition”)type_name- Optional type to assign (e.g., “Engine” forpart engine : Engine)verbose- Enable verbose output