RobotStudio event

Get ToPoint matrix

apox
apox ✭✭
edited November 2016 in Developer Tools
How do i obtain the global transformation matrix of a move instrucion that uses RelTool?
I have a service method that returns a RsRobTarget which works fine for non RelTool instructions:
public static RsRobTarget GetRobTarget(RsTask task, string targetName, RsPathProcedure pathProcedure)
{
	return task.FindDataDeclarationFromModuleScope(targetName, pathProcedure.ModuleName) as RsRobTarget;
}
For move instructions that use RelTool this method returns null.

Any help would be appreciated.