
Mon, 12/04/2006 - 16:23
Forums:
Hello,
thanks to some help by you I could successfully create the geometry and
save to a STEP file. How could I set a name to the Product or add other
things like a relase status, modifcation date etc. ? I know how to do this
in STEP, but don't know how to do this using OpenCascade.
Thanks, Carsten
Tue, 12/05/2006 - 00:31
Hi Carsten,
I never ha to do it (yet) but the topic has been dicussed earlier:
http://www.opencascade.org/org/forum/thread_1380/
Cheers, Torsten
Wed, 12/06/2006 - 14:27
Thanks,
I used the following code to set the id to the product
// See http://www.opencascade.org/org/forum/thread_1380/
Interface_Static::SetCVal("write.step.product.name", (Standard_CString) plateId.c_str());
IFSelect_ReturnStatus status = aWriter.Transfer( shape, selection);
But the STEP file contains an additional space and 1 character:
#7 = PRODUCT('GH-JUMBO-STR9100-1P 1','GH-JUMBO-STR9100-1P 1','',(#8));
instead of "GH-JUMBO-STR9100-1P". How to avoid this ?
Thanks, Carsten