appendToggle to be on by deafult ? c++

There is a way to set Toggle as “on” in c++ ?
(by deafult)

[code]//Normals
{
OP_NumericParameter np;

	np.name = "Isnormals";
	np.label = "Normals";

	OP_ParAppendResult res = manager->appendToggle(np);
	assert(res == OP_ParAppendResult::Success);
}[/code]

thanks.

Have you tried setting the default value?

np.defaultValues[0] = 1

hi
tried now - not going well…
Update:
O - now it works … not sure why.
thanks.

[code]
///// starting mesh flags////
//Vertices
{
OP_NumericParameter np;
np.defaultValues[0] = 1;
np.name = “Isvertices”;
np.label = “Vertices”;

	OP_ParAppendResult res = manager->appendToggle(np);

	assert(res == OP_ParAppendResult::Success);
	
}[/code]