Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Download FreeCAD (https://www.freecad.org/downloads.php)
Download the example files from this url https://github.com/chenkianwee/ifc2osmod_gendgn_egs/archive/refs/heads/main.zip
Unzip the folder and you will see this folder structure.
ifc2osmod_gendgn_egs
|----- epw
|----- freecad
|----- ifc
|----- json
|----- measure
Open the file in ifc2osmod_gendgn_egs/freecad/small_office.FCStd with FreeCAD. In Ubuntu, right click -> choose FreeCAD to open it
Once you open the file. You can export the model as IFC. Select SmallOffice on the Model Tab. Go to File -> Export. At the Files of type parameter choose Industry Foundation Classes (*.ifc). Export it to the ifc folder ifc2osmod_gendgn_egs/ifc/small_office.ifc
Reopen the IFC file in FreeCAD to check the export. File -> Open and choose the exported IFC file. You should be able to open the file as shown below.
Now that we have successfully exported an IFC file we will use the file in gendgn module to generate variants of this design.
python3 -m venv venv/gendgn
source venv/gendgn/bin/activate
pip install gendgn
cd ifc2osmod_gendgn_egs
pmtrz_wwr_constr -i ifc/small_office.ifc -r json/pmtrz_wwr_constr.json
{
"exe_script": "exe_wwr_constr",
"parameters": {
"wall_thermal_resistance": {"range": [0.5, 3]},
"roof_thermal_resistance": {"range": [3, 6]},
"floor_thermal_resistance": {"range": [3, 6]},
"glazing_uvalue": {"range": [0.5, 3]},
"north_wwr": {"range": [0.1, 0.4]},
"south_wwr": {"range": [0.1, 0.4]},
"east_wwr": {"range": [0.1, 0.4]},
"west_wwr": {"range": [0.1, 0.4]}
}
}
sample_variants -n 5 -j json/pmtrz_wwr_constr.json -r json/sample_variants.json
"parameter_normalized_values": [
[
0.2428181727019519,
0.22216051440303392,
0.3179248195128799,
0.1822885785823198,
0.11343437238467262,
0.4284061572769124,
0.724093446021713,
0.07539211757349876
],
...
...
...
exe_wwr_constr -j json/sample_variants.json -i ifc/small_office.ifc -r ifc/small_office_variants
Note: API not available due to missing dependencies: geometry.add_representation - No module named 'bpy'
Note: API not available due to missing dependencies: grid.create_axis_curve - No module named 'bpy'
batch_eval -v ifc/small_office_variants/ -r res/small_office/ -e epw/miami/USA_FL_Miami.Intl.AP.722020_TMY3.epw -d epw/miami/USA_FL_Miami.Intl.AP.722020_TMY3.ddy -m json/measure_sel.json
cd gendgn/src
python -m gendgn.pmtrz_wwr_constr -i path_to/ifc2osmod_gendgn_egs/ifc/small_office.ifc -r path_to/ifc2osmod_gendgn_egs/json/pmtrz_wwr_constr.json
python -m gendgn.sample_variants -n 5 -j path_to/ifc2osmod_gendgn_egs/json/pmtrz_wwr_constr.json
python -m gendgn.exe_wwr_constr -j path_to/ifc2osmod_gendgn_egs/json/pmtrz_wwr_constr.json -i path_to/ifc2osmod_gendgn_egs/ifc/small_office.ifc -r path_to/ifc2osmod_gendgn_egs/ifc/small_office_variants
python -m gendgn.batch_eval -v path_to/ifc2osmod_gendgn_egs/ifc/small_office_variants -r path_to/ifc2osmod_gendgn_egs/res/batch_small_offices -e path_to/ifc2osmod_gendgn_egs/epw/miami/USA_FL_Miami.Intl.AP.722020_TMY3.epw -d path_to/ifc2osmod_gendgn_egs/epw/miami/USA_FL_Miami.Intl.AP.722020_TMY3.ddy -m path_to/ifc2osmod_gendgn_egs/json/measure_sel.json
FAQs
Python-based command line tool for generative design using IFC file format
We found that gendgn demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.