Export corridor feature lines to another drawing

Hi All,

I’m trying to replicate the results in terms of exporting to a new drawing from this post Extract Objects into new drawing however I am getting this error:

Warning: ModuleNotFoundError : No module named ‘Autodesk.AutoCAD.ApplicationServices.Application’; ‘Autodesk.AutoCAD.ApplicationServices’ is not a package [’ File “”, line 38, in \n’]

Do you perhaps know a fix for this?

Script attached
Convert corridor to 2d.dyn (260.7 KB)

Change line 38 in python node
From

import Autodesk.AutoCAD.ApplicationServices.Application as acapp

To

from Autodesk.AutoCAD.ApplicationServices import Application as acapp

There are a lot of unnecessary imports in the code
Update lines 14 - 16 to the following so reference names match their respective dlls

clr.AddReference('AcMgd')
clr.AddReference('AcCoreMgd')
clr.AddReference('AcDbMgd')