Revit Linked Model instances rotation

Hi @khuzaimah.ElecEng,
Is it possible to modify this script for DWG links (ImportInstances)?


Any help would be appreciated. Here is a link to the post I made for this topic:
Rotate Import Instance
Thanks.