Apologies in advance, I might have some of the terminology wrong here. I'm new to object-oriented programming.
I'm trying to control Siemens Solid Edge ST2 (a CAD/CAM program) from MATLAB via the COM API. when doing this from VB6 or VB.NET, it's pretty easy to identify (say), all the objects of class "objEdge" by doing some sort of for each loop through the objEdges collection object:
Dim objEdges As SolidEdgeGeometry.Edges
objEdges = objCurve3D.GetType().InvokeMember("Edges", _
Reflection.BindingFlags.GetProperty, Nothing, objCurve3D, args)
For Each objEdge In objEdges
objProf.IncludeEdge(objEdge)
Next
I'm trying to do this same thing from MATLAB. I successfully load the Solid Edge COM server using h = actxserver('SolidEdge.Application')
, can do things like open documents, create geometry, etc. through the API, but I am just not sure the MATLAB equivalent of this Visual Basic "object for-each" (for lack of a better name).
It looks like user Julian on the MATLAB Central forums here has the same problem, but they don't have an answer for him. Note that this is not the same question as this, which is looking at for-each loops over standard arrays, not COM objects.
Thanks very much for any help people can provide.