Convert SketchSpline3D to SketchControlSpline3D API

Convert SketchSpline3D to SketchControlSpline3D API

florian_wenzel
Advocate Advocate
218 Views
1 Reply
Message 1 of 2

Convert SketchSpline3D to SketchControlSpline3D API

florian_wenzel
Advocate
Advocate

Hi, 

Inventor 2022

API VB.NET  VisualStudio

 

I try to Convert SketchSpline3D to SketchControlSpline3D API

Is this possible with API?

 

I was looking for it, but didn't find it.

It is a Way to Convert SketchControlSpline3D to SketchSpline3D.

But is a Way to Pick a SketchEntity3D or SketchSpline3D and Covert it to SketchControlSpline3D with API?

florian_wenzel_0-1663230512503.png

 

This is my Code: Not working

 

      Dim oCtrlDef_01 As ButtonDefinition
        oCtrlDef_01 = g_inventorApplication.CommandManager.ControlDefinitions.Item("ConvertCVSpline3dModeCtxCmd")
        Dim oSelectSet_01 As SelectSet
        oSelectSet_01 = oPartDoc.SelectSet
        oCtrlDef_01.Execute()

 

 

 

Thanks for any Suggestion

0 Likes
219 Views
1 Reply
Reply (1)
Message 2 of 2

florian_wenzel
Advocate
Advocate

Hi,

 

Again question, maybe someone know how to do it?

i was looking for CommandManager.ControlDefinitions.Item

like:

"Sketch3DDeleteConstraintsCtxCmd"           is Working fine, delete all Constraints

"ConvertSpline3dModeCtxCmd"                     is Working fine, Convert CP Spline to Normal Spline

 

But i need something like this:

Convert Spline3D to ControlPointSpline3D

"ConvertCPSpline3dModeCtxCmd"    this is not working

 

Or maybe any one know how to Convert Spline3D into ControlPointSpline3D?

 

Thanks for Any Suggestion

0 Likes