Standard WorkAxes in C#

Top  Previous  Next

Here is some code to help you along:

 

    //base work axes

 

    WorkAxis XAxis = oAssyDef.WorkAxes[1];

 

    WorkAxis YAxis = oAssyDef.WorkAxes[2];

 

    WorkAxis ZAxis = oAssyDef.WorkAxes[3];

 

 

But you would be better to define something like this:

 

       // These help to get at workplanes WorkPlanes[]

       public const int ikYZPlaneNum = 1;

       public const int ikXZPlaneNum = 2;

       public const int ikXYPlaneNum = 3;

 

       // These help to get at workaxes WorkAxes[]

       public const int ikXAxisNum = 1;

       public const int ikYAxisNum = 2;

       public const int ikZAxisNum = 3;

Text, images and diagrams © 2021 Owen F. Ransen. All rights reserved. (But copy the source code as much as you want!)