API Help
Eplan.EplApi.MasterData Namespace / MDPartsDatabase Class / AddPart Method / AddPart(String) Method

In This Topic
    AddPart(String) Method
    In This Topic
    Adds a new part into the parts database. That part will get the default-variant: "1" If it's not possible (because there is already a part with that partnr and variant) an MDInvalidArgumentException will be thrown
    Syntax
    public MDPart AddPart( 
       string sPartNr
    )
    public:
    MDPart^ AddPart( 
       String^ sPartNr
    ) 

    Parameters

    sPartNr
    Exceptions
    ExceptionDescription
    If part already exists.
    Remarks
    Returns the part object of the created part.
    See Also