示例#1
0
# pylint: skip-file
from pyrevit import HOST_APP, EXEC_PARAMS
from pyrevit import revit, script
import hooks_logger as hl

args = EXEC_PARAMS.event_args

hl.log_hook(__file__,
    {
        "cancellable?": str(args.Cancellable),
        "solutions_num": str(args.NumberOfSolutions),
        "operation": str(args.Operation),
        "service_id": str(args.ServiceId),
        "all_parts_count": str(args.GetAllSolutionsPartsTypeCounts()),
        "parts_count": str(args.GetCurrentSolutionPartTypeIds()),
        "parts_ids": str(args.GetFabricationPartTypeIds()),
        "filtered_parts_count": str(args.GetFilteredSolutionsPartsTypeCounts()),
        "required_parts_ids": str(args.GetRequiredFabricationPartTypeIds()),
    },
    log_doc_access=True
)
示例#2
0
# pylint: skip-file
import hooks_logger as hl
hl.log_hook(__file__, {
    "cancellable?": str(__eventargs__.Cancellable),
    "doc": str(__eventargs__.Document),
    "family_name": str(__eventargs__.FamilyName),
    "family_path": str(__eventargs__.FamilyPath),
},
            log_doc_access=True)
示例#3
0
# pylint: skip-file
import hooks_logger as hl

hl.log_hook(__file__, {
    "cancellable?": str(__eventargs__.Cancellable),
    "doc": str(__eventargs__.Document),
    "format": str(__eventargs__.Format),
    "import_id": str(__eventargs__.ImportedInstanceId),
    "path": str(__eventargs__.Path),
    "status": str(__eventargs__.Status),
},
            log_doc_access=True)
示例#4
0
# pylint: skip-file
import hooks_logger as hl
hl.log_hook(__file__, {
    "cancellable?": str(__eventargs__.Cancellable),
    "doc": str(__eventargs__.GetDocument()),
    "added": str(__eventargs__.GetAddedElementIds().Count),
    "deleted": str(__eventargs__.GetDeletedElementIds().Count),
    "modified": str(__eventargs__.GetModifiedElementIds().Count),
    "txn_names": str(list(__eventargs__.GetTransactionNames())),
    "operation": str(__eventargs__.Operation),
},
            log_doc_access=True)
示例#5
0
# pylint: skip-file
import hooks_logger as hl
hl.log_hook(__file__, {
    "cancellable?": str(__eventargs__.Cancellable),
    "page_count": str(__eventargs__.PagesCount),
},
            log_doc_access=True)
示例#6
0
# pylint: skip-file
from pyrevit import HOST_APP, EXEC_PARAMS
from pyrevit import revit, script
import hooks_logger as hl

args = EXEC_PARAMS.event_args

hl.log_hook(__file__, {
    "cancellable?": str(args.Cancellable),
    "focus_gained": str(args.FocusGained),
    "pane_id": str(args.PaneId),
},
            log_doc_access=True)
示例#7
0
# pylint: skip-file
import hooks_logger as hl
hl.log_hook(__file__, {
    "cancellable?": str(__eventargs__.Cancellable),
    "doc": str(__eventargs__.CurrentDocument),
    "formula": str(__eventargs__.Formula),
    "param_id": str(__eventargs__.ParameterId),
},
            log_doc_access=True)
示例#8
0
# pylint: skip-file
from pyrevit import HOST_APP, EXEC_PARAMS
from pyrevit import revit, script
import hooks_logger as hl

args = EXEC_PARAMS.event_args

hl.log_hook(__file__, {
    "cancellable?": str(args.Cancellable),
    "doc": str(revit.doc),
    "master_file": str(args.IsSavingAsMasterFile),
    "doc_path": str(args.PathName),
},
            log_doc_access=True)
示例#9
0
# pylint: skip-file
import hooks_logger as hl
hl.log_hook(__file__, {
    "cancellable?": str(__eventargs__.Cancellable),
    "doc": str(__eventargs__.Document),
    "new_type_id": str(__eventargs__.NewElementTypeId),
    "new_type_name": str(__eventargs__.NewName),
    "original_type_id": str(__eventargs__.OriginalElementTypeId),
    "status": str(__eventargs__.Status),
},
            log_doc_access=True)
# pylint: skip-file
import hooks_logger as hl
hl.log_hook(
    __file__, {
        "cancellable?": str(__eventargs__.Cancellable),
        "doc_location": str(__eventargs__.Location),
        "status": str(__eventargs__.Status),
    })
示例#11
0
# pylint: skip-file
from pyrevit import HOST_APP, EXEC_PARAMS
from pyrevit import revit, script
import hooks_logger as hl

args = EXEC_PARAMS.event_args

hl.log_hook(
    __file__, {
        "cancellable?": str(args.Cancellable),
        "command_id": str(args.CommandId.Name),
        "doc_title": str(revit.doc.Title),
        "can_exec": str(args.CanExecute),
    })

args.CanExecute = True
示例#12
0
# pylint: skip-file
import hooks_logger as hl
hl.log_hook(__file__, {
    "new-lines": len(__eventargs__.NewJournalLines),
},
            log_doc_access=False)
示例#13
0
# pylint: skip-file
import hooks_logger as hl

hl.log_hook(
    __file__, {
        "cancellable?": str(__eventargs__.Cancellable),
        "command_id": str(__eventargs__.CommandId.Name),
        "doc_title": str(__eventargs__.ActiveDocument.Title),
        "can_exec": str(__eventargs__.CanExecute),
    })

__eventargs__.CanExecute = True
示例#14
0
# pylint: skip-file
from pyrevit import HOST_APP, EXEC_PARAMS
from pyrevit import revit, script
import hooks_logger as hl

args = EXEC_PARAMS.event_args

hl.log_hook(__file__, {
    "cancellable?": str(args.Cancellable),
    "doc": str(revit.doc),
    "views": str(args.GetViewElementIds()),
    "settings": str(args.GetSettings()),
},
            log_doc_access=True)
示例#15
0
# pylint: skip-file
import hooks_logger as hl
hl.log_hook(__file__, {
    "cancellable?": str(__eventargs__.Cancellable),
    "doc": str(__eventargs__.Document),
    "views": str(__eventargs__.GetViewElementIds()),
    "settings": str(__eventargs__.GetSettings()),
},
            log_doc_access=True)
# pylint: skip-file
from pyrevit import HOST_APP, EXEC_PARAMS
from pyrevit import revit, script
import hooks_logger as hl

args = EXEC_PARAMS.event_args

hl.log_hook(
    __file__,
    {
        "cancellable?": str(args.Cancellable),
        "doc": str(revit.doc),
        "source_doc": str(args.SourceDocument),
        "target_doc": str(args.TargetDocument),
        "ext_items": str(args.GetExternalItems()),
        # "set_ext_items": str(args.SetExternalItems()),
    },
    log_doc_access=True)
示例#17
0
# pylint: skip-file
from pyrevit import HOST_APP, EXEC_PARAMS
from pyrevit import revit, script
import hooks_logger as hl

args = EXEC_PARAMS.event_args

hl.log_hook(__file__, {
    "cancellable?": str(args.Cancellable),
    "doc": str(revit.doc),
    "status": str(args.Status),
    "passed_on": str(args.GetPrintedViewElementIds()),
    "failed_on": str(args.GetFailedViewElementIds()),
},
            log_doc_access=True)
示例#18
0
# pylint: skip-file
from pyrevit import HOST_APP, EXEC_PARAMS
from pyrevit import revit, script
import hooks_logger as hl

args = EXEC_PARAMS.event_args

hl.log_hook(__file__, {
    "cancellable?": str(args.Cancellable),
    "doc": str(revit.doc),
    "path": str(args.LinkedResourcePathName),
    "type": str(args.ResourceType),
    "status": str(args.Status),
},
            log_doc_access=True)
示例#19
0
# pylint: skip-file
from pyrevit import HOST_APP, EXEC_PARAMS
from pyrevit import revit, script
import hooks_logger as hl

args = EXEC_PARAMS.event_args

hl.log_hook(
    __file__, {
        "cancellable?": str(args.Cancellable),
        "doc_type": str(args.DocumentType),
        "doc_path": str(args.PathName),
    })
示例#20
0
# pylint: skip-file
from pyrevit import HOST_APP, EXEC_PARAMS
from pyrevit import revit, script
import hooks_logger as hl

args = EXEC_PARAMS.event_args

hl.log_hook(__file__, {
    "cancellable?": str(args.Cancellable),
    "doc": str(revit.doc),
    "view_id": str(args.ViewId),
},
            log_doc_access=True)
示例#21
0
# pylint: skip-file
from pyrevit import HOST_APP, EXEC_PARAMS
from pyrevit import revit, script
import hooks_logger as hl

args = EXEC_PARAMS.event_args


hl.log_hook(__file__,
    {
        "cancellable?": str(args.Cancellable),
        "doc": str(revit.doc),
        "status": str(args.Status),
    },
    log_doc_access=True
)
# pylint: skip-file
import hooks_logger as hl
hl.log_hook(__file__,
    {
        "cancellable?": str(__eventargs__.Cancellable),
        "command_id": str(__eventargs__.CommandId.Name),
        "doc_title": str(__eventargs__.ActiveDocument.Title),
        "using_cmddata": str(__eventargs__.UsingCommandData),
    }
)
示例#23
0
# pylint: skip-file
from pyrevit import HOST_APP, EXEC_PARAMS
from pyrevit import revit, script

args = EXEC_PARAMS.event_args

import hooks_logger as hl
hl.log_hook(__file__, {
    "cancellable?": str(args.Cancellable),
    "doc": str(revit.doc),
    "status": str(args.Status),
    "script_doc": script.get_document_data_file('this', '.dat')
},
            log_doc_access=True)
示例#24
0
# pylint: skip-file
from pyrevit import HOST_APP, EXEC_PARAMS
from pyrevit import revit, script
import hooks_logger as hl

args = EXEC_PARAMS.event_args

hl.log_hook(
    __file__,
    {
        "cancellable?": str(args.Cancellable),
        "accessor": str(args.GetFailuresAccessor()),
        "get_results": str(args.GetProcessingResult()),
        # "set_results": str(args.SetProcessingResult()),
    },
    log_doc_access=True)
示例#25
0
# pylint: skip-file
import hooks_logger as hl
hl.log_hook(__file__,
    {
        "cancellable?": str(__eventargs__.Cancellable),
        "caption": str(__eventargs__.Caption),
        "lower": str(__eventargs__.LowerRange),
        "upper": str(__eventargs__.UpperRange),
        "position": str(__eventargs__.Position),
        "stage": str(__eventargs__.Stage),
    },
    log_doc_access=True
)
# pylint: skip-file
import hooks_logger as hl

hl.log_hook(__file__, {
    "cancellable?": str(__eventargs__.Cancellable),
    "source_doc": str(__eventargs__.SourceDocument),
    "target_doc": str(__eventargs__.TargetDocument),
    "ext_items": str(__eventargs__.GetSelectedExternalItems()),
},
            log_doc_access=True)
示例#27
0
# pylint: skip-file
import hooks_logger as hl
hl.log_hook(__file__,
    {
        "cancellable?": str(__eventargs__.Cancellable),
        "doc": str(__eventargs__.Document),
        "current_view": str(__eventargs__.CurrentActiveView),
        "new_view": str(__eventargs__.NewActiveView),
    },
    log_doc_access=True
)
示例#28
0
# pylint: skip-file
import hooks_logger as hl
hl.log_hook(__file__, {
    "cancellable?": str(__eventargs__.Cancellable),
    "frame_shown": str(__eventargs__.DockableFrameShown),
    "pane_id": str(__eventargs__.PaneId),
},
            log_doc_access=True)
示例#29
0
# pylint: skip-file
from pyrevit import HOST_APP, EXEC_PARAMS
from pyrevit import revit, script
import hooks_logger as hl

args = EXEC_PARAMS.event_args

hl.log_hook(__file__,
    {
        "cancellable?": str(args.Cancellable),
        "doc_type": str(args.DocumentType),
        "doc_template": str(args.Template),
    },
    log_doc_access=True
)
示例#30
0
# pylint: skip-file
from pyrevit import HOST_APP, EXEC_PARAMS
from pyrevit import revit, script
import hooks_logger as hl

args = EXEC_PARAMS.event_args

hl.log_hook(__file__, {
    "cancellable?": str(args.Cancellable),
    "doc": str(revit.doc),
    "format": str(args.Format),
    "path": str(args.Path),
},
            log_doc_access=True)