Coding Python Nodes for Dynamo for Civil 3D in an External IDE

Trying to recreate this script in an external IDE to test but running into a problem already: Rename XREFs in multiple dwgs - #29 by WrightEngineering

I’ve tried to use dir(Autodesk.AutoCAD.ApplicationServices.Application) and I can see that “.DocumentManager” is an available member but I get a The type initializer for '<Module>' threw an exception. error when I try to use it.

@jacob.small do you think this is because I am missing ironpython in an external IDE? I remember us talking about needing ironpython to get this to work for some reason. Is it possible to open and iterate through documents in an external IDE without ironpython? I seem to have been able to successfully import the .dlls and am very happy to be in a jupyter notebook instead of a python node but it would help if it was functional :sweat_smile: