I would like to be able to automate in a batch process, linking ies files to revit files.
Here is how you would do it manually:
To specify an IES file for a light source
Obtain the desired IES file.
You can obtain an IES file directly from the manufacturer, or use an IES file provided by Revit. The Revit IES files reside in the following location:
%ALLUSERSPROFILE%\Autodesk\<product name and release>\IES
Specify Photometric Web light distribution.
Open the lighting fixture family in the Family Editor.
In the drawing area, select the light source.
Click Modify | Light Source tabLighting panel (Light Source Definition).
In the Light Source Definition dialog, for Emit from Shape, select the desired shape.
For Light distribution, select (Photometric Web).
Save changes to the lighting fixture family.
Specify the IES file to use.
If you want the IES file to define light distribution for the entire lighting fixture family, keep the lighting fixture family open in the Family Editor. Click Properties panel (Family Types). For Name, select the family type to modify.
If you want the IES file to define light distribution for selected instances of the lighting fixture family, open a project that uses it, and select a lighting fixture in the project. Click Modify | Lighting Fixtures tabProperties panel (Type Properties). Click Duplicate, specify a name for the new family type, and click OK.
In the list of parameters, scroll down to Photometrics.
For Photometric Web File, click in the Value column.
Note: The Browse button displays after you click in the field.
Navigate to the desired IES file, select it, and click Open.
Save changes to the project or the lighting fixture family.