spline data created by 2d sketch

spline data created by 2d sketch

johnteng00
Advocate Advocate
314 Views
1 Reply
Message 1 of 2

spline data created by 2d sketch

johnteng00
Advocate
Advocate
hi guys,

I have created a spline data with a sketch, then in the part mode, my program picks up the spline, but it is 2d, can anyone tell me how to get the 3D data for the spline? basically I need the transformation of the sketch so I can transform the 2D spline into 3D spline programmatically. Briefly looking at the sketch doc, I didn't find any functions that can return me the matrix of the sketch.

thanks
eric
0 Likes
315 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable

A spline created in a 2D sketch is a 2D spline and
only has x-y coordinates.  However, in a part the sketch knows about its
position in 3D space and supports some functionality to let you get the position
of a 2D sketch point in 3D model space.  If you look at the methods and
properties supported by the PlanarSketch object you'll see this
functionality.
--
Brian Ekins
Autodesk Inventor API Product
Designer

href="http://blogs.autodesk.com/modthemachine">http://blogs.autodesk.com/modthemachine


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
hi
guys, I have created a spline data with a sketch, then in the part mode, my
program picks up the spline, but it is 2d, can anyone tell me how to get the
3D data for the spline? basically I need the transformation of the sketch so I
can transform the 2D spline into 3D spline programmatically. Briefly looking
at the sketch doc, I didn't find any functions that can return me the matrix
of the sketch. thanks eric
0 Likes