Sorry for the late reply;
So I tried what you suggested and am getting an error.
Public member 'CreateDefintion' on type 'MoveFaceFeatures' not found.
The error occurs on the line
SyntaxEditor Code Snippet
oMFDef = oMoveFaces.CreateDefintion(Face_End)
I'm currently on Inventor 2015, so I'm guessing it might be a syntax difference? Here is a summary of my full Ilogic code for this function.
'Creates constraints for picked faces off of the base planes for the file
'\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
Function AngleSetup(SideDConstraint, DConstraint, SideAConstraint, AConstraint, Depth, SurfaceConstraint, Instance, Axis)
'On Error Resume Next
'Declare Document Variables
'\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
Dim Constrain As AssemblyConstraints
Dim Face_Top As Face
Dim Face_Web As Face
Dim Face_End As Face
Dim oAsm As AssemblyDocument
Dim oDoc
Dim oMF
Dim oMFDef
Dim oMoveFaces
oAsm = ThisDoc.Document
oDoc = ThisApplication.ActiveDocument
constrain = oAsm.ComponentDefinition.Constraints
oMyParameter= oAsm.ComponentDefinition.Parameters.UserParameters
oMoveFaces = oDoc.ComponentDefinition.Features.MoveFaceFeatures
'\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
'Pick faces for constraining
'\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
Face_Top = ThisApplication.CommandManager.Pick (SelectionFilterEnum.kAllPlanarEntities, "Select Left Flange")
Face_Web = ThisApplication.CommandManager.Pick (SelectionFilterEnum.kAllPlanarEntities, "Select Right Flange")
Face_End = ThisApplication.CommandManager.Pick (SelectionFilterEnum.kAllPlanarEntities, "Select end of angle")
'\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
'Constrain to XZ Plane
'\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
If AConstraint = "Mate" Then Constrain.AddMateConstraint(Face_Web, SharedVariable("XZPlane"), SideAConstraint*2.54)
If AConstraint = "Flush" Then Constrain.AddFlushConstraint(Face_Web, SharedVariable("XZPlane"), SideAConstraint*2.54)
'\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
'Constrain to YZ Plane
'\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
If DConstraint = "Mate" Then Constrain.AddMateConstraint(Face_End, SharedVariable("YZPlane"), SideDConstraint*2.54)
If DConstraint = "Flush" Then Constrain.AddFlushConstraint(Face_End, SharedVariable("YZPlane"), SideDConstraint*2.54)
'\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
'Constrain to XY Plane (Front View)
'\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
If SurfaceConstraint = "Flush" Then Constrain.AddFlushConstraint(Face_Top, SharedVariable("XYPlane"), -Depth*2.54)
If SurfaceConstraint = "Mate" Then Constrain.AddMateConstraint(Face_Top, SharedVariable("XYPlane"), -Depth*2.54)
'\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
Length = Abs(Parameter("AngleEnd" & Instance) - Parameter("AngleStart" & Instance)) - 120
oMFDef = oMoveFaces.CreateDefintion(Face_End)
oMFDef.SetDirectionAndDistanceMoveType(Length, Axis)
oMF = oMoveFaces.Add(oMFDef)
End Function
'\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\