API Help
Eplan.EplApi.HEServices Namespace / MountingPanelService Class / CreateArticlePlacement Method / CreateArticlePlacement(Function,String,PointD,Function) Method
mounting panel
part number
location
created article placement
Example

In This Topic
    CreateArticlePlacement(Function,String,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

    oMountingPanel
    mounting panel
    strPartNumber
    part number
    pLocation
    location
    oArticlePlacement
    created article placement
    Remarks
    By default, variant A of the macro specified for the article is inserted. In case the variant doesn't exist in the macro, 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