cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X

View name for drawing note.

sachinnet
1-Newbie

View name for drawing note.

Hello,

Is it possible to get view name for drawing note which is attached to one of the view? Please suggest procedure or API to get view name info from note object.

TIA

-Sachin


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.
1 REPLY 1

Sachin,
Read the API Wizard under User's Guide->Drawings->Detail Items. There you
will find all of the APIs that are used to create detail entities (notes).
If I wanted to find the view to which a note was attached I would use the
following procedure:

Collect the drawing notes ProDrawingDtlnotesCollect().
Iterate through each drawing note with a for loop.
Get the note data ProDtlnoteDataGet()
Get the note data attachment ProDtlnotedataAttachmentGet().
Get all of the attachment data ProDtlattachGet(). Determine the
attachment type. Only the PRO_DTLATTACHTYPE_FREE attachment type will
have a reference to a drawing view. If the attachment type is correct
then the 'view' output argument will be valid.
Get the name of the view ProDrawingViewNameGet().

Patrick Williams
Sr. Systems Engineer II
Mechanical Engineering Solutions
Missile Systems
Raytheon Company

+1 520.545.6995 (business)
+1 520.545.6399 (fax)
-

TU/M12/8
6221 S Palo Verde Rd
Tucson, AZ 85706 USA
www.raytheon.com



This message contains information that may be confidential and privileged.
Unless you are the addressee (or authorized to receive mail for the
addressee), you should not use, copy or disclose to anyone this message or
any information contained in this message. If you have received this
message in error, please so advise the sender by reply e-mail and delete
this message. Thank you for your cooperation.



Top Tags