Commit Graph

8806 Commits

Author SHA1 Message Date
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 1a88191173 remove_product to remove object placement too
previously it wasn't deleting object placement when you removed the objects (and related elements like IfcDirections etc) and working on project long enough you might had a bunch of orphaned data in it
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 fa3e3bc9b8 Fixed TestGetApplicableTypes after 0e69f484f 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 25ec0ee36c root.remove_product to remove IfcRelConnectsPorts too
previously if you deleted some flow segment that was connected to another the connection would stay resulting in invalid ifc and other bugs
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 a2b972707e Another minor documentation fix 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
Dion Moult ec4f4bd158 Minor documentation fix 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
Andrej730 bd6e4fbd64 tests for system.get_connected_to / get_connected_from 2024-04-16 10:10:50 +02:00
Andrej730 c5c8a3ba0b error message on setting flow direction for disconnected port
previously it just did nothing which was a bit confusing
2024-04-16 10:10:50 +02:00
Chetan 0ef14bad6f When creating a GLTF file, make the material double sided to fix a bug where some surfaces were transparent. This will allow surfaces created from a mesh to be be viewed from all angles regardless of the shape of the mesh or the directions of the normals. 2024-04-16 10:10:50 +02:00
Dion Moult b044ddfaa2 Flow segments are now created at a specific RL above the active storey in the BIM Tool 2024-04-16 10:10:50 +02:00
ay-ex f94aa6b313 fix_choco_cmake_url (#3528)
fixed problematic url for blender cmake
2024-04-16 10:10:50 +02:00
Andrej730 a3d1c60375 fixed bug in system.get_connected_to / get_connected_from
import was missing
2024-04-16 10:10:50 +02:00
Andrej730 d5e26b5efe Create empty at object placement from debug panel
Small feature for debugging - https://i.imgur.com/OSOCIqG.png
2024-04-16 10:10:50 +02:00
Andrej730 81dc68d11d Fixed #3262 2024-04-16 10:10:50 +02:00
Andrej730 60d62c2dd4 sort keys in the entity to type mapping 2024-04-16 10:10:50 +02:00
Andrej730 871902de12 More general solution for #3466 2024-04-16 10:10:50 +02:00
Dion Moult e49c373011 Fix #3465. Move representation utilities into new tab system. 2024-04-16 10:10:50 +02:00
Dion Moult d330b2f0c6 Fix #3483. You can now conveniently duplicate material layers. 2024-04-16 10:10:50 +02:00
Bruno Postle ed470b6380 Fix some broken restructured text formatting 2024-04-16 10:10:50 +02:00
Dion Moult 418a3feb6c Fix #3453. Hidden annotation type removed, and demo library now comes with linetypes for dashed, fine, thin, medium, thick, and strong. 2024-04-16 10:10:50 +02:00
Wei Yang 8203b2b6d9 Add UV texture support for IfcTessellatedFaceSet (#3523)
* Add texture support for IfcIndexedTextureMap

* fix description.

* Fix posible duplicate coordinate index issue

* Clean up code.

* revert default clean_mesh.

* Fix errors.

* change to EXTEND mode when not RepeatS/T

* remove tris merge to support mix quads and tris.
2024-04-16 10:10:50 +02:00
Massimo Fabbro 44517f3b1d Add new api function that allows to create arbitrary profiles with voids (#3522) 2024-04-16 10:10:50 +02:00
Dion Moult 7d03b0017b Fix #3466. Bug in upstream IFC where distribution elements and furnishing elements had no corresponding type and occurrence. 2024-04-16 10:10:50 +02:00
Dion Moult 84c91518b5 Fix #2906. Basic support added for perspective drawings. 2024-04-16 10:10:50 +02:00
Dion Moult dc18f7a68a Fix #3484. You can now have project-specific pset templates distributed with your project in a relative path. Defaults to pset/. 2024-04-16 10:10:50 +02:00
Dion Moult 43f9d8888f Purge obsolete search operators in favour of new search filters, colour legend system. 2024-04-16 10:10:50 +02:00
Dion Moult 0b306ccee3 Purge select similar prop operator in favour of dedicated select similar panel 2024-04-16 10:10:50 +02:00
Dion Moult 557fe5fd87 Purge obsolete & risky module unloading / loading feature in favour of tabs. 2024-04-16 10:10:50 +02:00
Dion Moult 1e1ab453bf Fix #3501. Annotation tool now creates annotations at the 3D cursor. 2024-04-16 10:10:50 +02:00
Dion Moult 7739779ed6 Fix #3511. You can now use a query to load in occurrences from another project (library). 2024-04-16 10:10:50 +02:00