Project To Surface with API in 3D sketch

Project To Surface with API in 3D sketch

CAD_CAM_MAN
Advocate Advocate
1,188 Views
3 Replies
Message 1 of 4

Project To Surface with API in 3D sketch

CAD_CAM_MAN
Advocate
Advocate
I am working on an application for Inventor 2015 using VB.net. I need to project a 3D curve onto a body or more specifically some faces. To create this manually I start a 3D sketch, select to include the curves from a previous 3D sketch that I wish to project, use project curve to surface (next to silhouette curve) and select the appropriate inputs. I can not seem to figure out how to access the "Project to Surface" feature though the API. I am able to do an intersection curve and a silhouette curve using Sketch3D .intersection Curves. Add(Face, Work Plane) , Sketch3D .Silhouette Curves. Add(Face, Work Plane, False) respectively. Of course I need Project to Surface and thus am struggling with that one! Is it possible to access the "Project to Surface" feature in a 3D sketch through the API? Does anybody have a syntax to do this?
0 Likes
Accepted solutions (2)
1,189 Views
3 Replies
Replies (3)
Message 2 of 4

ekinsb
Alumni
Alumni
Accepted solution

Unfortunately, the "Project to Surface" command is not currently supported by the API.  The best way to request enhancements like this is to create a new post in the Inventor IdeaStation.

 

Depending on which options you want to use in the "Project to Surface" command, there might be a workaround you can use now.  If you were going to use the "Project along vector" option, the workaround is that you first create a surface extrusion of the curve so that the surface intersects the surface where you want the projected curve.  Then you can use the the Intersection Curve functionality in the API to create the curve.  This requires the creation of the extra extrude feature, but the resulting curve should be the same. 


Brian Ekins
Inventor and Fusion 360 API Expert
Mod the Machine blog
0 Likes
Message 3 of 4

CAD_CAM_MAN
Advocate
Advocate
Accepted solution
0 Likes
Message 4 of 4

CAD_CAM_MAN
Advocate
Advocate

Adding an extrusion and intersection curve would yield the correct curve however will clutter the model tree as there are many planes I need the curve projected to. This would be less of an issue for me if folders or groups were allowed in the part feature tree. See idea...  http://forums.autodesk.com/t5/inventor-ideastation/allow-folders-in-part-feature-tree/idi-p/5699460.

 

I have figured out a way to add lines perpendicular to the planes and constrain them to the pertinent features in a  single 3D sketch. This is not as "clean" as using a projected curve might be but am moving forward in this direction.

0 Likes