sherby88
Structural
- Apr 2, 2013
- 1
hi guys,
I'm working on a project and I need to get all the point names (because SAP doesen't name points in an order) from the SAP model in matlab so i can use them after that.
My code so far in this section is:
feature('COM_SafeArraySingleDim', 1);
feature('COM_PassSafeArrayByRef', 1);
SapObject = actxserver('Sap2000v15.SapObject');
SapObject.ApplicationStart;
Sap = SapObject.SapModel;
% open and run file
ret = Sap.File.OpenFile('F:\Faculta\_Dizertatie\matlab\DDBD\SAP\exemplu cadru.sdb');
ret = Sap.Analyze.RunAnalysis();
countP= Sap.PointElm.Count;
PCTs= zeros(1,1); (I tried alot here, but haven't found the right one)
[ret,PCTs] = Sap.FrameObj.GetNameList(countP,PCTs);
The count is getting the corect number of points but I don't get the list of point names
And i also have a question, what is the diference between element and object (point, frame...)
I keep getting as a result => rect = 0 ; PCTs = 104
If someone can tell me what am i doing wrong I will be verfy gratefull.
I'm working on a project and I need to get all the point names (because SAP doesen't name points in an order) from the SAP model in matlab so i can use them after that.
My code so far in this section is:
feature('COM_SafeArraySingleDim', 1);
feature('COM_PassSafeArrayByRef', 1);
SapObject = actxserver('Sap2000v15.SapObject');
SapObject.ApplicationStart;
Sap = SapObject.SapModel;
% open and run file
ret = Sap.File.OpenFile('F:\Faculta\_Dizertatie\matlab\DDBD\SAP\exemplu cadru.sdb');
ret = Sap.Analyze.RunAnalysis();
countP= Sap.PointElm.Count;
PCTs= zeros(1,1); (I tried alot here, but haven't found the right one)
[ret,PCTs] = Sap.FrameObj.GetNameList(countP,PCTs);
The count is getting the corect number of points but I don't get the list of point names
And i also have a question, what is the diference between element and object (point, frame...)
I keep getting as a result => rect = 0 ; PCTs = 104
If someone can tell me what am i doing wrong I will be verfy gratefull.