3D Path

3D Path

karthikpadamati31
Enthusiast Enthusiast
435 Views
3 Replies
Message 1 of 4

3D Path

karthikpadamati31
Enthusiast
Enthusiast

Hello all,

 

I just want to know how can we make a 3d path using two 2D sketches(let say 2 splines)? Can we Create it?

 

 

Thanks in advance

 

0 Likes
436 Views
3 Replies
Replies (3)
Message 2 of 4

JaneFan
Autodesk
Autodesk

Yes, we can create it using PartFeatures.Createpath(). 

Here is the description of this function: 

Function CreatePath(SketchCurve As Object) As Path
Member of Inventor.PartFeatures
Method that creates a path used to define the shape of several part features such as sweep, rectangular pattern, split, etc. All other 2D and 3D curves that are connected to the input curve are obtained and used to create a Path object. The new Path is returned




Jane Fan
Inventor/Fusion QA Engineer
0 Likes
Message 3 of 4

karthikpadamati31
Enthusiast
Enthusiast

Thanks for the response, Can you please send a screencast video of it?


@JaneFan wrote:

Yes, we can create it using PartFeatures.Createpath(). 

Here is the description of this function: 

Function CreatePath(SketchCurve As Object) As Path
Member of Inventor.PartFeatures
Method that creates a path used to define the shape of several part features such as sweep, rectangular pattern, split, etc. All other 2D and 3D curves that are connected to the input curve are obtained and used to create a Path object. The new Path is returned


 

0 Likes
Message 4 of 4

JaneFan
Autodesk
Autodesk

For the model like this: 

1.png

Here is the VBA code which can be used to test it: 

Sub test2()
Dim oDoc As PartDocument
Set oDoc = ThisApplication.ActiveDocument

Dim oLine2d As SketchControlPointSpline
Set oLine2d = oDoc.ComponentDefinition.Sketches(1).SketchControlPointSplines(1)

Dim oLine3d As SketchControlPointSpline3D
Set oLine3d = oDoc.ComponentDefinition.Sketches3D(1).SketchControlPointSplines3D(1)

Dim oPath1 As Path, oPath2 As Path
Set oPath1 = oDoc.ComponentDefinition.Features.CreatePath(oLine2d)
Set oPath2 = oDoc.ComponentDefinition.Features.CreatePath(oLine3d)
End Sub




Jane Fan
Inventor/Fusion QA Engineer
0 Likes