Export the "Component Reference"

Taking your library elements out of the library to create a new, separate configuration and populating the properties for each element might be the cleanest way indeed. But I find it cumbersome to add multiple configurations (ultimately identical except for the properties)...

I share your opinion but if I had a major project to do with Solid, I think it's the most reliable solution while avoiding duplicate tags because a tag= a file in the same folder. And for the moment, I've dug a lot into the subject but I haven't found anything better.

Try with:

swCustPropMgr.Add3 "Tag PID", swCustomInfoText, "$PRP:""SW-Configuration Name""" & "_" & CStr(i + 1), 1

Indeed, it does create an increment.
On the other hand, I still have the problem with the export: the " Tag PID " property is present, but identical for each configuration...
By the way, it doesn't come from this property specifically, because all the properties that are exported from Solidworks are identical.
In Solidworks 2025, when exporting to IFC, the " direct properties " " Name " was a concatenation of the part name and _nom the configuration, which might have been usable. On the other hand, SW2026 no longer includes the _nom of the configuration...

To retrieve the name of the active configuration:

??? Working with the Online version of Solidworks 2026 (3Dexperience)?

Do a test with the XML file (to be modified):

Exporting Custom Properties to IFC Files

When you export SOLIDWORKS models as IFC files, you can map SOLIDWORKS custom properties to IFC property sets.

Benefits: BIM customers can export their custom property data, which is important for the construction and operation of the building. This feature is flexible. It allows you to map SOLIDWORKS properties to IFC properties, possibly with a different name, and define your own target property sets in the IFC file.

Dans le fichier SOLIDWORKS, cliquez sur Fichier > Propriétés et, dans l'onglet Personnalisé, ajoutez les propriétés que vous souhaitez exporter dans le fichier IFC. Enregistrez le fichier.
Créez un fichier de mappage XML qui mappe les propriétés personnalisées de SOLIDWORKS aux valeurs d'ensemble de propriétés IFC. SOLIDWORKS Design propose des exemples de fichiers de mappage à SOLIDWORKS install folder\lang\language\IFC.
Exemple de fichier de mappage :

<CustomPropertiesPSETMapping xmlns="http://www.solidworks.com/ifcpropertysets">
    <Schema Version="1" />
    <PropertySet Name="SOLIDWORKS Common Properties">
        <PropertyMapping SOLIDWORKS="SWProp01" IFC="SWProp01" Type="IfcLabel" />
    </PropertySet>
    <PropertySet Name="Weather Proofing">
        <AppliesTo ElementType="IFCROOF" />
        <PropertyMapping SOLIDWORKS="Cladding" IFC="Roof Covering Material" Type="IfcLabel" />
    </PropertySet>
    <PropertySet Name="Structural Cladding">
        <AppliesTo ElementType="IFCBEAM" />
        <AppliesTo ElementType="IFCCOLUMN" />
        <PropertyMapping SOLIDWORKS="Cladding" IFC="Structural Cladding Material" Type="IfcLabel" />
    </PropertySet>
</CustomPropertiesPSETMapping>
1 Like

Solidworks Premium 2026. Not on the online version, nor on 3Dexperience.

I use XML mapping, but it's only for classifying properties.