Why is ISketchManager::Insert3DSketch returning S_FALSE?

HI,

I am unable to insert a 3D Sketch in a C++ add-in. A 2D Sketch is fine but nsert3DSketch keeps returning S_FALSE.

Andrew

SolidworksApi macros
Answers 3
SF
SF 2011-02-03 Best Answer

You may be getting a false error code back, but is it actually inserting or not? It may be a bad return value bug. Can't help you much more without seeing code.

Luke Malpass

AngelSix (SolidWorks Tutorials and Books)

BatchProcess

SF
SF 2011-02-03

Thanks, Luke.

That seemed to be it since the 3D Sketch is created. There were some other problems with my code preventing the 3D Sketch from being visible so I got stuck on debugging the false return code for a while.

Andrew

SF
SF 2012-12-11

could you post your code because I have the same error for the problem