Write to excel through codes without nodes

Is there any methods in RevitAPI to write to excel from revit without nodes ONLY THROUGH CODES ?

Yes, you just have to add a reference to the Excel interop. Here’s an example from the IronPython cookbook. You don’t need to use the Revit API to access Excel, however you will need to have Excel installed in order for it to work.