Message 1 of 10
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Public Sub AddWorkPlanebyOriginOffset(strWPName As String, strOffsetPln As String, dblDist As Double)
Dim pntOffset As WorkPoint
If appApp.ActiveDocument.DocumentType = DocumentTypeEnum.kPartDocumentObject Then
Dim ptdocCurrent As Inventor.PartDocument
ptdocCurrent = appApp.ActiveDocument
Dim ptcdCurrent As PartComponentDefinition
ptcdCurrent = ptdocCurrent.ComponentDefinition
If strOffsetPln = "XY Plane" Then
pntOffset = ptcdCurrent.WorkPoints
ElseIf strOffsetPln = "YZ Plane" Then
Else
End If
ptcdCurrent.WorkPlanes.AddByPlaneAndOffset(ptcdCurrent.WorkPlanes("XY Plane"),)
Else
Dim assydocCurrent As Inventor.AssemblyDocument
assydocCurrent = appApp.ActiveDocument
Dim assycdCurrent As AssemblyComponentDefinition
assycdCurrent = assydocCurrent.ComponentDefinition
End If
Dim wpPlane As Inventor.WorkPlane
wpPlane = cdCurrent.
End Sub
This is where I'm at with trying to make a routine to add a workplane offset by some user parameters. When I look at the workplane it needs an object so I set about creating a point at and xyz location. I can't seem to get it to work, can't figure out how to add via xyz.
Solved! Go to Solution.