2020-04-07 12:02:44 +10:00
|
|
|
# Check if we are running in Blender before loading, to allow for multiprocessing
|
|
|
|
|
import sys
|
2020-11-01 20:08:48 +07:00
|
|
|
|
|
|
|
|
bpy = sys.modules.get("bpy")
|
2020-04-07 12:02:44 +10:00
|
|
|
|
|
|
|
|
if bpy is not None:
|
|
|
|
|
import bpy
|
|
|
|
|
from . import ui, prop, operator
|
|
|
|
|
|
2020-05-20 10:42:48 +10:00
|
|
|
from .module.covetool import prop as covetool_prop
|
|
|
|
|
from .module.covetool import ui as covetool_ui
|
|
|
|
|
from .module.covetool import operator as covetool_operator
|
|
|
|
|
|
2020-08-14 20:43:44 +10:00
|
|
|
from .module.model import grid as model_grid
|
2020-08-11 17:24:30 +10:00
|
|
|
from .module.model import wall as model_wall
|
2020-08-11 19:05:26 +10:00
|
|
|
from .module.model import stair as model_stair
|
2020-08-11 20:54:54 +10:00
|
|
|
from .module.model import door as model_door
|
2020-08-12 08:57:58 +10:00
|
|
|
from .module.model import window as model_window
|
2020-08-11 21:10:02 +10:00
|
|
|
from .module.model import slab as model_slab
|
2020-08-21 20:38:57 +10:00
|
|
|
from .module.model import opening as model_opening
|
2020-08-11 17:24:30 +10:00
|
|
|
|
2020-04-07 12:02:44 +10:00
|
|
|
classes = (
|
2020-11-03 22:59:35 +11:00
|
|
|
operator.ReassignClass,
|
2020-04-07 12:02:44 +10:00
|
|
|
operator.AssignClass,
|
2020-06-23 23:42:33 +10:00
|
|
|
operator.UnassignClass,
|
2020-04-07 12:02:44 +10:00
|
|
|
operator.SelectClass,
|
|
|
|
|
operator.SelectType,
|
|
|
|
|
operator.SelectBcfFile,
|
|
|
|
|
operator.GetBcfTopics,
|
|
|
|
|
operator.ViewBcfTopic,
|
|
|
|
|
operator.ActivateBcfViewpoint,
|
|
|
|
|
operator.OpenBcfFileReference,
|
|
|
|
|
operator.OpenBcfReferenceLink,
|
|
|
|
|
operator.OpenBcfBimSnippetSchema,
|
|
|
|
|
operator.OpenBcfBimSnippetReference,
|
|
|
|
|
operator.OpenBcfDocumentReference,
|
|
|
|
|
operator.SelectFeaturesDir,
|
|
|
|
|
operator.SelectDiffJsonFile,
|
|
|
|
|
operator.SelectDiffNewFile,
|
|
|
|
|
operator.SelectDiffOldFile,
|
|
|
|
|
operator.SelectDataDir,
|
|
|
|
|
operator.SelectSchemaDir,
|
|
|
|
|
operator.SelectIfcFile,
|
|
|
|
|
operator.ValidateIfcFile,
|
|
|
|
|
operator.ExportIFC,
|
|
|
|
|
operator.ImportIFC,
|
|
|
|
|
operator.ColourByClass,
|
|
|
|
|
operator.ColourByAttribute,
|
|
|
|
|
operator.ColourByPset,
|
|
|
|
|
operator.ResetObjectColours,
|
|
|
|
|
operator.ApproveClass,
|
|
|
|
|
operator.RejectClass,
|
|
|
|
|
operator.SelectAudited,
|
|
|
|
|
operator.RejectElement,
|
|
|
|
|
operator.SelectExternalMaterialDir,
|
|
|
|
|
operator.AddSweptSolid,
|
|
|
|
|
operator.RemoveSweptSolid,
|
|
|
|
|
operator.AssignSweptSolidOuterCurve,
|
|
|
|
|
operator.SelectSweptSolidOuterCurve,
|
|
|
|
|
operator.AddSweptSolidInnerCurve,
|
|
|
|
|
operator.SelectSweptSolidInnerCurves,
|
|
|
|
|
operator.AssignSweptSolidExtrusion,
|
|
|
|
|
operator.SelectSweptSolidExtrusion,
|
|
|
|
|
operator.AddPset,
|
|
|
|
|
operator.RemovePset,
|
|
|
|
|
operator.AddQto,
|
|
|
|
|
operator.RemoveQto,
|
|
|
|
|
operator.AddMaterialPset,
|
|
|
|
|
operator.RemoveMaterialPset,
|
2020-11-04 21:28:47 +11:00
|
|
|
operator.AddMaterialLayer,
|
|
|
|
|
operator.RemoveMaterialLayer,
|
|
|
|
|
operator.MoveMaterialLayer,
|
2020-11-05 22:41:43 +11:00
|
|
|
operator.AddMaterialConstituent,
|
|
|
|
|
operator.RemoveMaterialConstituent,
|
|
|
|
|
operator.MoveMaterialConstituent,
|
2020-11-09 19:15:23 +11:00
|
|
|
operator.AddMaterialProfile,
|
|
|
|
|
operator.RemoveMaterialProfile,
|
|
|
|
|
operator.MoveMaterialProfile,
|
2020-07-06 17:26:38 +10:00
|
|
|
operator.AddConstraint,
|
|
|
|
|
operator.RemoveConstraint,
|
2020-07-07 12:33:41 +10:00
|
|
|
operator.AssignConstraint,
|
|
|
|
|
operator.UnassignConstraint,
|
|
|
|
|
operator.RemoveObjectConstraint,
|
2020-07-09 20:46:50 +10:00
|
|
|
operator.AddPerson,
|
|
|
|
|
operator.RemovePerson,
|
2020-07-13 15:29:06 +10:00
|
|
|
operator.AddPersonRole,
|
|
|
|
|
operator.RemovePersonRole,
|
2020-07-09 20:46:50 +10:00
|
|
|
operator.AddPersonAddress,
|
|
|
|
|
operator.RemovePersonAddress,
|
|
|
|
|
operator.AddOrganisation,
|
|
|
|
|
operator.RemoveOrganisation,
|
2020-07-13 15:29:06 +10:00
|
|
|
operator.AddOrganisationRole,
|
|
|
|
|
operator.RemoveOrganisationRole,
|
2020-07-09 20:46:50 +10:00
|
|
|
operator.AddOrganisationAddress,
|
|
|
|
|
operator.RemoveOrganisationAddress,
|
2020-05-01 12:56:57 +10:00
|
|
|
operator.AddDocumentInformation,
|
|
|
|
|
operator.RemoveDocumentInformation,
|
2020-05-01 19:13:54 +10:00
|
|
|
operator.AssignDocumentInformation,
|
2020-05-01 17:24:59 +10:00
|
|
|
operator.AddDocumentReference,
|
|
|
|
|
operator.RemoveDocumentReference,
|
|
|
|
|
operator.AssignDocumentReference,
|
|
|
|
|
operator.UnassignDocumentReference,
|
|
|
|
|
operator.RemoveObjectDocumentReference,
|
2020-04-07 12:02:44 +10:00
|
|
|
operator.GenerateGlobalId,
|
|
|
|
|
operator.AddAttribute,
|
|
|
|
|
operator.RemoveAttribute,
|
|
|
|
|
operator.AddMaterialAttribute,
|
|
|
|
|
operator.RemoveMaterialAttribute,
|
|
|
|
|
operator.QuickProjectSetup,
|
|
|
|
|
operator.SelectGlobalId,
|
|
|
|
|
operator.SelectAttribute,
|
|
|
|
|
operator.SelectPset,
|
|
|
|
|
operator.CreateAggregate,
|
|
|
|
|
operator.EditAggregate,
|
|
|
|
|
operator.SaveAggregate,
|
|
|
|
|
operator.ExplodeAggregate,
|
2020-04-23 16:05:06 +10:00
|
|
|
operator.LoadClassification,
|
|
|
|
|
operator.AddClassification,
|
|
|
|
|
operator.RemoveClassification,
|
2020-04-07 12:02:44 +10:00
|
|
|
operator.AssignClassification,
|
|
|
|
|
operator.UnassignClassification,
|
2020-04-23 16:05:06 +10:00
|
|
|
operator.RemoveClassificationReference,
|
2020-04-07 12:02:44 +10:00
|
|
|
operator.FetchLibraryInformation,
|
|
|
|
|
operator.FetchExternalMaterial,
|
|
|
|
|
operator.FetchObjectPassport,
|
|
|
|
|
operator.AddSubcontext,
|
|
|
|
|
operator.RemoveSubcontext,
|
|
|
|
|
operator.CutSection,
|
2020-08-16 11:54:05 +10:00
|
|
|
operator.AddSheet,
|
2020-04-07 12:02:44 +10:00
|
|
|
operator.OpenSheet,
|
2020-08-16 11:54:05 +10:00
|
|
|
operator.AddDrawingToSheet,
|
2020-04-07 12:02:44 +10:00
|
|
|
operator.CreateSheets,
|
|
|
|
|
operator.OpenView,
|
|
|
|
|
operator.ActivateView,
|
|
|
|
|
operator.ExecuteIfcDiff,
|
2020-08-04 19:00:34 +10:00
|
|
|
operator.VisualiseDiff,
|
2020-05-19 20:35:00 +10:00
|
|
|
operator.ExportClashSets,
|
|
|
|
|
operator.ImportClashSets,
|
2020-05-19 15:08:54 +10:00
|
|
|
operator.AddClashSet,
|
|
|
|
|
operator.RemoveClashSet,
|
|
|
|
|
operator.AddClashSource,
|
|
|
|
|
operator.RemoveClashSource,
|
|
|
|
|
operator.SelectClashSource,
|
2020-05-16 12:54:26 +10:00
|
|
|
operator.ExecuteIfcClash,
|
2020-05-25 19:07:09 +10:00
|
|
|
operator.SelectIfcClashResults,
|
2020-11-21 16:29:55 -05:00
|
|
|
operator.SelectClashResults,
|
|
|
|
|
operator.SelectSmartGroupedClashesPath,
|
2020-11-06 21:14:21 -05:00
|
|
|
operator.SmartClashGroup,
|
2020-11-21 16:37:53 -05:00
|
|
|
operator.SelectSmartGroup,
|
2020-11-21 18:43:07 -05:00
|
|
|
operator.LoadSmartGroupsForActiveClashSet,
|
2020-05-07 16:57:14 +10:00
|
|
|
operator.SwitchContext,
|
2020-07-03 21:08:40 +10:00
|
|
|
operator.RemoveContext,
|
2020-04-07 12:02:44 +10:00
|
|
|
operator.OpenUpstream,
|
2020-04-23 16:05:06 +10:00
|
|
|
operator.BIM_OT_ChangeClassificationLevel,
|
2020-04-24 17:14:07 +10:00
|
|
|
operator.AddPropertySetTemplate,
|
2020-04-24 18:05:59 +10:00
|
|
|
operator.RemovePropertySetTemplate,
|
2020-04-24 17:14:07 +10:00
|
|
|
operator.EditPropertySetTemplate,
|
|
|
|
|
operator.SavePropertySetTemplate,
|
|
|
|
|
operator.AddPropertyTemplate,
|
2020-04-24 18:05:59 +10:00
|
|
|
operator.RemovePropertyTemplate,
|
2020-04-25 16:21:15 +10:00
|
|
|
operator.AddSectionPlane,
|
2020-04-25 19:09:34 +10:00
|
|
|
operator.RemoveSectionPlane,
|
2020-04-26 14:41:38 +10:00
|
|
|
operator.AddCsvAttribute,
|
|
|
|
|
operator.RemoveCsvAttribute,
|
|
|
|
|
operator.ExportIfcCsv,
|
|
|
|
|
operator.ImportIfcCsv,
|
2020-04-27 08:32:01 +10:00
|
|
|
operator.EyedropIfcCsv,
|
2020-04-28 14:52:04 +10:00
|
|
|
operator.ReloadIfcFile,
|
2020-04-29 20:26:36 +10:00
|
|
|
operator.SelectSimilarType,
|
2020-05-02 17:33:16 +10:00
|
|
|
operator.AddIfcFile,
|
|
|
|
|
operator.RemoveIfcFile,
|
|
|
|
|
operator.SelectDocIfcFile,
|
2020-05-03 15:41:05 +10:00
|
|
|
operator.AddAnnotation,
|
2020-08-29 18:56:23 +10:00
|
|
|
operator.GenerateReferences,
|
2020-05-03 19:54:27 +10:00
|
|
|
operator.ResizeText,
|
2020-05-04 12:20:34 +10:00
|
|
|
operator.AddVariable,
|
|
|
|
|
operator.RemoveVariable,
|
2020-05-07 09:36:38 +10:00
|
|
|
operator.PropagateTextData,
|
2020-05-07 22:15:16 +10:00
|
|
|
operator.PushRepresentation,
|
2020-05-12 13:31:16 +10:00
|
|
|
operator.ConvertLocalToGlobal,
|
2020-11-05 18:17:45 +11:00
|
|
|
operator.ConvertGlobalToLocal,
|
2020-07-18 14:22:18 +10:00
|
|
|
operator.GuessQuantity,
|
2020-07-20 22:08:39 +10:00
|
|
|
operator.ExecuteBIMTester,
|
|
|
|
|
operator.BIMTesterPurge,
|
2020-07-23 17:02:48 +10:00
|
|
|
operator.SelectCobieIfcFile,
|
2020-08-21 14:38:41 +10:00
|
|
|
operator.SelectCobieJsonFile,
|
2020-07-23 17:02:48 +10:00
|
|
|
operator.ExecuteIfcCobie,
|
2020-08-05 17:18:10 +10:00
|
|
|
operator.SelectIfcPatchInput,
|
|
|
|
|
operator.SelectIfcPatchOutput,
|
|
|
|
|
operator.ExecuteIfcPatch,
|
2020-08-08 14:22:48 +10:00
|
|
|
operator.CalculateEdgeLengths,
|
2020-08-09 11:33:47 +10:00
|
|
|
operator.CalculateFaceAreas,
|
2020-08-09 11:46:14 +10:00
|
|
|
operator.CalculateObjectVolumes,
|
2020-08-09 13:09:29 +10:00
|
|
|
operator.AddOpening,
|
2020-08-12 19:59:30 +10:00
|
|
|
operator.SetOverrideColour,
|
2020-08-13 20:17:51 +10:00
|
|
|
operator.AddDrawing,
|
|
|
|
|
operator.RemoveDrawing,
|
2020-08-12 21:50:57 +10:00
|
|
|
operator.AddDrawingStyle,
|
|
|
|
|
operator.RemoveDrawingStyle,
|
|
|
|
|
operator.SaveDrawingStyle,
|
|
|
|
|
operator.ActivateDrawingStyle,
|
2020-08-15 09:45:20 +10:00
|
|
|
operator.EditVectorStyle,
|
2020-08-16 11:54:05 +10:00
|
|
|
operator.RemoveSheet,
|
2020-08-17 21:43:33 +10:00
|
|
|
operator.AddSchedule,
|
|
|
|
|
operator.RemoveSchedule,
|
|
|
|
|
operator.SelectScheduleFile,
|
2020-08-17 22:10:06 +10:00
|
|
|
operator.BuildSchedule,
|
2020-08-18 10:04:19 +10:00
|
|
|
operator.AddScheduleToSheet,
|
2020-09-01 22:26:57 +10:00
|
|
|
operator.SetViewportShadowFromSun,
|
2020-09-01 22:43:00 +10:00
|
|
|
operator.SetNorthOffset,
|
|
|
|
|
operator.GetNorthOffset,
|
2020-11-05 13:54:20 +01:00
|
|
|
operator.AddPresentationLayer,
|
2020-11-14 22:17:56 +11:00
|
|
|
operator.AssignPresentationLayer,
|
|
|
|
|
operator.UnassignPresentationLayer,
|
2020-11-05 13:54:20 +01:00
|
|
|
operator.RemovePresentationLayer,
|
2020-11-08 13:52:20 +01:00
|
|
|
operator.UpdatePresentationLayer,
|
2020-09-02 21:51:58 +10:00
|
|
|
operator.AddDrawingStyleAttribute,
|
|
|
|
|
operator.RemoveDrawingStyleAttribute,
|
2020-09-03 19:24:55 +10:00
|
|
|
operator.CopyPropertyToSelection,
|
2020-11-22 09:29:33 +11:00
|
|
|
operator.CopyAttributeToSelection,
|
2020-09-05 12:58:53 +10:00
|
|
|
operator.CreateShapeFromStepId,
|
2020-09-07 11:28:35 +10:00
|
|
|
operator.SelectHighPolygonMeshes,
|
2020-11-08 21:52:34 +11:00
|
|
|
operator.InspectFromStepId,
|
|
|
|
|
operator.InspectFromObject,
|
2020-11-09 11:45:53 +11:00
|
|
|
operator.RewindInspector,
|
2020-09-07 17:47:19 +10:00
|
|
|
operator.RefreshDrawingList,
|
2020-09-17 17:28:17 +10:00
|
|
|
operator.GetRepresentationIfcParameters,
|
2020-12-07 15:33:51 +11:00
|
|
|
operator.BakeParametricGeometry,
|
2020-09-17 17:28:17 +10:00
|
|
|
operator.UpdateIfcRepresentation,
|
2020-11-27 18:18:23 +11:00
|
|
|
operator.SetBlenderClashSetA,
|
|
|
|
|
operator.SetBlenderClashSetB,
|
|
|
|
|
operator.ExecuteBlenderClash,
|
2020-12-10 13:50:43 +11:00
|
|
|
operator.CleanWireframes,
|
2020-04-23 16:05:06 +10:00
|
|
|
prop.StrProperty,
|
2020-11-09 19:15:23 +11:00
|
|
|
prop.Attribute,
|
2020-11-04 21:28:47 +11:00
|
|
|
prop.MaterialLayer,
|
2020-11-05 22:41:43 +11:00
|
|
|
prop.MaterialConstituent,
|
2020-11-09 19:15:23 +11:00
|
|
|
prop.MaterialProfile,
|
2020-11-05 22:41:43 +11:00
|
|
|
prop.MaterialSet,
|
2020-05-04 12:20:34 +10:00
|
|
|
prop.Variable,
|
2020-07-13 15:29:06 +10:00
|
|
|
prop.Role,
|
2020-07-09 20:46:50 +10:00
|
|
|
prop.Address,
|
|
|
|
|
prop.Person,
|
|
|
|
|
prop.Organisation,
|
2020-04-23 16:05:06 +10:00
|
|
|
prop.Classification,
|
|
|
|
|
prop.ClassificationReference,
|
|
|
|
|
prop.ClassificationView,
|
2020-04-24 17:14:07 +10:00
|
|
|
prop.PropertySetTemplate,
|
|
|
|
|
prop.PropertyTemplate,
|
2020-05-01 12:56:57 +10:00
|
|
|
prop.DocumentInformation,
|
2020-05-01 17:24:59 +10:00
|
|
|
prop.DocumentReference,
|
2020-05-19 15:08:54 +10:00
|
|
|
prop.ClashSource,
|
|
|
|
|
prop.ClashSet,
|
2020-11-10 21:01:51 -05:00
|
|
|
prop.SmartClashGroup,
|
2020-07-06 17:26:38 +10:00
|
|
|
prop.Constraint,
|
2020-08-13 20:17:51 +10:00
|
|
|
prop.Drawing,
|
2020-08-17 21:43:33 +10:00
|
|
|
prop.Schedule,
|
2020-08-12 21:50:57 +10:00
|
|
|
prop.DrawingStyle,
|
2020-08-16 11:54:05 +10:00
|
|
|
prop.Sheet,
|
2020-04-07 12:02:44 +10:00
|
|
|
prop.BcfTopic,
|
|
|
|
|
prop.BcfTopicLabel,
|
|
|
|
|
prop.BcfTopicFile,
|
|
|
|
|
prop.BcfTopicLink,
|
|
|
|
|
prop.BcfTopicDocumentReference,
|
|
|
|
|
prop.BcfTopicRelatedTopic,
|
|
|
|
|
prop.Subcontext,
|
2020-11-05 13:54:20 +01:00
|
|
|
prop.PresentationLayer,
|
2020-04-07 12:02:44 +10:00
|
|
|
prop.BIMProperties,
|
2020-09-05 12:58:53 +10:00
|
|
|
prop.BIMDebugProperties,
|
2020-04-07 12:02:44 +10:00
|
|
|
prop.BCFProperties,
|
|
|
|
|
prop.DocProperties,
|
|
|
|
|
prop.BIMLibrary,
|
|
|
|
|
prop.MapConversion,
|
|
|
|
|
prop.TargetCRS,
|
2020-09-17 17:28:17 +10:00
|
|
|
prop.IfcParameter,
|
2020-04-07 12:02:44 +10:00
|
|
|
prop.BoundaryCondition,
|
|
|
|
|
prop.PsetQto,
|
|
|
|
|
prop.GlobalId,
|
2020-06-11 10:52:00 +10:00
|
|
|
prop.RepresentationItem,
|
2020-04-07 12:02:44 +10:00
|
|
|
prop.BIMObjectProperties,
|
|
|
|
|
prop.BIMMaterialProperties,
|
|
|
|
|
prop.SweptSolid,
|
2020-11-26 21:31:42 +11:00
|
|
|
prop.ItemSlotMap,
|
2020-04-07 12:02:44 +10:00
|
|
|
prop.BIMMeshProperties,
|
|
|
|
|
prop.BIMCameraProperties,
|
2020-05-03 19:54:27 +10:00
|
|
|
prop.BIMTextProperties,
|
2020-04-25 16:21:15 +10:00
|
|
|
ui.BIM_PT_section_plane,
|
2020-08-13 20:17:51 +10:00
|
|
|
ui.BIM_PT_drawings,
|
2020-08-17 21:43:33 +10:00
|
|
|
ui.BIM_PT_schedules,
|
2020-08-13 20:17:51 +10:00
|
|
|
ui.BIM_PT_sheets,
|
2020-04-07 12:02:44 +10:00
|
|
|
ui.BIM_PT_bim,
|
2020-04-24 17:14:07 +10:00
|
|
|
ui.BIM_PT_psets,
|
2020-04-23 16:05:06 +10:00
|
|
|
ui.BIM_PT_classifications,
|
2020-05-01 12:56:57 +10:00
|
|
|
ui.BIM_PT_document_information,
|
2020-07-06 17:26:38 +10:00
|
|
|
ui.BIM_PT_constraints,
|
2020-04-07 12:02:44 +10:00
|
|
|
ui.BIM_PT_search,
|
2020-04-26 14:41:38 +10:00
|
|
|
ui.BIM_PT_ifccsv,
|
2020-05-16 12:54:26 +10:00
|
|
|
ui.BIM_PT_ifcclash,
|
2020-04-07 12:02:44 +10:00
|
|
|
ui.BIM_PT_bcf,
|
|
|
|
|
ui.BIM_PT_owner,
|
2020-07-09 20:46:50 +10:00
|
|
|
ui.BIM_PT_people,
|
|
|
|
|
ui.BIM_PT_organisations,
|
2020-04-07 12:02:44 +10:00
|
|
|
ui.BIM_PT_context,
|
|
|
|
|
ui.BIM_PT_qa,
|
|
|
|
|
ui.BIM_PT_library,
|
|
|
|
|
ui.BIM_PT_gis,
|
2020-11-05 13:54:20 +01:00
|
|
|
ui.BIM_PT_presentation_layers,
|
2020-04-07 12:02:44 +10:00
|
|
|
ui.BIM_PT_diff,
|
2020-07-23 17:02:48 +10:00
|
|
|
ui.BIM_PT_cobie,
|
2020-08-05 17:18:10 +10:00
|
|
|
ui.BIM_PT_patch,
|
2020-04-07 12:02:44 +10:00
|
|
|
ui.BIM_PT_mvd,
|
2020-09-05 12:58:53 +10:00
|
|
|
ui.BIM_PT_debug,
|
2020-04-07 12:02:44 +10:00
|
|
|
ui.BIM_PT_material,
|
|
|
|
|
ui.BIM_PT_mesh,
|
2020-11-05 13:54:20 +01:00
|
|
|
ui.BIM_PT_presentation_layer_data,
|
2020-04-07 12:02:44 +10:00
|
|
|
ui.BIM_PT_object,
|
2020-11-04 21:28:47 +11:00
|
|
|
ui.BIM_PT_object_material,
|
2020-08-08 13:19:56 +10:00
|
|
|
ui.BIM_PT_object_psets,
|
|
|
|
|
ui.BIM_PT_object_qto,
|
2020-05-09 18:14:10 +10:00
|
|
|
ui.BIM_PT_representations,
|
2020-04-23 16:05:06 +10:00
|
|
|
ui.BIM_PT_classification_references,
|
2020-05-01 09:58:15 +10:00
|
|
|
ui.BIM_PT_documents,
|
2020-07-07 12:33:41 +10:00
|
|
|
ui.BIM_PT_constraint_relations,
|
2020-08-09 11:14:11 +10:00
|
|
|
ui.BIM_PT_object_structural,
|
2020-04-07 12:02:44 +10:00
|
|
|
ui.BIM_PT_camera,
|
2020-05-03 19:54:27 +10:00
|
|
|
ui.BIM_PT_text,
|
2020-08-09 13:09:29 +10:00
|
|
|
ui.BIM_PT_modeling_utilities,
|
2020-08-29 11:02:43 +10:00
|
|
|
ui.BIM_PT_annotation_utilities,
|
2020-08-09 13:09:29 +10:00
|
|
|
ui.BIM_PT_qto_utilities,
|
2020-11-06 21:14:21 -05:00
|
|
|
ui.BIM_PT_clash_manager,
|
2020-08-12 19:59:30 +10:00
|
|
|
ui.BIM_PT_misc_utilities,
|
2020-07-09 20:46:50 +10:00
|
|
|
ui.BIM_UL_generic,
|
2020-05-19 15:08:54 +10:00
|
|
|
ui.BIM_UL_clash_sets,
|
2020-11-10 21:01:51 -05:00
|
|
|
ui.BIM_UL_smart_groups,
|
2020-07-06 17:26:38 +10:00
|
|
|
ui.BIM_UL_constraints,
|
2020-05-01 12:56:57 +10:00
|
|
|
ui.BIM_UL_document_information,
|
2020-05-01 17:24:59 +10:00
|
|
|
ui.BIM_UL_document_references,
|
2020-04-07 12:02:44 +10:00
|
|
|
ui.BIM_UL_topics,
|
2020-04-23 16:05:06 +10:00
|
|
|
ui.BIM_UL_classifications,
|
2020-04-07 12:02:44 +10:00
|
|
|
ui.BIM_ADDON_preferences,
|
2020-05-20 10:42:48 +10:00
|
|
|
covetool_prop.CoveToolProject,
|
|
|
|
|
covetool_prop.CoveToolSimpleAnalysis,
|
|
|
|
|
covetool_prop.CoveToolProperties,
|
|
|
|
|
covetool_ui.BIM_UL_covetool_projects,
|
|
|
|
|
covetool_ui.BIM_PT_covetool,
|
|
|
|
|
covetool_operator.Login,
|
|
|
|
|
covetool_operator.RunSimpleAnalysis,
|
2020-05-29 19:18:57 +10:00
|
|
|
covetool_operator.RunAnalysis,
|
2020-08-14 20:43:44 +10:00
|
|
|
model_grid.BIM_OT_add_object,
|
2020-08-11 17:24:30 +10:00
|
|
|
model_wall.BIM_OT_add_object,
|
2020-08-11 19:05:26 +10:00
|
|
|
model_stair.BIM_OT_add_object,
|
2020-08-11 20:54:54 +10:00
|
|
|
model_door.BIM_OT_add_object,
|
2020-08-12 08:57:58 +10:00
|
|
|
model_window.BIM_OT_add_object,
|
2020-08-11 21:10:02 +10:00
|
|
|
model_slab.BIM_OT_add_object,
|
2020-08-21 20:38:57 +10:00
|
|
|
model_opening.BIM_OT_add_object,
|
2020-11-01 20:08:48 +07:00
|
|
|
)
|
2020-04-07 12:02:44 +10:00
|
|
|
|
|
|
|
|
def menu_func_export(self, context):
|
2020-11-01 20:08:48 +07:00
|
|
|
self.layout.operator(operator.ExportIFC.bl_idname, text="Industry Foundation Classes (.ifc/.ifczip/.ifcjson)")
|
2020-04-07 12:02:44 +10:00
|
|
|
|
|
|
|
|
def menu_func_import(self, context):
|
2020-11-01 20:08:48 +07:00
|
|
|
self.layout.operator(operator.ImportIFC.bl_idname, text="Industry Foundation Classes (.ifc/.ifczip/.ifcxml)")
|
2020-04-07 12:02:44 +10:00
|
|
|
|
|
|
|
|
def on_register(scene):
|
|
|
|
|
prop.setDefaultProperties(scene)
|
2020-09-09 18:49:27 +10:00
|
|
|
bpy.app.handlers.depsgraph_update_post.remove(on_register)
|
2020-04-07 12:02:44 +10:00
|
|
|
|
|
|
|
|
def register():
|
|
|
|
|
for cls in classes:
|
|
|
|
|
bpy.utils.register_class(cls)
|
|
|
|
|
bpy.app.handlers.depsgraph_update_post.append(on_register)
|
|
|
|
|
bpy.app.handlers.load_post.append(prop.setDefaultProperties)
|
|
|
|
|
bpy.types.TOPBAR_MT_file_export.append(menu_func_export)
|
|
|
|
|
bpy.types.TOPBAR_MT_file_import.append(menu_func_import)
|
|
|
|
|
bpy.types.Scene.BIMProperties = bpy.props.PointerProperty(type=prop.BIMProperties)
|
2020-09-05 12:58:53 +10:00
|
|
|
bpy.types.Scene.BIMDebugProperties = bpy.props.PointerProperty(type=prop.BIMDebugProperties)
|
2020-04-07 12:02:44 +10:00
|
|
|
bpy.types.Scene.BCFProperties = bpy.props.PointerProperty(type=prop.BCFProperties)
|
|
|
|
|
bpy.types.Scene.DocProperties = bpy.props.PointerProperty(type=prop.DocProperties)
|
|
|
|
|
bpy.types.Scene.BIMLibrary = bpy.props.PointerProperty(type=prop.BIMLibrary)
|
|
|
|
|
bpy.types.Scene.MapConversion = bpy.props.PointerProperty(type=prop.MapConversion)
|
|
|
|
|
bpy.types.Scene.TargetCRS = bpy.props.PointerProperty(type=prop.TargetCRS)
|
|
|
|
|
bpy.types.Object.BIMObjectProperties = bpy.props.PointerProperty(type=prop.BIMObjectProperties)
|
|
|
|
|
bpy.types.Collection.BIMObjectProperties = bpy.props.PointerProperty(type=prop.BIMObjectProperties)
|
|
|
|
|
bpy.types.Material.BIMMaterialProperties = bpy.props.PointerProperty(type=prop.BIMMaterialProperties)
|
|
|
|
|
bpy.types.Mesh.BIMMeshProperties = bpy.props.PointerProperty(type=prop.BIMMeshProperties)
|
|
|
|
|
bpy.types.Camera.BIMCameraProperties = bpy.props.PointerProperty(type=prop.BIMCameraProperties)
|
2020-05-03 19:54:27 +10:00
|
|
|
bpy.types.TextCurve.BIMTextProperties = bpy.props.PointerProperty(type=prop.BIMTextProperties)
|
2020-05-20 10:42:48 +10:00
|
|
|
bpy.types.Scene.CoveToolProperties = bpy.props.PointerProperty(type=covetool_prop.CoveToolProperties)
|
2020-08-09 13:09:29 +10:00
|
|
|
bpy.types.SCENE_PT_unit.append(ui.ifc_units)
|
2020-08-14 20:43:44 +10:00
|
|
|
bpy.types.VIEW3D_MT_mesh_add.append(model_grid.add_object_button)
|
2020-08-11 17:24:30 +10:00
|
|
|
bpy.types.VIEW3D_MT_mesh_add.append(model_wall.add_object_button)
|
2020-08-11 19:05:26 +10:00
|
|
|
bpy.types.VIEW3D_MT_mesh_add.append(model_stair.add_object_button)
|
2020-08-11 20:54:54 +10:00
|
|
|
bpy.types.VIEW3D_MT_mesh_add.append(model_door.add_object_button)
|
2020-08-12 08:57:58 +10:00
|
|
|
bpy.types.VIEW3D_MT_mesh_add.append(model_window.add_object_button)
|
2020-08-11 21:10:02 +10:00
|
|
|
bpy.types.VIEW3D_MT_mesh_add.append(model_slab.add_object_button)
|
2020-08-21 20:38:57 +10:00
|
|
|
bpy.types.VIEW3D_MT_mesh_add.append(model_opening.add_object_button)
|
2020-08-29 10:28:34 +10:00
|
|
|
bpy.app.handlers.depsgraph_update_pre.append(operator.depsgraph_update_pre_handler)
|
2020-04-07 12:02:44 +10:00
|
|
|
|
|
|
|
|
def unregister():
|
|
|
|
|
for cls in reversed(classes):
|
|
|
|
|
bpy.utils.unregister_class(cls)
|
|
|
|
|
bpy.app.handlers.load_post.remove(prop.setDefaultProperties)
|
|
|
|
|
bpy.types.TOPBAR_MT_file_export.remove(menu_func_export)
|
|
|
|
|
bpy.types.TOPBAR_MT_file_import.remove(menu_func_import)
|
2020-11-01 20:08:48 +07:00
|
|
|
del bpy.types.Scene.BIMProperties
|
|
|
|
|
del bpy.types.Scene.BIMDebugProperties
|
|
|
|
|
del bpy.types.Scene.BCFProperties
|
|
|
|
|
del bpy.types.Scene.DocProperties
|
|
|
|
|
del bpy.types.Scene.MapConversion
|
|
|
|
|
del bpy.types.Scene.TargetCRS
|
|
|
|
|
del bpy.types.Object.BIMObjectProperties
|
|
|
|
|
del bpy.types.Collection.BIMObjectProperties
|
|
|
|
|
del bpy.types.Material.BIMMaterialProperties
|
|
|
|
|
del bpy.types.Mesh.BIMMeshProperties
|
|
|
|
|
del bpy.types.Camera.BIMCameraProperties
|
|
|
|
|
del bpy.types.TextCurve.BIMTextProperties
|
2020-08-09 13:09:29 +10:00
|
|
|
bpy.types.SCENE_PT_unit.remove(ui.ifc_units)
|
2020-08-14 20:43:44 +10:00
|
|
|
bpy.types.VIEW3D_MT_mesh_add.remove(model_grid.add_object_button)
|
2020-08-11 17:24:30 +10:00
|
|
|
bpy.types.VIEW3D_MT_mesh_add.remove(model_wall.add_object_button)
|
2020-08-11 19:05:26 +10:00
|
|
|
bpy.types.VIEW3D_MT_mesh_add.remove(model_stair.add_object_button)
|
2020-08-11 20:54:54 +10:00
|
|
|
bpy.types.VIEW3D_MT_mesh_add.remove(model_door.add_object_button)
|
2020-08-12 08:57:58 +10:00
|
|
|
bpy.types.VIEW3D_MT_mesh_add.remove(model_window.add_object_button)
|
2020-08-11 21:10:02 +10:00
|
|
|
bpy.types.VIEW3D_MT_mesh_add.remove(model_slab.add_object_button)
|
2020-08-21 20:38:57 +10:00
|
|
|
bpy.types.VIEW3D_MT_mesh_add.remove(model_opening.add_object_button)
|
2020-08-29 10:28:34 +10:00
|
|
|
bpy.app.handlers.depsgraph_update_pre.remove(operator.depsgraph_update_pre_handler)
|