model name too long in ProMdlLoad()
Sep 09, 2011
03:00 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Sep 09, 2011
03:00 AM
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.
Labels:
- Labels:
-
General
2 REPLIES 2
Sep 09, 2011
03:45 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Sep 09, 2011
03:45 AM
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
Sep 09, 2011
03:51 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Sep 09, 2011
03:51 AM
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
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
