
Tue, 02/09/2016 - 13:54
Hi,
I am trying to write a STEP file using 'STEPControl_Writer'.
I am adding product names using the following command (c#)
My code looks like this,
///////////////////////////////////////////////////////////////////////////////////////////////////////////////
foreach (KeyValuePair<string, TopoDS_Shape> shape in this.shapesDict)
{
Interface_Static.SetCVal("write.step.product.name", shape.Key);
writer.Transfer(shape.Value, solidMode);
}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////
The 'this.shapesDict' dictionary contains four keys,
1. BIG CIRCLE
2. SMALL CIRCLE
3. BIG SQUARE
4. SMALL SQUARE.
Once I set the product names, I expect them to be added to the step file.
But, when I open the step file in text editor, I see that the names have been automatically appended with index number. ie.-
1. BIG CIRCLE 1
2. SMALL CIRCLE 2
3. BIG SQUARE 3
4. SMALL SQUARE 4.
Is there any setting I may have missed?
I don't want the body names to get appended with index numbers.
How can I achieve that?
Thanks for your time & help.
-------------------------------------------------------
Nikhil
Fri, 02/19/2016 - 10:43
Anyone? Need help ASAP....