Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X
I create a gtol with ProToolkit, the steps are as follows,
ProGtoldataAlloc(drawing,>d);
ProGtoldataTypeSet(gtd,type,>ds);
ProGtoldataModelSet(gtd,solid,>ds);
ProGtoldataReferenceSet(gtd,rtype,reference,>ds);
ProGtoldataPlacementSet(gtd,ptype,NULL,NULL,location,NULL,>ds);
ProGtoldataPlaneSet(gtd,&plane);
ProGtoldataGtoldatumrefSet(gtd,NULL,NULL,NULL,>ds);
ProGtoldataDiameterSet(gtd,diameter,>ds);
ProGtoldataValueSet(gtd,b_v,d_v,name,>ds);
ProGtoldataMatCondSet(gtd,matcond,>ds);
ProGtolCreate(gtd,>ol);
ProGtoldataFree(>d);
ProDrawingtreeRefresh(drawing,PRO_VALUE_UNUSED);
the result is NO error, and the gtol is displayed on the drawing,
However, the gtol is not displayed in the drawing tree.
if i set the placement of the gtol (created by the protoolkit) as freenote once more in the drawing,(without any other change)
the gtol is visible in the drawing tree then.
Do i missed some statements, or set something wrong?
Look forward to your helps.