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

In This Topic
    AddPart(String,String) Method
    In This Topic
    Adds a new part into the parts database. 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,
       string variant
    )
    public:
    MDPart^ AddPart( 
       String^ sPartNr,
       String^ variant
    ) 

    Parameters

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