Im looking for a solution :-
Background - using dialux to create building drawings, want the ability to take a DWF file and then automatically calculate the area of a room and then (automatically) identify areas that will need lights to be fitted.
I have access to some php wordpress devs - so wanted to know if the above scenario was possible in any ?
To add information to a DWF (Design Web Format) file programmatically, you would typically need an API that provides functionality for working with DWF files. Unfortunately, as of my knowledge cutoff in September 2021, Autodesk has not released a public API specifically for manipulating DWF files.
However, there are alternative approaches you can consider:
1. Autodesk Forge API: Autodesk provides the Forge platform, which offers a range of APIs for working with Autodesk products, including CAD files. While the Forge API does not have direct support for DWF files, it supports other file formats such as DWG (AutoCAD) and Revit files. You can convert DWF files to compatible formats using Autodesk software or third-party libraries and then use the Forge API to manipulate the converted files.
2. Use Autodesk Design Automation API: Autodesk's Design Automation API allows you to automate repetitive tasks in Autodesk software, including AutoCAD. Using this API, you can write custom code to interact with AutoCAD and perform operations on DWF or other supported file formats. This approach requires more advanced programming skills and may involve additional steps, but it can provide more flexibility and control over the process.
3. Explore third-party libraries: There may be third-party libraries available that offer support for working with DWF files. You can search for libraries that provide DWF file parsing and manipulation capabilities. However, it's essential to ensure that the library you choose is reliable, well-documented, and actively maintained.
Keep in mind that the availability and specific capabilities of APIs and libraries may have changed since my knowledge cutoff. I recommend checking with Autodesk's official documentation, developer forums, or other reliable sources for the most up-to-date information on working with DWF files programmatically.
Using DIALux for building drawings and lighting calculations involves a few steps. Here’s a general process to automatically calculate the area of a room from a DWF file and identify areas for lighting:
Import the DWF File: Start a new project in DIALux and import the DWF file. DIALux can calculate all required dimensions without the need to enter them manually.
Room Geometry: Click and drag the corners of the new room to match the desired room on the DWF drawing and edit the room geometry as needed.
Room Information: Fill in the general information for each room, such as maintenance factor value and reflector factors percentage, which are crucial for accurate lighting calculations.
Calculate Areas: DIALux will automatically add a daylight factor effective area for each room once daylight is calculated. This area is a grid of calculation points that helps determine the effective area of the room.
Identify Lighting Areas: After calculating the room areas, you can use the Luminaire Selection tab to choose appropriate lighting fixtures from the DIALux catalog. The software will help you determine the number and placement of lights needed to achieve the desired illuminance levels.
Light Scenes: You can create light scenes for each room or space, which allows you to calculate the lighting for individual areas without the influence of external light sources.
Save and Export: Once you’ve completed the lighting design, you can save your project and export the results as needed.
Can't find what you're looking for? Ask the community or share your knowledge.