create
Database objects creation functions.
Attributes
mlogger = get_logger(__name__)
module-attribute
PARAM_VALUE_EVALUATORS = {'startswith': (DB.FilterStringBeginsWith, DB.FilterStringBeginsWith), 'contains': (DB.FilterStringContains, DB.FilterStringContains), 'endswith': (DB.FilterStringEndsWith, DB.FilterStringEndsWith), '==': (DB.FilterStringEquals, DB.FilterNumericEquals), '>': (DB.FilterStringGreater, DB.FilterNumericGreater), '>=': (DB.FilterStringGreaterOrEqual, DB.FilterNumericGreaterOrEqual), '<': (DB.FilterStringLess, DB.FilterNumericLess), '<=': (DB.FilterStringLessOrEqual, DB.FilterNumericLessOrEqual)}
module-attribute
Classes
FamilyLoaderOptionsHandler(overwriteParameterValues=True)
Bases: IFamilyLoadOptions
Family loader options handler.
Source code in pyrevitlib/pyrevit/revit/db/create.py
Functions
OnFamilyFound(familyInUse, overwriteParameterValues)
A method called when the family was found in the target document.
OnSharedFamilyFound(sharedFamily, familyInUse, source, overwriteParameterValues)
Source code in pyrevitlib/pyrevit/revit/db/create.py
CopyUseDestination
Bases: IDuplicateTypeNamesHandler
Handle copy and paste errors.
Functions
OnDuplicateTypeNamesFound(args)
Functions
create_param_from_definition(param_def, category_list, builtin_param_group, type_param=False, allow_vary_betwen_groups=False, doc=None)
Source code in pyrevitlib/pyrevit/revit/db/create.py
create_shared_param(param_id_or_name, category_list, builtin_param_group, type_param=False, allow_vary_betwen_groups=False, doc=None)
Source code in pyrevitlib/pyrevit/revit/db/create.py
create_new_project(template=None, imperial=True)
Source code in pyrevitlib/pyrevit/revit/db/create.py
create_revision(description=None, by=None, to=None, date=None, alphanum=False, nonum=False, doc=None)
Source code in pyrevitlib/pyrevit/revit/db/create.py
copy_elements(element_ids, src_doc, dest_doc)
Source code in pyrevitlib/pyrevit/revit/db/create.py
copy_revisions(revisions, src_doc, dest_doc)
Source code in pyrevitlib/pyrevit/revit/db/create.py
copy_all_revisions(src_doc, dest_doc)
copy_viewtemplates(viewtemplates, src_doc, dest_doc)
Source code in pyrevitlib/pyrevit/revit/db/create.py
create_sheet(sheet_num, sheet_name, titleblock_id=DB.ElementId.InvalidElementId, doc=None)
Source code in pyrevitlib/pyrevit/revit/db/create.py
create_3d_view(view_name, isometric=True, doc=None)
Source code in pyrevitlib/pyrevit/revit/db/create.py
create_revision_sheetset(revisions, name_format='Revision {}', match_any=True, doc=None)
Source code in pyrevitlib/pyrevit/revit/db/create.py
load_family(family_file, doc=None)
enable_worksharing(levels_workset_name='Shared Levels and Grids', default_workset_name='Workset1', doc=None)
Source code in pyrevitlib/pyrevit/revit/db/create.py
create_workset(workset_name, doc=None)
create_filledregion(filledregion_name, fillpattern_element, doc=None)
Source code in pyrevitlib/pyrevit/revit/db/create.py
create_text_type(name, font_name=None, font_size=0.01042, tab_size=0.02084, bold=False, italic=False, underline=False, with_factor=1.0, doc=None)
Source code in pyrevitlib/pyrevit/revit/db/create.py
create_param_value_filter(filter_name, param_id, param_values, evaluator, match_any=True, case_sensitive=False, exclude=False, category_list=None, doc=None)
Source code in pyrevitlib/pyrevit/revit/db/create.py
385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 |
|