Get Structural Column from linked file and create Architectural colum


#1

GOAL is:
REVIT.
from a linked file, select the structural column.
Get their location levels and
create in the current file Architectural column to replace them
The problem is almost solved but I cannot set the top level parameter of the new architectural columns.
Error states that is an ambigous call…

“Warning: Element.SetParameterByName operation failed.
The call is ambiguous between the following methods or properties: ‘Revit.Elements.InternalUtilities.ElementUtils.SetParameterValue(Autodesk.Revit.DB.Parameter, Revit.Elements.Element)’ and ‘Revit.Elements.InternalUtilities.ElementUtils.SetParameterValue(Autodesk.Revit.DB.Parameter, string)’”

CopyColumnsfromlinkedfile.dyn (81.6 KB)

Using some past answers I set up a simple definitions.
Since I cannot upload the revit files. in the current file, levels and grids are already copied an monitor state from the linked.
The linked file contains only structural columns.
Graph is simple.
Select. elements. filter them by level. read location and create new family instance.
Than set those instance parameters and here it is the problem.
I mean, it is weird since in the exact way I can set the “Top Offset” parameter without any error popping up!