• Login
sketchucation logo sketchucation
  • Login
πŸ€‘ 30% Off | Artisan 2 on sale until April 30th Buy Now

[Plugin] Coords Text Tag from Datum

Scheduled Pinned Locked Moved Plugins
148 Posts 26 Posters 98.6k Views
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.
  • C Offline
    count_olaf
    last edited by 19 Jun 2013, 07:29

    Excellent, thanks TIG.

    1 Reply Last reply Reply Quote 0
    • B Offline
      Blastfurnace
      last edited by 3 Aug 2013, 13:43

      TIG,
      The more I play around with this plugin the more useful I think it will be for me.

      This plugin actually made me realize I needed to upgrade to Premium.

      I currently am playing with the CSV import/Export and I want to make sure I have this right.
      I use tags with descriptions I.E "Pipe CL=" and when I export the saved format is # X Y Z in columns but when I Import the Import format has to be X Y Z # or it doesn't import.

      Am I correct in this? In excel its a simple function of moving the entire column but I always have to keep this in mind. I constantly make changes to the CSV then import then make changes 'in model' then export and load CSV into the Total Station.

      Is there a way to have the format ALWAYS be XYZ#?

      Also how do i have the tag JUST show the # but store the XYZ while in the model? When I have many tags in close proximity the text overlaps to the point where you can't read it without a lot of mousing around.

      Thanks for this great plugin.

      M

      1 Reply Last reply Reply Quote 0
      • K Offline
        Krisidious
        last edited by 3 Aug 2013, 13:49

        I have to put finished grade and finished floor elevations on my drawings... could this deliver only Z height in a text tag?

        By: Kristoff Rand
        Home DesignerUnique House Plans

        1 Reply Last reply Reply Quote 0
        • B Offline
          Blastfurnace
          last edited by 3 Aug 2013, 14:09

          @krisidious said:

          I have to put finished grade and finished floor elevations on my drawings... could this deliver only Z height in a text tag?

          I don't profess to be an instructor of any kind but in the settings you can set XY to "none" and it will just display just Z (or Z with any extra prefix you had specified), OR maybe go look at this...

          http://sketchucation.com/forums/viewtopic.php?p=193238#p193238 [Plugin] Add Height from Datum v1.3

          I stumbled on that in my search. There's a nice video there for ya to watch. It's a plugin that adds a Z tag. (height)

          1 Reply Last reply Reply Quote 0
          • K Offline
            Krisidious
            last edited by 3 Aug 2013, 15:38

            @blastfurnace said:

            @krisidious said:

            I have to put finished grade and finished floor elevations on my drawings... could this deliver only Z height in a text tag?

            I don't profess to be an instructor of any kind but in the settings you can set XY to "none" and it will just display just Z (or Z with any extra prefix you had specified), OR maybe go look at this...

            http://sketchucation.com/forums/viewtopic.php?p=193238#p193238 [Plugin] Add Height from Datum v1.3

            I stumbled on that in my search. There's a nice video there for ya to watch. It's a plugin that adds a Z tag. (height)

            Awesome... Thanks BlastFurnace. 😍

            By: Kristoff Rand
            Home DesignerUnique House Plans

            1 Reply Last reply Reply Quote 0
            • J Offline
              jgb
              last edited by 6 Aug 2013, 19:22

              Tig

              I think this was asked before, but last week it became a real problem for me.

              Is there any way (or could there be a way) to add/edit the tag while initially selecting the coord point in the model? (Rather than after the fact)

              I had a bunch of closely spaced coords in my model that I was selecting in a specific order. Got interrupted and got lost. The order was paramount as my Excel sheet did a calculation based on the order of the points and merged with position (coord point) names in the Excel sheet. I was out one point and boy did I get a weird result.

              I had to redo all the point selections again (42 points).

              IF, I had the ability to name (tag) each point when actually selecting it, then the selection order would not have mattered, as Excel would have sorted them properly.

              And I would need to do this over again a few times as I tweak the design.

              It doesn't have to be a dialog box, just a simple "click"; type a tag (to the VCB); next click.


              jgb

              1 Reply Last reply Reply Quote 0
              • T Offline
                TIG Moderator
                last edited by 7 Aug 2013, 08:27

                πŸ˜•
                'Add Coords-Tag by Dialog'
                This opens a dialog into which you can type the X/Y/Z values for a new
                'Coords-Tag': you can also choose to add a Cpoint at that point Yes/No,
                and an optional 'Prefix', e.g. #001 - this is added on to the Tag as #001= .
                The values of the X/Y/Z should match the current 'Coords-Tag Settings'.
                The tile-bar will shows these as say XY=km,Z=m
                Remember - Latitude/Longitude +ve is North/East and -ve is South/West.

                'Import Coords-Tags from CSV'
                This imports all of the 'Coords-Tags' in the Model from a CSV file in
                to format X,Y,Z or LAT,LONG,Z - the values must be comma separated and
                consist of numerals only with '.' as the decimal separator, one point
                per line.
                A dialog then requests the 'units' used in the CSV file for XY and Z,
                and if you want to add Cpoints [defaults are 'm' and 'Yes'].
                If the CSV file has a 'header' line etc it is ignored.
                If a 4th 'column' contains 'text' it is used as a prefix, e.g.
                the line 1.2,3.4,5.6,#001 becomes the Tag #001=x1.2, 3.4, 5.6

                See below...

                'Export Coords-Tags to CSV'
                This exports all of the 'Coords-Tags' in the Model into a CSV file in
                to format [#]***, X[units],Y[units],Z[units] or LAT,LONG,Z[units]
                The 'units' in the CSV file are those current in the settings/dp etc.
                ***Note that he '#' is any 'prefix like '#001=', or it's not added...
                ###Note how you need to swap columns [moving the '#' entries into the fourth column] if going to be importing a manually changed file...

                So what else is needed πŸ˜•

                TIG

                1 Reply Last reply Reply Quote 0
                • J Offline
                  jgb
                  last edited by 7 Aug 2013, 16:03

                  What else is needed.....

                  I need to label or prefix each selected coord point with a different name, every time I create the tag. In this model things move and change shape as I tweak the design, so an existing tag (most times) cannot be reused after a tweak. Yes, the points coord will adjust, but I need to change the label every time, so the Excel sheet will sort them properly.

                  'Add Coords-Tag by Dialog' only puts a named tag at the input coords, NOT a point selection.
                  I cannot select a point in the model and label it specifically, unless I am missing something.

                  I have no problem (so far) with exporting the CSV file and its format.

                  What I am asking for is this....

                  When I select "add coord tag" I can sequentially add tags by simply clicking on points.

                  I cannot change the tag label except by going back and editing the tag. But I need to know the specific order I selected each point, and for some, this order changes with each tweak.

                  So if I could simply click on a point and then just type to the VCB a label before selecting the next point, problem solved.


                  jgb

                  1 Reply Last reply Reply Quote 0
                  • T Offline
                    TIG Moderator
                    last edited by 7 Aug 2013, 16:53

                    β˜€
                    So you want an option like the 'Add' tool BUT that asks for a prefix/reference.
                    So if the 'Settings' had an option 'Prefix Prompt:' Yes|No then if it were Yes you get asked for the Prefix... inputbox + enter; if '' or cancel then or there's no prefix ?? The VCB is too tricky as any letters can be taken as Shortcuts and skip off to another tool!
                    BUT that way you do have to hit Enter/Esc or click OK between each click...

                    If this is what you want it's doable...
                    Let me know if you want something else πŸ˜•

                    TIG

                    1 Reply Last reply Reply Quote 0
                    • J Offline
                      jgb
                      last edited by 8 Aug 2013, 20:21

                      I did not realize the VCB entry would act that way.

                      So, understanding what you said, here is what I would suggest.......

                      Select from your main menu, "Add Coord-Tag with Prefix" or something like that.

                      Use the same (similar) dialog box on screen as with "Add Coord-Tag by Dialog".

                      I would then click on a point. The XYZ coords would display in the dialog box and wait for a manual prefix entry followed by <enter> (or next click on another point).

                      Tag with manual prefix displays in model.

                      Dialog box stays on screen for next point selection, until tool change or <esc>.

                      As long as I do not have to call up the Dbox each time I tag a point, I can very happily live with that.

                      Two other options, if I may.
                      1 - If a manual prefix is entered, can you dispose of the "XYZ=" prefix? Or at least put the manual prefix in its own column in the CSV file?

                      2 - Option to add a sequential numerical prefix instead of a manual prefix input.
                      You would need a "start seq. at ###" Dbox entry with it. (not important, just an after thought)


                      jgb

                      1 Reply Last reply Reply Quote 0
                      • T Offline
                        TIG Moderator
                        last edited by 9 Aug 2013, 09:34

                        Here's v2.4 http://sketchucation.com/forums/viewtopic.php?p=284829#p284829

                        Available from the SCF PluginStore...

                        Please reread the main Notes...
                        The main changes are:
                        New option to 'Prefix Prompt?' in Settings, then under 'Add' you get a dialog with each added Tag into which you can type or accept an auto-incrementing Prefix [#001, #002 etc], or ESC to skip Prefixing...
                        The imported AND exported CSV files now both use the last [fourth] column as the # Prefix/Reference - X,Y,Z,#...

                        TIG

                        1 Reply Last reply Reply Quote 0
                        • J Offline
                          jgb
                          last edited by 9 Aug 2013, 18:32

                          That was fast 😲

                          I'll check it out over the w/e as I am pressed for time today.

                          Many thanks, in advance...


                          jgb

                          1 Reply Last reply Reply Quote 0
                          • J Offline
                            jgb
                            last edited by 10 Aug 2013, 21:47

                            Perfect, (almost) πŸ˜’

                            When I type a label ie: "first point" <enter> then select the next point,
                            the label in the dialog reads "first poinu".
                            The last letter is incremented with the next alpha letter.
                            Happens all the time, any label.
                            When it reaches "xxxz" it cycles back to "xxya".

                            You need to turn off the incrementing with alpha labels, or make alpha incrementing an option, for those who may find it useful.

                            Otherwise, again..


                            jgb

                            1 Reply Last reply Reply Quote 0
                            • T Offline
                              TIG Moderator
                              last edited by 11 Aug 2013, 09:02

                              I had rather assumed that you would use numeric endings to your point references !
                              The string.next! function in Ruby simply increments the last character[s].
                              So if your initial reference was 'Point 001' you then get 'Point 002', 'Point 003' etc up to 'Point 999'.
                              That's why the built-in starting default is '#001'

                              It could be trapped so it only uses 'next!' if the final character of the prefix is 0-9.
                              Then 'First Point' or similar text stays as that in the next prompt ??

                              It's a simple fix... Watch out for an update...

                              TIG

                              1 Reply Last reply Reply Quote 0
                              • T Offline
                                TIG Moderator
                                last edited by 11 Aug 2013, 12:19

                                Here's v2.5 http://sketchucation.com/forums/viewtopic.php?p=284829#p284829

                                Available from the SCF PluginStore...

                                Please reread the main Notes...
                                The main changes are:
                                #Prefix dialog now has Auto-Increment?: Yes|No option.
                                default is Yes, but if you switch it off with No then the Prefix is unchanged for the next prompt - requiring a manual change.
                                Auto-incrementing Prefixes work with all characters: 099 > 100 > 101 etc AND A > B > C etc...

                                TIG

                                1 Reply Last reply Reply Quote 0
                                • J Offline
                                  jgb
                                  last edited by 12 Aug 2013, 15:07

                                  I iz a-waiting πŸŽ‰ πŸŽ‰

                                  Wow, that was fast. πŸ‘ πŸ‘ πŸ‘ πŸ‘


                                  jgb

                                  1 Reply Last reply Reply Quote 0
                                  • S Offline
                                    shannonnovus
                                    last edited by 28 Aug 2013, 19:20

                                    Hi TIG,

                                    First of all, thanks for all your great plugins! I use this one all the time.

                                    I'm having some problems with it recently though, and I updated to the current release (2.5 20130811), but that didn't help. Here's the situation:

                                    Before recently, I was using the coords to label both XY and Z coords. Most of the time, though, I only actually need the Z coord. I recently figured out that it was possible to label with only Z by changing the units of XY to none. So, in a new model, I labelled all my building roofs with Z only. While having the model open and doing this the first time through, everything works perfectly. Problems arise when I reopen the model. It seems to be a problem with updating of the coords when the model is reopened. I don't know enough about the code to understand what's going on, but I've included a snippet (below) of what the Ruby Console is showing me. It keeps doing this over and over and over. Technically everything else in the model still works, but it grinds it to a halt, and doesn't allow any "undo" because the last items to undo are always a million "Undo Coords Tag Update".

                                    So, again, this has only ever happened to me when I am using only the Z with XY units set to "none", when I close and reopen. But it does happen EVERY time I try this. I have tried in two different models, and tried deleting all the coords tags and redoing them. As usual, all worked fine till I closed and reopened the model.

                                    Thank you for any help in fixing this. I really like the ability to label only the heights. And again, I really appreciate this plugin in the first place. It's extremely useful.


                                    Error: #<TypeError: nil can't be coerced into Float>
                                    C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/#coordstexttagtoolfromdatum.rb:729:in *' C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/#coordstexttagtoolfromdatum.rb:729:in update'
                                    C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/#coordstexttagtoolfromdatum.rb:672:in each' C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/#coordstexttagtoolfromdatum.rb:672:in update'
                                    C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/#coordstexttagtoolfromdatum.rb:1368
                                    C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/#coordstexttagtoolfromdatum.rb:729:in call' C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/#coordstexttagtoolfromdatum.rb:729 Error: #<TypeError: nil can't be coerced into Float> C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/#coordstexttagtoolfromdatum.rb:729:in *'
                                    C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/#coordstexttagtoolfromdatum.rb:729:in update' C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/#coordstexttagtoolfromdatum.rb:672:in each'
                                    C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/#coordstexttagtoolfromdatum.rb:672:in update' C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/#coordstexttagtoolfromdatum.rb:1368 C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/#coordstexttagtoolfromdatum.rb:729:in call'
                                    C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/#coordstexttagtoolfromdatum.rb:729


                                    Sincerely,
                                    Shannon

                                    1 Reply Last reply Reply Quote 0
                                    • T Offline
                                      TIG Moderator
                                      last edited by 28 Aug 2013, 20:12

                                      There is my separate tool to label just Z-height from a datum, so you use the two in tandem...

                                      However, I'll look at your reported issue which has never appeared before... πŸ˜•

                                      TIG

                                      1 Reply Last reply Reply Quote 0
                                      • T Offline
                                        TIG Moderator
                                        last edited by 28 Aug 2013, 21:35

                                        Here's v2.6 http://sketchucation.com/forums/viewtopic.php?p=284829#p284829
                                        It resolves an issue with Z-only setting, where on reopening a SKP its co-ord tags sometimes returned an error.

                                        TIG

                                        1 Reply Last reply Reply Quote 0
                                        • J Offline
                                          jgb
                                          last edited by 29 Aug 2013, 14:35

                                          Tig....

                                          An hour and 23 minutes......

                                          What took so long?? πŸ˜› πŸ˜› πŸ˜› πŸ˜›


                                          jgb

                                          1 Reply Last reply Reply Quote 0
                                          • 1
                                          • 2
                                          • 3
                                          • 4
                                          • 5
                                          • 6
                                          • 7
                                          • 8
                                          • 6 / 8
                                          • First post
                                            Last post
                                          Buy SketchPlus
                                          Buy SUbD
                                          Buy WrapR
                                          Buy eBook
                                          Buy Modelur
                                          Buy Vertex Tools
                                          Buy SketchCuisine
                                          Buy FormFonts

                                          Advertisement