Question
Show axis in view: ProDrawingAxisToDtlaxis?
Hello!
After the creation of a projection view I want to display the axis of the top assembly.
Does anyone know how it's work? I found no examples.
That's what I did, but it doesn't work:
err = ProDrawingProjectedviewCreate(m_Drawing, Views[ParentViewNo],
PRO_B_FALSE, Point, &NewView);
ProSolid DrwMdl;
err = ProDrawingCurrentsolidGet(m_Drawing, &DrwMdl);
ProModelitem Axis;
err = ProModelitemByNameInit(ProSolidToMdl(DrwMdl), PRO_AXIS, L"A_Z", &Axis);
cout << "Fill ID Table..." << endl;
ProIdTable IDTable;
for (int t = 0; t < PRO_MAX_ASSEM_LEVEL; t++)
IDTable[t] = -1;
ProAsmcomppath AsmPath;
err = ProAsmcomppathInit(DrwMdl, IDTable, 0, &AsmPath);
ProSelection Sel3D;
err = ProSelectionAlloc(&AsmPath, &Axis, &Sel3D);
err = ProSelectionViewSet(NewView, &Sel3D);
err = ProPntTrfEval(Point, DrwMatrix, Point);
ProVector Vec = {97.71043, 265.51527, 0.0}; // ???err = ProVectorTrfEval(Vec, DrwMatrix, Vec);
ProSelection Sel2D;
err = ProDrawingAxisToDtlaxis(m_Drawing, Sel3D, Vec, &Sel2D);
Thanks! Lars
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.

