Javascript Format Painter

  • Javascript Format Painter

    Posted by Paul Kuehnel on March 3, 2025 at 11:25 am

    Curious if anyone has tried (or if it is even possible) to create a javascript function for format painter. I would like to create a format painter button that is specific to a certain text style and always active. I frequently find myself using the format painter tool but inevitably have to create a text box, click format painter (or keyboard shortcut), click the text I want to format, then delete the markup I created just to get the formatting. I know that I could also create a toolset with this text style and do it that way. I’m just wondering if I could “lock” a certain text style to a format painter button using javascript.

    In my quick review of the script reference guide I didn’t see anything, but I am a novice when it comes to javascript.

    Doug McLean replied 6 days, 10 hours ago 3 Members · 6 Replies
  • 6 Replies
  • Doug McLean

    Member
    March 4, 2025 at 8:57 am
    Points: 15,800
    Rank: UC2 Brainery Advanced Blue Belt UC2 Brainery Advanced Blue Belt Rank

    why not just create a specific custom tool set up to the way you want your text box?

    • Paul Kuehnel

      Member
      March 4, 2025 at 12:42 pm
      Points: 269
      Rank: UC2 Brainery Newbie UC2 Brainery Newbie Belt Rank

      Agreed, I currently have this for my standard markups. I should have clarified a bit of the workflow. In a submittal review, there may notes from another engineer that are “preliminary” and meant to be reviewed by a senior engineer, prior to sending back the submittal. These notes are made it one color (for internal review) and then changed to a standard color once they are ready to send out. As the senior engineer reviews the preliminary review, they would make any final edits and change the color (typically using format painter). Certainly could use select the text style in a toolset, was just wondering if I could create a custom format painter button to avoid having to open the toolset side bar and keep the screen maximized. Small non-problem, just curious.

      • Doug McLean

        Member
        March 5, 2025 at 9:07 am
        Points: 15,800
        Rank: UC2 Brainery Advanced Blue Belt UC2 Brainery Advanced Blue Belt Rank

        that can be achieved using Statuses

  • David Cutler

    Member
    March 4, 2025 at 12:02 pm
    Points: 27,815
    Rank: UC2 Brainery Advanced Brown Belt I UC2 Brainery Advanced Brown Belt I

    To help us get the full picture @pkkuehnel what text are you using the format painter to format? Is it another text box, callout, cloud plus markup?

    • Paul Kuehnel

      Member
      March 4, 2025 at 12:43 pm
      Points: 269
      Rank: UC2 Brainery Newbie UC2 Brainery Newbie Belt Rank

      All of the above, text, callout, cloud+ but primarily text and callout.

      • David Cutler

        Member
        March 4, 2025 at 3:36 pm
        Points: 27,815
        Rank: UC2 Brainery Advanced Brown Belt I UC2 Brainery Advanced Brown Belt I

        Reading your response to @Doug McLean and mine I’d suggest creating a “Sample Format” file that you could have open off to the side in a separate window. This PDF could have text boxes pre-formatted that you could select, then select the format painter and then apply back to your review document as needed.

        It’s a 3 click solution, but it would get you there faster and more consistently than creating a new markup each time to format paint from and then delete.

Log in to reply.