Community
I am a newbie to vba editor,
how can i apply the BSplineCurve.GetBSplineData Method, to get the poles and knots of a spline in my sketch.
thanks
Try below VBA code:
Sub SplineDataTest() ' New a part document, add a planar sketch and draw a spline Dim oDoc As PartDocument Set oDoc = ThisApplication.ActiveDocument Dim oBSpline As SketchSpline Set oBSpline = oDoc.ComponentDefinition.Sketches(1).SketchSplines(1) Dim dPoles() As Double, dKnots() As Double, dWeights() As Double oBSpline.Geometry.GetBSplineData dPoles, dKnots, dWeights End Sub
Can't find what you're looking for? Ask the community or share your knowledge.