Created
October 14, 2025 10:34
-
-
Save stephensmitchell/b484cf9b9182abd5d638eec38a75a6c9 to your computer and use it in GitHub Desktop.
Create Reference Planes Axes and Points
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #https://help.alibre.com/articles/#!alibre-help-v28/create-reference-planes-axes-and-points | |
| # demonstrates creating reference geometry | |
| # create a new part and get the xy plane | |
| MyPart = Part('My Part') | |
| XYPlane = MyPart.GetPlane('XY-Plane') | |
| # create planes 100mm above and below the xy plane | |
| TopPlane = MyPart.AddPlane('Top Plane', XYPlane, 100.0) | |
| BottomPlane = MyPart.AddPlane('Bottom Plane', XYPlane, -100.0) | |
| # add reference points to bottom plane | |
| Ref1 = MyPart.AddPoint('Ref 1', 50.0, 50.0, -100.0) | |
| Ref2 = MyPart.AddPoint('Ref 2', 50.0, -50.0, -100.0) | |
| Ref3 = MyPart.AddPoint('Ref 3', -50.0, -50.0, -100.0) | |
| Ref4 = MyPart.AddPoint('Ref 4', -50.0, 50.0, -100.0) | |
| # add reference axes from points on bottom plane to center of top plane | |
| Axis1 = MyPart.AddAxis('Axis 1', [50.0, 50.0, -100.0], [0.0, 0.0, 100.0]) | |
| Axis2 = MyPart.AddAxis('Axis 2', [50.0, -50.0, -100.0], [0.0, 0.0, 100.0]) | |
| Axis3 = MyPart.AddAxis('Axis 3', [-50.0, -50.0, -100.0], [0.0, 0.0, 100.0]) | |
| Axis4 = MyPart.AddAxis('Axis 4', [-50.0, 50.0, -100.0], [0.0, 0.0, 100.0]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment