Commit Graph

2866 Commits

Author SHA1 Message Date
Sigma Dimensions (Yass) eaffd4a2a1 simplify setup_default_task_columns 2024-04-16 10:24:54 +02:00
Sigma Dimensions (Yass) 73f81a9bd3 animation settings now use human readable durations to make it less confusing 2024-04-16 10:24:54 +02:00
Sigma Dimensions (Yass) f728004077 simplify updateTaskDuration 2024-04-16 10:24:54 +02:00
Sigma Dimensions (Yass) 8dbdfa2301 WIP - Scheduling UI improvements 2024-04-16 10:24:54 +02:00
Sigma Dimensions (Yass) c864bb88f5 Hide Header for Costing and Schedule Tab 2024-04-16 10:24:54 +02:00
Sigma Dimensions (Yass) 044a2f8960 Revert "Rename and move sub panels of Costing and Schedule Tab"
This reverts commit 9d4715c0a9.
2024-04-16 10:24:54 +02:00
Andrej730 b6ed12589f plug add_transition to fit_flow_segments 2024-04-16 10:24:54 +02:00
Andrej730 ba9fa8a091 Adjusting connected elements on bim.regenerate_distribution_element
Basically commented out automatic adjustment after 45f81b478 - now it's hapenning only when you decide to regenerate it.

It's adjusting connected segments extrusion and location, for all other elements besides segments it's adjusting only location. The idea is it will try to change as less as possible.

Demo - https://imgur.com/oZ1I2Bl
2024-04-16 10:24:54 +02:00
Andrej730 4f8a53f048 quickly connect mep elements if they have matching ports
Demo - https://imgur.com/a/o9u8M1u
2024-04-16 10:24:54 +02:00
Andrej730 75e0d94588 fixed bug getting port relating element in ifc2x3 2024-04-16 10:24:54 +02:00
Andrej730 fe2b22b6cd More descriptive error message on attempt to delete drawings category 2024-04-16 10:24:54 +02:00
Andrej730 c2f515402b small refactor 2024-04-16 10:24:53 +02:00
Andrej730 dbc482dfee More Ports UI
Created more UI for ports.

Now you can see the list of ports from UI and what objects they are connected to, you can quickly select any ports/connected objects or disconnect objects.

From port UI you can see what object's it located on and what object it's connected to and quickly jump across them.

Demo - https://imgur.com/a/Gu4Vz7V
2024-04-16 10:24:53 +02:00
Andrej730 86b63242d8 bim.add_transition
Added simple operator to add transition between two mep segments (now only rectangular collinear segments are supported).
It also reuses the transition type that was previously used to connect segments of the same type.

Demonstration - https://imgur.com/a/c1AOxj1
2024-04-16 10:24:53 +02:00
Andrej730 2c98ab078a Fix default mep profile names
Previously it was generating names like 4000000x4000000 in mm projects.
2024-04-16 10:24:53 +02:00
Dion Moult 3cabe935cd Fix SurfaceColour typo that broke loading colours in some IFCs 2024-04-16 10:22:47 +02:00
Dion Moult c6438933ba Whoops 2024-04-16 10:10:51 +02:00
Dion Moult a6c8a2abd4 Dissolve specifically IOS triangulated edges for meshes instead of generic Blender limited dissolve. 2024-04-16 10:10:51 +02:00
Dion Moult 65b5a6f8f9 Skeleton operator to regenerate distribution elements recursively 2024-04-16 10:10:51 +02:00
rileywong311 9910c53f38 Add brick create relation with split screen 2024-04-16 10:10:51 +02:00
rileywong311 866a6d429b Implement Brick split screen 2024-04-16 10:10:51 +02:00
rileywong311 6dd908c207 Add more subclasses to Brick root options 2024-04-16 10:10:51 +02:00
rileywong311 eea577d463 Move Brick list root setting 2024-04-16 10:10:51 +02:00
rileywong311 d5159be571 Reformat Brick props order and singularize "brick_entity_classes" 2024-04-16 10:10:51 +02:00
rileywong311 abd4fb18fd Refactor AddBrickRelation to combine object namespace+label in operator
This is an important change that should make adding relations through other methods easier to implement
2024-04-16 10:10:51 +02:00
rileywong311 242d2cb4ef Guard loading brick files from bad paths
Referred to "IFCFileSelector.is_existing_ifc_file" method for to make this
2024-04-16 10:10:51 +02:00
rileywong311 5c6ff36813 Add "rdfs:label" to Brick relation options
This is a tricky one because "rdfs:label" cannot really be queried from the Brick ontology, so it is a special case that probably needs to get added manually. Furthermore, an entity really shouldn't have multiple labels, so the option to give an entity an "rdfs:label"
 should only appear if it doesn't have one already. The way I did it meant I had to manually reset the Enum type in Blender because it was the active one selection and made the Enum blank since it got removed  now that the entity has a "rdfs:label." One possible alternative solution is to allow multiple labels, but in the query to import bricks in the UI list only select one label somehow.
2024-04-16 10:10:51 +02:00
rileywong311 a56ec73f3e Change BrickschemaData.relations to BrickschemaData.active_relations 2024-04-16 10:10:51 +02:00
rileywong311 49b5fb35a8 Load Brick relationships from schema 2024-04-16 10:10:51 +02:00
rileywong311 7f049f0067 Remove if Brickstore.graph.triples check
This returns a generator type which I believe is always truthy, so it didn't change anything.
2024-04-16 10:10:51 +02:00
rileywong311 17317c65cb Implement basic Brick create relation 2024-04-16 10:10:51 +02:00
rileywong311 07bd99d461 Add "remove brick relation" operator 2024-04-16 10:10:51 +02:00
rileywong311 b5d9c3f5ff Rename Brick "attributes" to "relations" 2024-04-16 10:10:51 +02:00
Dion Moult ed66572d66 Fix #3538. Update bl_info metadata to reflect that we are a native IFC authoring platform not an import-export add-on. 2024-04-16 10:10:51 +02:00
Andrej730 442918e3a3 option to provide step_id into bim.create_shape_from_step_id directly 2024-04-16 10:10:51 +02:00
Andrej730 1496cc04ff automatically assign ports predefined type 2024-04-16 10:10:51 +02:00
Andrej730 a998cd476d small change for readibility 2024-04-16 10:10:51 +02:00
Andrej730 7cfdf1f1d5 adjust obstruction position on changing segment length
Now when you change the segment's length connected obstructions will adjust. Same for changing obstruction's length. You can also move obstructions/segment around and then use "Regenerate" to make them fit.
Small demo - https://imgur.com/a/atm8Mdx
2024-04-16 10:10:51 +02:00
Andrej730 6f975529f4 add_obstruction to fit_flow_segments, derive it's position from cursor 2024-04-16 10:10:51 +02:00
Andrej730 cd9854707a Fixed #3533 (also fixed the same issue for windows) 2024-04-16 10:10:51 +02:00
Andrej730 f4f04db952 Fixed error on drawing tester UI
Error was:
Traceback (most recent call last):
  File "\3.6\scripts\addons\blenderbim\bim\module\tester\ui.py", line 39, in draw
    row.prop(self.props, "should_load_from_memory")
AttributeError: 'BIM_PT_tester' object has no attribute 'props'
2024-04-16 10:10:51 +02:00
Dion Moult b2db70a2ac Whoops 2024-04-16 10:10:51 +02:00
Dion Moult b6b2c718f6 Skeleton of "add fitting" operator which decides appropriate fitting type 2024-04-16 10:10:51 +02:00
Andrej730 391cecdb21 keep the default flow direction for ports NOTDEFINED as it's not yet set 2024-04-16 10:10:51 +02:00
Andrej730 0df12194d6 operator to add mep obstruction
Currently it's not yet available from UI, only from F3 menu.
On changing segment's length obstruction is not yet adjusted.
Short demonstration - https://imgur.com/a/I5fybpO
2024-04-16 10:10:51 +02:00
Andrej730 72c2ef1dd1 Poll check for show/hide ports
https://i.imgur.com/NFAM1UC.png
2024-04-16 10:10:51 +02:00
Andrej730 8c21c74ff5 Communicate that blend file is also saved on Ctrl-S
https://i.imgur.com/BnzTDhM.png
2024-04-16 10:10:51 +02:00
Andrej730 c2320bb320 small add_constr_type_instance refactor
ifc_class removed as it was never used - ifc_class was always figured either from BIMModelProperties.relating_type_id or operator.relating_type_id
2024-04-16 10:10:50 +02:00
Dion Moult 17de7a1808 Easily create a "default" duct / pipe even if you have no demo library. 2024-04-16 10:10:50 +02:00
Andrej730 9812e5a603 Fixed error opening type manager from window_tool, slab_tool etc
Th error was:

Error: Python: Traceback (most recent call last):
  File "\scripts\addons\blenderbim\bim\module\model\ui.py", line 54, in invoke
    props.type_class = props.ifc_class
TypeError: bpy_struct: item.attr = val: enum "" not found in ('IfcActuatorType', 'IfcAirTerminalBoxType', 'IfcAirTerminalType', 'IfcAirToAirHeatRecoveryType', 'IfcAlarmType', 'IfcAudioVisualApplianceType', 'IfcBeamType', 'IfcBoilerType', 'IfcBuildingElementPartType', 'IfcBuildingElementProxyType', 'IfcBurnerType', 'IfcCableCarrierFittingType', 'IfcCableCarrierSegmentType', 'IfcCableFittingType', 'IfcCableSegmentType', 'IfcChillerType', 'IfcChimneyType', 'IfcCivilElementType', 'IfcCoilType', 'IfcColumnType', 'IfcCommunicationsApplianceType', 'IfcCompressorType', 'IfcCondenserType', 'IfcControllerType', 'IfcCooledBeamType', 'IfcCoolingTowerType', 'IfcCoveringType', 'IfcCurtainWallType', 'IfcDamperType', 'IfcDiscreteAccessoryType', 'IfcDistributionChamberElementType', 'IfcDistributionElementType', 'IfcDoorStyle', 'IfcDoorType', 'IfcDuctFittingType', 'IfcDuctSegmentType', 'IfcDuctSilencerType', 'IfcElectricApplianceType', 'IfcElectricDistributionBoardType', 'IfcElectricFlowStorageDeviceType', 'IfcElectricGeneratorType', 'IfcElectricMotorType', 'IfcElectricTimeControlType', 'IfcElementAssemblyType', 'IfcEngineType', 'IfcEvaporativeCoolerType', 'IfcEvaporatorType', 'IfcFanType', 'IfcFastenerType', 'IfcFilterType', 'IfcFireSuppressionTerminalType', 'IfcFlowInstrumentType', 'IfcFlowMeterType', 'IfcFootingType', 'IfcFurnishingElementType', 'IfcFurnitureType', 'IfcGeographicElementType', 'IfcHeatExchangerType', 'IfcHumidifierType', 'IfcInterceptorType', 'IfcJunctionBoxType', 'IfcLampType', 'IfcLightFixtureType', 'IfcMechanicalFastenerType', 'IfcMedicalDeviceType', 'IfcMemberType', 'IfcMotorConnectionType', 'IfcOutletType', 'IfcPileType', 'IfcPipeFittingType', 'IfcPipeSegmentType', 'IfcPlateType', 'IfcProtectiveDeviceTrippingUnitType', 'IfcProtectiveDeviceType', 'IfcPumpType', 'IfcRailingType', 'IfcRampFlightType', 'IfcRampType', 'IfcReinforcingBarType', 'IfcReinforcingMeshType', 'IfcRoofType', 'IfcSanitaryTerminalType', 'IfcSensorType', 'IfcShadingDeviceType', 'IfcSlabType', 'IfcSolarDeviceType', 'IfcSpaceHeaterType', 'IfcSpaceType', 'IfcSpatialZoneType', 'IfcStackTerminalType', 'IfcStairFlightType', 'IfcStairType', 'IfcSwitchingDeviceType', 'IfcSystemFurnitureElementType', 'IfcTankType', 'IfcTendonAnchorType', 'IfcTendonType', 'IfcTransformerType', 'IfcTransportElementType', 'IfcTubeBundleType', 'IfcUnitaryControlElementType', 'IfcUnitaryEquipmentType', 'IfcValveType', 'IfcVibrationIsolatorType', 'IfcWallType', 'IfcWasteTerminalType', 'IfcWindowStyle', 'IfcWindowType')

WARN (bpy.rna): C:\Users\blender\git\blender-v360\blender.git\source\blender\python\intern\bpy_rna.c:1343 pyrna_enum_to_py: current value '8' matches no enum in 'BIMModelProperties', '', 'ifc_class'
2024-04-16 10:10:50 +02:00