What's new

AddPlane() is very confusing

oldfox

Alibre Super User
I want to let AlibreScript add a plane for me. I looked through the help/reference and it wasn't very friendly.
What I got out of it was...

AddPlane(Name, Source Plane, Offset)

Well, nothing I've tried works yet. It all has to do with Python syntax I think.
Any and all help would be appreciated.

Thanks
 

Attachments

  • TestPlane.AD_PRT
    221.5 KB · Views: 3

ajayre

Alibre Super User
I want to let AlibreScript add a plane for me. I looked through the help/reference and it wasn't very friendly.
What I got out of it was...

AddPlane(Name, Source Plane, Offset)

Well, nothing I've tried works yet. It all has to do with Python syntax I think.
Any and all help would be appreciated.

Thanks

Would be helpful if you posted the piece of code and the error messages you are getting directly into the forum.

Inside AlibreScript if you click on the Examples ribbon button then go to the "Reference Geometry" example you will see this: https://support.alibre.com/support/solutions/articles/27000049712-reference-geometry, for example:

Code:
# 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)

Andy
 

oldfox

Alibre Super User
Would be helpful if you posted the piece of code and the error messages you are getting directly into the forum.
Sorry, just not used to that code option. I'll do better next time.

I couldn't open the ZIP file that Lew sent.
I'll check out the reference geometry article. I'm sure I can make it work. If not, I'll be back.

Thanks
 
Top