Effacer les filtres
Effacer les filtres

MATLAB OAPI to count the number of defined groups in SAP2000

7 vues (au cours des 30 derniers jours)
Tan Nguyen
Tan Nguyen le 30 Oct 2020
Dear all,
I am trying to count the number of defined groups in SAP2000 using OAPI in Matlab. My current code is:
GroupDef = NET.explicitCast(SapModel.GroupDef,'SAP2000v1.cGroupDef');
n_group = GroupDef.Count();
However, it does NOT work and Matlab responses like below:
"Unable to convert the object of 'SAP2000v1.wGroup' type to object of
'SAP2000v1.cGroupDef' type.
Please make sure that the input object implements an interface type supplied for
conversion."
Could you help me to fix the problem?
Thank you,

Réponses (0)

Catégories

En savoir plus sur Application Deployment dans Help Center et File Exchange

Tags

Produits

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by