Skip to main content
1-Visitor
January 2, 2025
Question

Creo note in 3D flat-to-screen

  • January 2, 2025
  • 2 replies
  • 729 views

I am using Creo Parametric Release 6.0 and Datecode6.0.6.0
问题:如何在3D模型中创建与屏幕平齐并带有引线的注释
使用代码示例:第9行错误

 

Translated by the community team using Microsoft Translator

Problem: How do I create a note in a 3D model that is flush with the screen and has a leader
Example code used: Line 9 error


ProNote note;
status = ProSolidNoteCreate(mdl, NULL, pTextArray, &note);
ProNoteAttach noteAttach = nullptr;
status = ProNoteAttachAlloc(&noteAttach);
status = ProAnnotationplaneFlatToScreenCreate((ProSolid)mdl, PRO_B_FALSE, &plane);
status = ProNoteAttachPlaneSet(noteAttach, &annoPlane);
status = ProNoteAttachFreeSet(noteAttach,note_pos[0], note_pos[1], note_pos[2]);
status = ProNoteAttachAddend(noteAttach, selSurfaces[0], PRO_NOTE_ATT_NONE);
status = ProNotePlacementSet(&note, noteAttach);--------// return PRO_TK_BAD_CONTEXT-----------
status = ProNoteAttachRelease(&noteAttach);
status = ProAnnotationShow((ProAnnotation*)&note, NULL, NULL);
status = ProSolidRegenerate((ProSolid)mdl, PRO_REGEN_NO_FLAGS);

2 replies

Community Manager
January 8, 2025


Hi HX_9879205,

Thank you for your question. I’d like to recommend bringing more details and context to your initial inquiry. It also helps to have screenshots to better understand what you are trying to do in your process. 

This will increase your chances to receive meaningful help from other Community members. 

10-Marble
October 15, 2025

I manually created 3D annotation place flat to screen using Creo's note function;
the annotation is placed flush with the screen in the model viewer and its position rotates around the model.
How can I achieve the same effect generically via the Toolkit API?