Skip to main content
13-Aquamarine
July 5, 2022
Question

How to Move a drawing Note From one view To Another

  • July 5, 2022
  • 2 replies
  • 2336 views

Hi ,

 

In Creo 4.0  M140 , there is command called "Move to view " which is used to move an annotation from one view to another view , I have do this using API & I m using ProToolkit , Please help me out with solution 

 

Regards,

Kunal

2 replies

21-Topaz I
July 5, 2022

Your application needs to perform the equivalent of RMB on a Drawing view > Move to View. This is a typical instance where a dedicated function exists.
When you search the API documentation with *viewmove" you will find 

ProDrawingViewMove

remy_0-1657033270458.png

 

 

and bonus: pt_examples will give you some code.

 

13-Aquamarine
July 7, 2022

This API is used to position view not to move annotation from one view to another 

 

Regards,

Kunal Bidkar

21-Topaz I
July 7, 2022

That's partially right: this function enables to move a Drawing Note to a different view.  This is my understanding of the topic : "How to Move a drawing Note From one view To Another".

 

Can you share a screencapture of the operation that you need to run with toolkit? or share some model (even a dumb one)?

 

By chance do you mean the RMB > Move to plane operation?

 

remy_0-1657193879173.png

 

14-Alexandrite
July 25, 2022

Example for a 2D note:

 

  • ProDtlnoteDataGet()
  • ProDtlnotedataAttachmentGet()
  • ProDtlattachGet --> Third arg is the current parent view
  • ProDtlattachSet() --> Supply args returned by ProDtlattachGet() except for the ProView (use the view to be the new parent of the annotation)
  • ProDtlnotedataAttachmentSet()
  • ProDtlnoteErase()
  • ProDtlnoteModify()
  • ProDtlnoteShow()

Works pretty similar for symbols.

 

Hope that helps.

14-Alexandrite
February 28, 2023

Did this solve your problem?