Results 1 to 7 of 7
  1. #1
    Has anybody used ProDtlnoteModify to change a drawing note that contains $sym(). I have a protoolkit routine that works fine if the note does not contain $sym. It also works fine for a note that I have just created using ProDtlnoteCreate even if it contains $sym(). However, Pro/E error terminates if I modify an existing note that the user has selected if it contains $sym(). Any help would be greated appreciated.

  2. #2
    Hello Ronx,


    Can you plz explain in details what the $Sym().Is the note contains the symbol or it is a parametic.Let sate what exactly you are looking to modify is it a normal note or Symbol with varibale text.


    When you want to modify the note text,there is a process to be follwed.Need to get get the notedata,notelines,notetext.Need to perform the ProArray functions and try to modify the text with yours.


    Look into the PTC Sample code it gives enough idea how to get the note text.


    With regards,


    Kishore V
    Kishore babu V | Hyderabad | India

  3. #3
    It is &sym not $sym. It is parametric note. ie &sym(surface) to set the surface type. My update routine is modeled after PTC's sample code. I am creating standard notes from external text files. A standard note is created using input from an external file. The external file contains &sym(surface) along with other text. My code creates the note and uses a "modify" routine to add the external file contents to the note. This works fine. However, using another option the user can select an existing note and add a standard note from an external file. When a user selects an existing note as well as an external file containing &sym(surface)and the same "modify" routine used above is ran, Pro/E error terminates when ProDtlnoteModify is executed. If the external file does not contain &sym(), everything works fine.

  4. #4
    RonX,


    I think your code working fine if it can read text from external file to modify.Where as if user select the note and how does he add a text from external files.If is pure manual action,how do you continue with Toolkit application there after.


    I think for user selection you might be used the ProSlect() then once you get the note hadle, what are you going to process further.Can you explain the flow of the program how do you approach the external file,either automation or user go the external file and select the text.


    Let me know your core requirement so that i can help you out.


    If require you can call 919900562990.


    Kishore V
    Kishore babu V | Hyderabad | India

  5. #5
    Hello RonX,
    I haven't tried &sym(), but I had a similar problem when I tried to write &view_name or &view_scale to a note. ProE terminated in such a case. I had to report it to PTC, they promised to fix this in WF4.
    Maybe you have to open PTC call as well. If it works with other text, there will not be probably a mistake in your routine.

  6. #6
    I have logged a problem with PTC. I am working on a simple version of the code for PTC now. The user selects a note and an external file. The code updates the note with text from the external file.

  7. #7
    Junior Member
    Join Date
    Feb 2015
    Posts
    1
    Can you point me to sample code that would explain how to capture drawing note text so I can dump it to a text file using VB API? I need to read more than 100 drawing notes and would like to automate the process. I can find the note using code from https://www.ptc.com/en/support/artic...source=snippet but can not figure out how to extract the actual text.

    Please advise, thanks in advance.
    Ed R

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •