Hi @adimariaBXE2A ,
The workset solution was a 'reach' didn't think it would work because it's view related and that doesn't work well with links.
For the IfcExportAs method, you will need to edit the elements in the links and give all elements that shouldn't be exported the value "DONTEXPORT" for IfcExportAs. (so alle linked models need to be opened and edited, once, and updated with future alterations)
Make a project text parameter IfcExportAs (if one already exists it's another story)
And attach it minimally to the categories that needed to be excluded from the IfcExport.
I don't know the workflow of model you're working on, but the parameter could best be set to Instance and not aligned to Groups (this way they are freely editable) In my own projects the parameter is Type bound so we can set the correct IfcClasses, for instance "IfcBeam" etc..where needed)
Next create a schedule multicategory and add fields: Workset and IfcExportAs parameter to it and set grouping to both fields and uncheck "itemize every instance"
With this you can quickly fill in the IfcExportAs value for the correct Workset.
Ps. I don't know if workset and all categories are possible in Schedules in Revit 2021, it is in R2022 (been several years age)
Otherwise create a view and only show X-workset and select all and fill in the IfcExportAs Parameter with DONTEXPORT, can be a pain if groups or nested elements!
See screenshot below.

Now depending on model etc, it may be easier to attach the parameter to type and not instance
Further you could also create a global parameter and attach it to the IfcExportAs parameter value (this way you don't need to fill in the value) + you can reset it if all need to be exported.
Do take care that in editing etc, only the correct elements get the "DONTEXPORT" value else you could be missing elements.
With this you do need to edit the linked models, but once done and kept up during edits the export form the host should be possible
I hope this make sense. It's quite difficult to describe all the different ways this could be done depending on the model and workflows.
Ps. Also take note that from Revit 2023 you need to use the builtin parameters for this and no longer the IfcExportAs parameter.
- Michel
below also the project parameter setup.
A = Type of instance / B=if instance, aligned by groups or not / C = pick desired categories.
