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

Community Tip - You can Bookmark boards, posts or articles that you'd like to access again easily! X

model name too long in ProMdlLoad()

ptc-3191571
1-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?


This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.
2 REPLIES 2

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

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


Top Tags