# AdapterForIfc

**AdapterForIfc** extracts graphics and attributes from *Industry Foundation Classes (IFC)* files and saves them in a `.upvc` file. This file is then used as input for the **Builder** to create UPV models.

## Using AdapterForIfc

To start, launch **AdapterForIfc** and select one or more **Input Files**.

The following input types are supported:

- `.ifc` - Industry Foundation Classes (supports **IFC2X3** and **IFC4**)

<img src="./media/AdapterForIfc_AdapterForIfcUpload.png" width="600" height="">

**Output File** specifies the path for the **.upvc** file, which contains all necessary information, such as graphics and attributes, required to generate UPV models with **UDiTH Builder**.

## Command Line Mode

**AdapterForIfc** can also be started in command line mode. 

To get all parameters directly in a command window, just type:

`C:\Program Files\CAXperts\IFC Adapter>"IFC Adapter.exe" -?`

<img src="./media/AdapterForIfc_CMDAdapterForIfc.png" width="600">

Available parameters are:

-output:C:\\Output\\Example.upvc (Occurence: ExactlyOnce; Help Text: Path
to where the UPVC file will be created. File extension 'upvc' will be added, if not present.)

-input:C:\\Input\\Example.ifc (Occurence: AtLeastOnce; Help Text: Path to a IFC Adapter session file.)

-aspect:Simple physical (Occurence: Arbitrary; Help Text: The aspect to use.)

-config:c:\\config.ini (Occurence: Arbitrary; Help Text: The config file to use.)

-licensekey (Occurence: Arbitrary; Help Text: Activate license key.)

-log (Occurence: Arbitrary; Help Text: Log file path. If not defined, log file is placed in C:\\Users\\CAXperts\\AppData\Local\Temp)  

## Log Files

The software generates log files in the local TEMP directory (e.g., "C:\\Temp\\IFC Adapter\\"). Users can access these files by double-clicking on the status bar of CAXperts **AdapterForIfc**:

<img src=".\media/AdapterForIfc_image11.png" width="600" height="">