API Help
EPLAN API / API Reference / Actions / InsertModelViewAction
In This Topic
    InsertModelViewAction
    In This Topic
    Action to insert model view object on a page.
    

    Parameter Description

    PROJECTNAME

    Project name with full path (optional).
    If not entered, the selected project is used when the action is called from GUI (like from a script or button bar). If called from the windows command line,
    PROJECTNAME must be set or the  must be used first, otherwise an  exception is thrown. 
    

    LAYOUTSPACE

    Name of layout space for which model view is created. This parameter is mandatory.
    

    STRUCTURE

    Structure identifier for which model view is created. This parameter is mandatory if name of layout space is not unique in project.
    

    PAGENAME

    Full name of page on which model view will be inserted. This parameter is mandatory.
    

    X

    X-coordinate of model view's lower left corner. This parameter is mandatory.
    

    Y

    Y-coordinate of model view's lower left corner. This parameter is mandatory.
    

    DX

    Width of model view. This parameter is mandatory.
    

    DY

    Height of model view. This parameter is mandatory.
    

    VIEWNAME

    Name of model view.
    

    DESCRIPTION

    Description of model view. Value of this parameter can be in multi-language string format.
    

    ANGLE

    Rotation of the content of model view. 
    Possible values are: 
    1 - content is rotated 90° counter-clockwise; 
    2 - content is rotated 90° in opposite direction.
    

    SELECTIONSCHEME

    Name of the selection scheme.
    

    STYLE

    Style in which content of model view is displayed.
    Possible values are:
    0 - Wire frame model;
    1 - Hidden lines;
    2 - Shading;
    3 - Hidden lines / Simplified representation;
    4 - Shading / Simplified representation.
    

    ITEMLABELING

    Name of the scheme which is applied for labeling the items in the model view.
    

    VIEWPOINT

    The direction from which objects are seen in model view.
    Possible values are:
    0 - Default;
    1 - Bottom;
    2 - Top;
    3 - Left;
    4 - Right;
    5 - Front;
    6 - Rear;
    7 - SE isometric;
    8 - SW isometric;
    9 - NE isometric;
    10 - NW isometric;
    

    ROOTELEMENTS

    Values of property FUNCTION3D_ID_RELATIVE separated by # from 3D placements which will be set as root elements in created model view.
    

    SCALESETTING

    Type of scaling used to display objects in the model view.
    Possible values are:
    0 - Automatic;
    1 - Fit;
    2 - Manually defined;
    

    SCALE

    Scale used to display objects in model view.
    

    OBJECTID

    [OUT] Object id of created model view.