Mohammed Rashid
Computer
- Mar 5, 2020
- 2
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
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