I believe that I had unknowingly incorporated the solution you were seeking for into another solution that I had made.
From your words, "only the lines visible (not the shaded object)", "Cycles", and "EEVEE", I am deducing that you want to render line art from the line art modifier without its object for any rendering engine. My solution was to create a general Transparent Material to hide the object for any rendering engine that we may use.
Once you have added a new material to the object, switch to Transparent BSDF
. You can do so in the Properties tab or with the node in the Shader Editor.
![enter image description here](https://cdn.statically.io/img/i.sstatic.net/0aZUo.png)
In the Transparent Material's Settings, switch Blend Mode to anything other than Opaque
and Shadow mode to None
.
![enter image description here](https://cdn.statically.io/img/i.sstatic.net/uabIn.jpg)
Upon rendering, only the line art should be visible (with your select rendering engine).
![enter image description here](https://cdn.statically.io/img/i.sstatic.net/OLEbL.jpg)
Additional Notes:
If you want to render the line art without the background, select Transparent
within Render Properties.
![enter image description here](https://cdn.statically.io/img/i.sstatic.net/tYrm5.png)
If you want the object to not be visible without using Hide, an alternative is to switch the Color's Alpha to 0.000
within Viewport Display of your Transparent Material.
![enter image description here](https://cdn.statically.io/img/i.sstatic.net/gDuPo.png)
Hope this was helpful.