07-13-2009 12:20 PM
I have several .NET dlls that I am using in my current TestStand application. One of them looks at a XML file, parses it and provides information back to the user about the setup information. One of the method calls for this dll is a method to obtain the UTM location of a device
public bool GetUTMData(string layoutID, out utm_coordinate utmData)
{
return m_proxy.GetUTMLocation(out utmData, layoutID);
}
utm_coordinate is a class
Below are two screen captures of my TestStand sequence. The first image I am instantiating the setup client dll. The second image I am calling the GetUTMData method to provide me the UTM location. The UTM data is stored in the utmData object reference. My question is how do I access the individual pieces of data stored in utmData?
07-14-2009 03:44 PM
Matt,
You may have to do some modification to your DLL to get the information you are looking for. If the members of the utm_coordinate class are exposed through the DLL as properties, you can use another .NET Action step and use the object reference you received from this step to access the properties of the class. If they are not exposed, you need to add public properties to the utm_coordinate class to expose those variables. Then you can put down another .NET Action step, enter the stored object reference (recieved from the GetUTMData method) as the Object Reference, set the Class to "utm_coordinate", change the "Do Not Call" dropdown to "Get Property" and select the property from the dropdown next to "Get Property".