I was having issues using this function while passing a variable as the first input, so I decided to hard code in two of the coordinate systems to try and at least get something. However, both still return null! If I launch the measure tool interactively and select either Cube1Z's "Origin" or "Coordinate System1" feature, the names I have specified appear, so both match exactly.
CComPtr
CComPtr
CComPtr
swModel->get_Extension(&swDocExt);
swDocExt->GetCoordinateSystemTransformByName(L"Point1@Origin@Cube1Z-1@TestAssembly", &swXform);
swDocExt->GetCoordinateSystemTransformByName(L"Coordinate System1@Cube1Z-1@TestAssembly", &swXform);
Can anyone help shed some light on what is going on?
SolidworksApi macros