Skip to main content
13-Aquamarine
Jul 5, 2022 1:05 PM UTC
Question

How to Move a drawing Note From one view To Another

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

7 replies

21-Topaz I
Jul 5, 2022 3:01 PM UTC

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.

 

Translate
13-Aquamarine
Jul 7, 2022 10:08 AM UTC

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

 

Regards,

Kunal Bidkar

Translate
21-Topaz I
Jul 7, 2022 11:38 AM UTC

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

 

Translate
14-Alexandrite
Jul 25, 2022 9:26 AM UTC

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.

Translate
14-Alexandrite
Feb 28, 2023 11:06 AM UTC

Did this solve your problem?

Translate