cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

model name too long in ProMdlLoad()

Newbie

model name too long in ProMdlLoad()

I am getting PRO_TK_INVALID_NAME exception while trying to load one of the component.As per PTC help The model name is too long is the reason for this exception.

I need some basic info.
What is the maximum limit for part name size in ProE WF 5.0 M060?
Can we set part name size dymanically?
I am providing part name using full path so does the other string exclusing part also gets consideration while calculating the part name size?

2 REPLIES 2

RE: model name too long in ProMdlLoad()

Hy,


you can find the const - Name Size in the toolkit-browser-Docu,it's 32 chars.


if you use the full path, everything is stored in the ProName - variable.

My solution:
Set the current Directory to the Path, were you want to load the Part, Load the Part with the short name (prt2342.prt) and then set the current Directory back to the old one.

hope it helps.

robert

model name too long in ProMdlLoad()

As per ProE documentation

PRO_PATH_SIZE = 260
which should be the total length of the file name including path and
extension.

Also File Name size (only name+extension without path) is defined as 40,
although I am not sure if this is strictly applied.

Regards,

Vinay