sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    Dynamic text

    Scheduled Pinned Locked Moved Developers' Forum
    4 Posts 2 Posters 232 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • T Offline
      Tanc
      last edited by

      Hello Everyone,

      I've new to the whole SU API and am finding it difficult to find some seemingly simple direction. What I'm trying to do is dynamically update a text box based on component attributes. Like so:

      https://lh4.googleusercontent.com/-dGEPCHqisXA/UhJvgbl0cRI/AAAAAAAAHzM/vXEjcnDE4ms/s1600/Ex1.PNG

      Then when the user edits the component and push/pulls the surface:

      https://lh5.googleusercontent.com/-1vFKhm8yHeI/UhJvpaJhYlI/AAAAAAAAHzU/jjFawMYTqqQ/s1600/Ex2.PNG

      So far I've got the code to create the initial flat component and the text and leader to it, it's the dynamic updating and getting the new height of the component through an observer that I'm having trouble with. (If that's even the correct way to do it!)

      How would you all go about this?

      1 Reply Last reply Reply Quote 0
      • TIGT Online
        TIG Moderator
        last edited by

        Look at scripts like my Coords tools - these have observers that update such text...

        TIG

        1 Reply Last reply Reply Quote 0
        • T Offline
          Tanc
          last edited by

          Where do I find them?

          1 Reply Last reply Reply Quote 0
          • TIGT Online
            TIG Moderator
            last edited by

            I the massive PluginStore collection... 😒
            Linked through the Resources menu above...

            There will be lots of useful 'cribs'...

            TIG

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post
            Buy SketchPlus
            Buy SUbD
            Buy WrapR
            Buy eBook
            Buy Modelur
            Buy Vertex Tools
            Buy SketchCuisine
            Buy FormFonts

            Advertisement