Product Name gets appended with index number

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

 

 

 

Nikhil Ruikar's picture

Anyone? Need help ASAP....