Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
Inventor 2022
API VB.NET VisualStudio
i try to get a Point from a GetPointAtParam.
It works Fine for Line, Spline but not for SketchArcs!
Code:
Dim oPartDoc As PartDocument = g_inventorApplication.ActiveDocument
Dim oCompDef As PartComponentDefinition = oPartDoc.ComponentDefinition
Dim oTO As TransientObjects = g_inventorApplication.TransientObjects
Dim oTG As TransientGeometry = g_inventorApplication.TransientGeometry
Dim oSketch As PlanarSketch = oCompDef.Sketches.Item(1)
Dim oObjCollPoints As ObjectCollection = oTO.CreateObjectCollection
Dim oArc As SketchArc = oSketch.SketchArcs.Item(1)
Dim oParams As Double() = {0.1}
Dim oDouble As Double() = {}
oArc.Geometry.Evaluator.GetPointAtParam(oParams, oDouble)
Dim oPoint As Point2d = oTG.CreatePoint2d(oDouble(0), oDouble(1))
oObjCollPoints.Add(oPoint)
MsgBox("oObjCollPoints = " & oObjCollPoints.Count)
Wrong Parameter ?
Anybody Know something?
Thanks For Any Suggestion
Solved! Go to Solution.