function init(basePath) {
    var action = new RGuiAction(qsTranslate("DimHorizontal", "&Horizontal"),
        RMainWindowQt.getMainWindow());
    action.setRequiresDocument(true);
    action.setScriptFile(basePath + "/DimHorizontal.js");
    action.setStatusTip(qsTranslate("DimHorizontal", "Draw horizontal dimension"));
    action.setDefaultShortcut(new QKeySequence("d,h"));
    action.setDefaultCommands(["dimhor", "dimhorizontal", "dh"]);
    action.setGroupSortOrder(12100);
    action.setSortOrder(300);
    action.setWidgetNames(["DimensionMenu", "DimensionToolBar", "DimensionToolsPanel", "DimensionMatrixPanel"]);
}
