I have a tube with walls made out of honeycomb lines. I have the coordinates of the points in a text file and I'm able to import them in Solidworks(API). I've managed to create 3D sketch lines according to the point cloud and also I have managed to create reference planes at the end of each line. For the next step, I'm trying to create small cylinders around each of those lines. To do that I want to create circles on each reference plane and extrude them as seen in the following picture.
I've written the code in API which is in attachment.
The problem is that the circles that I create are located at the origin and not at each reference plane.
I'd be happy if someone can help me with this problem.