The 'Link.Project' system script imports the project but it doesn't open the documents, they must be opened by the user.The script below allows the hotlink to import the project and opens only the imported views.
'-- Script: Link.ProjectOpenViews
'-- SELF is the path to the project file mentioned in the feature's hot link field.
theVal = SELF
'-- Make a list of the views in the project before importing.
for each d in theODL
'-- If the hotlink field for the selected feature has no path,
'-- report a message and exit. Otherwise, convert
'-- the SELF string to a FileName and import the project.
MsgBox.Info("This feature has no project mentioned in the table","Error")
'-- Make a list of all the views in the project after importing.
for each do in theNDL
'-- Compare the new view list to the old view list.
'-- Isolate those that are new, and open them.
for each v in theNVL
for each uv in theUVL
The values in the hotlink field must be the path to the apr file. For example: c:\temp\proj1.apr.
Get help from ArcGIS experts
Download the Esri Support App