C++
AcDbObjectId sunId() const;
Description
Returns the object Id of an AcDbSun object associated with this viewport. If there is no sun currently associated with this viewport, then it returns kNULL
AcDbObjectId sunId() const;
Returns the object Id of an AcDbSun object associated with this viewport. If there is no sun currently associated with this viewport, then it returns kNULL