Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to suppress SAP2000 splash screen while working with OAPI

Status
Not open for further replies.

Mohammed Rashid

Computer
Joined
Mar 5, 2020
Messages
2
Location
IN
Hi,
I am working on SAP2000 OAPI (SAP 2000 v22) to create and analyze a model. The moment I call ApplicationStart method, SAP 2000 splash screen appears, even if I pass 'false' for the visible parameter. Is there a way to suppress it? Since I am working with OAPI, I am expecting the window should not appear. Is it possible?

This is how my c# code looks like:

// create a new instance
cHelper etabsHelper = new Helper();
_sap2kObj = etabsHelper.CreateObjectProgID("CSI.SAP2000.API.SapObject");
if (_sap2kObj == null)
{
throw new Exception("Unable to create an SAP2000 object!");
}

// open SAP2000
int ret = _sap2kObj.ApplicationStart(eUnits.lb_ft_F, false);
if (ret != 0)
{
throw new Exception("Unable to open SAP2000!");
}


Thanks for your response.

Regards,
Rashid
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top