I don't really understand where that command comes from. I found the commands enumeration but I don't know what it's for.
Fortunately I think I can still help you. What I would suggest is creating a selection of one or more views, this can be done manually or by code (SelectByID2 for example). You can then add centerlines to that view using 2015 SOLIDWORKS API Help - InsertCenterLine2 Method (IDrawingDoc)
This is the cleaned up version that was first created by the macro recorder. It assumes that you have a drawing open and a view selected. In my case it was a cross-section view. It adds centerlines to the holes that are cut perfectly through the center.
Dim swApp As SldWorks.SldWorks
Dim swDraw As SldWorks.DrawingDoc
Dim boolstatus As Boolean
Dim longstatus As Long, longwarnings As Long
Dim myCenterLine As CenterLine
Set swApp = Application.SldWorks
Set swDraw = swApp.ActiveDoc
'boolstatus = Part.Extension.SelectByID2("", "FACE", 0, 0, 0, False, 0, Nothing, 0)
Set myCenterLine = swDraw.InsertCenterLine2()
ok, macro is working for now, but problem still remains: how to add centerlines to holes only?
When I'm running it with drawing of weldment profiles, centerlines are added to random location of profiles.
How to distinct holes on views without cross-section view (I assume that hidden lines are visible)?
Do I need to select drawing view, then traverse all component(s) features, select ones that are circular, then select its faces and then run insertcenterline2? or maybe there is some more efficient way?