Hello All,
As part of a sub-task of a larger C++ module interacting with Wildfire 2.0,
I am trying to open a drawing file (valid ProDrawing handle obtained) and
then add a format to this drawing document. I have proceeded along the lines
of the code snippet for ProDrawingFormatAdd function I get a
PRO_TK_GENERAL_ERROR when I try to do a ProMdlRetrieve on an existing format
file (.frm) in a default directory (so, searching for this file should not
be problem, I have worked with part files in the same location and they get
retrieved fine). Further, the ProMdl handle returned is null.
The concerned code segment is
ProFamilyName pro_formatName = L"c_tacom_eng_1_0.frm";
ProMdl DwgFormat;
status = ProMdlRetrieve(pro_formatName, (ProMdlType)PRO_DWGFORM,
&DwgFormat);
status = ProDrawingFormatAdd(drawing, 0, 0, DwgFormat, 0);
I haven't figured out what I am missing here. Any help/hint would be
appreciated.
Thanks
Saurabh Maitra
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.