I would like to "mark" some information on Parts in an Assembly in my active monitor view as shown in picture. The marking data is taken from Parts' attribute.
Currently, I am able to obtain the attributes and get the abs/view location. I am looking into the way to display "Part Number 1", "Part Number 2", and "Part Number 3"
An example:
http://i64.tinypic.com/25tapuf.jpg
This is assumed I only have 3 parts with Child.Name =
"Part Number 1"
"Part Number 2"
"Part Number 3"
After searching, I found that NXOpen.UF.Disp.DisplayTemporaryText
may be able to help me achieve what I would like to have but there is no example
Parameters
view_tag as Tag,
which_views as UFDisp.ViewType,
text as String,
text_coord as Double,
ref_point as UFDisp.extRef,
color UFObj.DispProps,
char_size as Double,
hardware as Int32
Can anyone help me with an example how to use this function
re: DisplayTemporaryText
The following thread comment has some code that uses the DisplayTemporaryText function:
http://nxjournaling.com/comment/1500#comment-1500
see the "DisplayTempPointNote" function.
The following thread on eng-tips has a more concise example:
http://www.eng-tips.com/viewthread.cfm?qid=359347
Thank you very much. I
Thank you very much. I achieved what I would like to do with the second links. I must admit that I saw the 2nd link before but for some reason, I could not "decode" it to my head.
A quick question if you can, how do we delete the temporary text?
re: delete temp text
The temporary text will be removed when the display is refreshed. The user can right click in the view and choose "Refresh" or press the "F5" key.
:) Sorry for my stupidity -
:) Sorry for my stupidity - that why it is called "temporary"