Continue to Site

Welcome to MCAD Central

Join our MCAD Central community forums, the largest resource for MCAD (Mechanical Computer-Aided Design) professionals, including files, forums, jobs, articles, calendar, and more.

Save and retrieve drawing table

weblinker

New member
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);
 

Sponsor

Articles From 3DCAD World

Back
Top