Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MintJulep on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Save and retrieve drawing table

  • Thread starter Thread starter weblinker
  • Start date Start date
W

weblinker

Guest
window.mGlob = pfcCreate("MpfcCOMGlobal");
window.oSession = mGlob.GetProESession();

Hello everybody

I want to store a table drawing as a .tbl file to disk. But I cann't find any hints in the API for that.

The way vice versa retrieving a table from disk I have the following code but it throwes an error XToolkitGeneralError at the last line.

Does anybody have an idea what is wrong with that and how to save a drawing table to disk

Best Regards
Juergne


window.drawing = oSession.CurrentModel;



var NewPoint = pfcCreate("pfcPoint3D");
NewPoint.Set(0,10);
NewPoint.Set(1,10);
NewPoint.Set(2,0);



var TabRetrieveInstrs = pfcCreate("pfcTableRetrieveInstructions").Create("TableToRetrieve", NewPoint);

var NewTable = drawing.RetrieveTable(TabRetrieveInstrs);
 

Part and Inventory Search

Sponsor

Back
Top