Community Tip - New to the community? Learn how to post a question and get help from PTC and industry experts! X
Hi all
I am trying to add names to points imported from a STEP file. When I use the ModelItem.SetName(String) method I get an exception when the supplied String is set from a function, that returns a String.
SetName("NEWNAME"); //works ok.
String name ="NEW NAME";
SetName(name); //works OK
String name = method();//Method returns type String.
Setname(name); //throws an InvalidName exception
Any ideas to get around this?
TIA.
Bjarne Frandsen
(Pro/ENGINEER Wildfire 4.0 M170andWindchill 9.1M020 on Windows)