Syntactically this is how I got it to work. spaceLocator -n temp01_r_armFkA01_loc; spaceLocator -n temp01_r_armFkA02_loc; float $locWp1[]=`getAttr ("temp01_r_armFkA01_locShape.worldPosition[0]")`; float $locWp2[]=`getAttr ("temp01_r_armFkA02_locShape.worldPosition[0]")`; distanceDimension -sp $locWp1[0] $locWp1[1] $locWp1[2] -ep $locWp2[0] $locWp2[1] $locWp2[2]; But this was no better than the way I was doing it before, like this: distanceDimension -sp 0 0 0 -ep 0 0 0; rename |distanceDimension1 "tempFkA01_dd"; spaceLocator -n tempFkA01_loc; spaceLocator -n tempFkA02_loc; connectAttr -f tempFkA01_locShape.worldPosition[0] tempFkA01_ddShape.endPoint; connectAttr -f tempFkA02_locShape.worldPosition[0] tempFkA01_ddShape.startPoint; I am still looking for the correct way to add dd nodes with mel. How do you do it? Thank you for your reply, Ron