If you have experience with GRIP, and no experience with SNAP, then SNAP will seem more difficult, for a while. But here are some nice things that SNAP and NX/Open give you:
[ul]
[li]Writing code by recording journals[/li]
[li]Creating modern block-based user interfaces (and without using Block Styler, if you want)[/li]
[li]Creating more flexible user interfaces using Windows forms[/li]
[li]Performance — SNAP and NX Open code is orders of magnitude faster than GRIP code[/li]
[li]Better development tools (like Visual Studio) — “the code writes itself ”[/li]
[li]Freedom from size limitations (length of names, arrays, strings, etc.)[/li]
[li]Simpler development — just edit and run (in the Journal Editor) — no need to compile or link[/li]
[li]More flexible code organization — no need to put every subroutine in a separate file[/li]
[li]A huge assortment of tools in the .NET framework[/li]
[li]Creation of newer features, like Datum Planes, Thicken, TrimBody, etc.[/li]
[li]Easy access to Excel and other Office apps[/li]
[li]Better handling of text files (using .NET read/write functions)[/li]
[li]Development of main-stream programming skills that will be useful beyond the world of NX[/li]
[/ul]
Anyway, difficult or not, here is code to do what you want
[tt]' Create a Datum Plane feature with origin at (0,0,1), parallel to the XY plane
Dim p1 As NX.DatumPlane = Snap.Create.DatumPlane({0,0,1}, Orientation.Identity)
' Create a Geom plane normal to the vector {0,0,1} at distance = 1 from origin
Dim p2 As New Snap.Geom.Surface.Plane({0,0,1}, 1)
' Create a Geom plane with equation 0*x + 0*y + 1*z = 1
Dim p3 As New Snap.Geom.Surface.Plane(0,0,1,1)[/tt]
The first one creates a Datum Plane feature. The second and third create temporary Geom.Surface.Plane objects. If you tell us what you're going to do with the plane, then we can help you decide which one you should use.