View Full Version : Export obj file from modeler in c++ plugin

11-07-2013, 09:26 PM
I need help.
In my c++ plugin I want to export obj file to predefined path. Could you please tell me(code) how I can export obj file in my plugin to a predefined path.

11-08-2013, 08:30 AM
Does it have to be c++. Doing this via lscript would be possible.

11-09-2013, 09:46 PM
Thanks for your reply.
Is it possible to trigger this Lscript using C++ code?.
Could you share Lscript to export OBJ file with given filepath.

11-11-2013, 03:06 PM
Could you share Lscript to export OBJ file with given filepath.

The line of lscript that you want is in post#8 of this thread.

11-11-2013, 10:46 PM
I think code you provided is for layout application. I need to do this in Modeler application. Could you please provide script to export obj for modeler application. I tried below code but not working. I am using newer version of LW 11.5.
DynaValue argv;
md.local = local;
md.cmderror = CSERR_NONE;
md.opsel = OPSEL_GLOBAL;

argv.type = DY_STRING;
argv.str.buf = "D:\\arrow.obj";
argv.str.bufLen = 0;

EXECUTE( 1, &argv );