API Help
Eplan.EplApi.DataModel.EObjects Namespace / Plug Class / Create Method / Create(PlugStrip,Page) Method
A PlugStrip where the plug will be located.
A Eplan.EplApi.DataModel.Page where the plug will be placed. If the page parameter is NULL, the plug will be un-placed.

In This Topic
    Create(PlugStrip,Page) Method
    In This Topic
    Creates a Plug object related to a PlugStrip given as a parameter. The plug's function definition will be chosen based on the plug strip's function definition:

    - for "Male and female" plug strips, the plug will get "Male and Female pin" function definition,

    - for "Male" plug strips, the plug will get "Male pin, 2 connection points" function definition,

    - for "Female" plug strips, the plug will get "Female pin, 2 connection points" function definition

    Syntax
    public void Create( 
       PlugStrip ps,
       Page page
    )
    public:
    void Create( 
       PlugStrip^ ps,
       Page^ page
    ) 

    Parameters

    ps
    A PlugStrip where the plug will be located.
    page
    A Eplan.EplApi.DataModel.Page where the plug will be placed. If the page parameter is NULL, the plug will be un-placed.
    Exceptions
    ExceptionDescription
    Thrown when the plug cannot be created.
    Thrown when the ps parameters is null.
    See Also