Eplan Platform API
Eplan.EplApi.HEServices Namespace / MountingPanelService Class / CreateArticlePlacement Method / CreateArticlePlacement(Function,String,Int32,PointD,Function) Method
mounting panel
part number
variant of the article's macro to insert (0 - variant A, 1 - variant B, etc.)
location
created article placement
Example

In This Topic
    CreateArticlePlacement(Function,String,Int32,PointD,Function) Method
    In This Topic
    Produces an article placement on the mounting panel. The article must be in the project's database.
    Syntax

    Parameters

    Parameter NameDescription
    oMountingPanelmounting panel
    strPartNumberpart number
    macroVariantvariant of the article's macro to insert (0 - variant A, 1 - variant B, etc.)
    pLocationlocation
    oArticlePlacementcreated article placement
    Remarks
    In case the specified macro variant doesn't exist, a BaseException is thrown. Position of created placement is influenced by part placement handle string setting ("USER.PanelLayoutGui.Settings.Gripper"). If "USER.PanelLayoutGui.Settings.Gripper" is set to "UpperLeft" value then created placement will be positioned exactly at point passed in pLocation parameter.
    Example
    new Settings().SetStringSetting("USER.PanelLayoutGui.Settings.Gripper", "UpperLeft");
    
    //Note: The article must have width and height specified (the values must be greater than zero).
    See Also