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

    [Plugin] Coords Text Tag from Datum

    Scheduled Pinned Locked Moved Plugins
    148 Posts 26 Posters 98.6k Views 26 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.
    • TIGT Offline
      TIG Moderator
      last edited by

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

      The balls up in the datum v. tag's values is now fixed πŸ˜’

      The Coords-Tag values correctly show the value relative to the set Datum - irrespective of the method used to input them - i.e. manual-pick/add-by-dialog/imported-CSV...

      Gaieus - the XY/Z units should be either the SKP's current-units or the XY/Z units you choose [or XY Lat/Long?] - please try and report back...

      TIG

      1 Reply Last reply Reply Quote 0
      • GaieusG Offline
        Gaieus
        last edited by

        Yes, this is it, thanks! πŸ‘

        Two more things: when I do not set the units (just leave it on "model units"), it still calculates in inches. I can live with this of course as that's just two clicks and I do not produce hundreds of models like this. So if you have anything better to do, leave it (although users may get confused if this is not working so for the time being, if it is too much to fix, I'd suggest simply deleting that option and force the user to select something).

        The other is just cosmetics; the tags are displayed in the "English" way; 100.00 while our decimal separator is the comma: 100,00 (and the dialog actually displays it that way - I guess automatically). But if it is more than a line in the code to adjust (if possible at all), please, disregard it as I really do not care too much.

        And did I say thanks?
        β˜€

        Gai...

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

          @gaieus said:

          Yes, this is it, thanks! πŸ‘
          Two more things: when I do not set the units (just leave it on "model units"), it still calculates in inches. I can live with this of course as that's just two clicks and I do not produce hundreds of models like this. So if you have anything better to do, leave it (although users may get confused if this is not working so for the time being, if it is too much to fix, I'd suggest simply deleting that option and force the user to select something).
          The other is just cosmetics; the tags are displayed in the "English" way; 100.00 while our decimal separator is the comma: 100,00 (and the dialog actually displays it that way - I guess automatically). But if it is more than a line in the code to adjust (if possible at all), please, disregard it as I really do not care too much.
          And did I say thanks?
          β˜€

          I don't understand the display in inches part - it I select Model-Units the values display in the current model units and accuracy e.g. ~915 [mm].
          I think I will remove the Model-Units option and default to 'm' for everyone. You can then set the units as you wish and they are remembered with the model.
          Ruby automatically does the 1.234 method [when you want 1,234] but I can add a 'Decimal-Separator' option './,' that will sort that.
          A CSV file always exports with '.' as the separator as that is the way Ruby does it: I ca'tn change to ',' as it's a CommaSepeartedVariable file...
          If you have a set of XYZ values in a file with ',' as decimal-point, I suggest that you edit using a Find/Replace and make ','>>>'.' and then say the XYZ separating character of tab/space >>> ','...

          TIG

          1 Reply Last reply Reply Quote 0
          • GaieusG Offline
            Gaieus
            last edited by

            I think there is some issue with the separators here. See what happens if I chose model-units. In the dialog, I get the comma (as expected from the system). But then when I place the tag, both the decimal and the list (?) separators are commas.

            c1.png
            Now when I put a tag at 200 all, in the dialog, I have dot as decimal separator (as opposed to my system) and it's actually at 200x2.54=508 (i.e. it must be using inches). The tag is at 408 cm from the origin (along the axes) so that 100 all origin is counted correctly.

            c2.png
            Now if I set cm as unit, I still get the add dialog with dots but now the tags have dots, too, and the tag is placed correctly to its place.

            c3.png
            You may not experience any issues because your system is English but something may be messed up for us, puny non-English with these separators.

            So maybe there is something more with those separators than just cosmetics?

            Sorry to be a pain in the neck - as I said, it would not be much of a work for me to always set the unit - just showing that something may be working wrongly.

            Gai...

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

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

              You can now choose between '.' and ',' as your decimal-separator [i.e. 1.234 OR 1,234].
              Note: if DecSep==',' then the XYZ_separator=';' rather than ','

              • so it's 'XYZ: 1.234, 5.678, 9.012' OR 'XYZ: 1,234; 5,678; 9,012'...
                The default XY/Z units is now 'm', and you must choose these units - the 'model-units' are no longer accepted as a default...

              TIG

              1 Reply Last reply Reply Quote 0
              • GaieusG Offline
                Gaieus
                last edited by

                Thank you very much, TIG! Works perfectly now. And even has LatLong options (I did not notice before)!
                πŸ‘

                Did you get somehow to learn what caused that inch issue?

                Gai...

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

                  @gaieus said:

                  Thank you very much, TIG! Works perfectly now. And even has Lat/Long options (I did not notice before)!
                  πŸ‘
                  Did you get somehow to learn what caused that inch issue?

                  NO!
                  It was simply easier to remove the option πŸ˜’

                  The XY as 'Lat/Long' takes the existing Geo-referenced Lat/Long AND a Z as customized relative to the origin.
                  Irrespective of the d.p. value entered it will always return the Lat/Long angles to 6 d.p. The N/E and S/W angles are 'suffixed' appropriately. Note that when entering Lat/Long in the 'Add-by-Dialog' option you need to enter -ve values for any S/W values...

                  Hope it proves useful...

                  Please feedback if you'd like anything tweaking...

                  TIG

                  1 Reply Last reply Reply Quote 0
                  • GaieusG Offline
                    Gaieus
                    last edited by

                    Yes, I realized how the LatLong thing works (and since I am in the positive quarter for both values, do not have to hassle with the negative input either).
                    πŸ˜„

                    Gai...

                    1 Reply Last reply Reply Quote 0
                    • D Offline
                      dedmin
                      last edited by

                      Could be made something that puts the material of the clicked face - aka material label?

                      1 Reply Last reply Reply Quote 0
                      • U Offline
                        ubi904
                        last edited by

                        It's a great plugin ,

                        πŸ˜• the only one problem is, that the user have to select manualy all the points and mark them, and only these, manually marked points will be exported, so a complet surface or more surfece's can not be exported to other program, which needs txt file as input (Surfer, Vertical Mapper etc.)

                        1 Reply Last reply Reply Quote 0
                        • GaieusG Offline
                          Gaieus
                          last edited by

                          @ubi904 said:

                          the only one problem is, that the user have to select manualy all the points and mark them, and only these, manually marked points will be exported, so a complet surface or more surfece's can not be exported to other program, which needs txt file as input (Surfer, Vertical Mapper etc.)

                          TIG, we have been communicating with ubi over the Hungarian forum about this.

                          I have been thinking about an easy (at least for me, a lay person, "seemingly" easy) solution/modification;

                          what if tags could be added to the vertices of a whole selection? Say there is a terrain imported / exploded from GE and one turns on hidden geometry to be able to select all - then run the plugin and each vertex would be tagged - then could be exported to a csv file?

                          (Or a simple vertex export - like a reverse Cloud.rb Γ‘ la Didier?)

                          Gai...

                          1 Reply Last reply Reply Quote 0
                          • U Offline
                            ubi904
                            last edited by

                            @ubi904 said:

                            It's a great plugin ,

                            πŸ˜• the only one problem is, that the user have to select manualy all the points and mark them, and only these, manually marked points will be exported, so a complet surface or more surfece's can not be exported to other program, which needs txt file as input (Surfer, Vertical Mapper etc.)

                            As I see, it has some limitations, even I can click on many point's, so I get a lot of points marked, above "X" point it can not be export to CSV, it make's nothing, the csv file will not be generated.

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

                              @gaieus said:

                              ...(Or a simple vertex export - like a reverse Cloud.rb Γ‘ la Didier?)

                              An export_vertices ruby is quite straight forward - I'll make you one...
                              πŸ€“

                              TIG

                              1 Reply Last reply Reply Quote 0
                              • GaieusG Offline
                                Gaieus
                                last edited by

                                πŸ‘

                                Gai...

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

                                  It's here http://forums.sketchucation.com/viewtopic.php?p=298614#p298614
                                  exportvertices2csv.rb .............

                                  TIG

                                  1 Reply Last reply Reply Quote 0
                                  • GeorgeG Offline
                                    George
                                    last edited by

                                    Hello TIG,

                                    I’m working with Coords Text Tag from Datum v1.6 20101120

                                    Gaieus suggested the plugin as a means of creating guide points at specified locations in a geo-located model using Latitude and Longitude as input data via β€˜Add Coord by Dialog’.

                                    The plugin works as expected with length units ... inches, feet, meters and so on.
                                    However, entering LL data via β€˜Add Coord by Dialog’ yields odd results.

                                    These are the settings:

                                    http://lh6.ggpht.com/_pI3lDYnW_xk/TTnrapV6vDI/AAAAAAAAD6U/nSAVx1Q6Ysg/ScreenShot101.jpg

                                    This is the location of the model:

                                    http://lh6.ggpht.com/_pI3lDYnW_xk/TTnrbF4QuOI/AAAAAAAAD6Y/F1R9aRAaUX8/ScreenShot102.jpg

                                    When I click the Add Coords-Tag tool on the Origin, the coord-tag is correct:

                                    http://lh6.ggpht.com/_pI3lDYnW_xk/TTnrbbjHM5I/AAAAAAAAD6c/A9fvdljRD-M/ScreenShot103.jpg

                                    Then I try entering the exact model location in β€˜Add Coord by Dialog’:

                                    http://lh3.ggpht.com/_pI3lDYnW_xk/TTnrcAfxaAI/AAAAAAAAD6g/k3EkdvhYVpg/ScreenShot104.jpg

                                    The result is consistently a coord-tag with Latitude way off to the south, near the Equator:

                                    http://lh4.ggpht.com/_pI3lDYnW_xk/TTnrcvIo1fI/AAAAAAAAD6k/-FtWZ6F9AtM/ScreenShot105.jpg

                                    I tried unloading all plugins and the extensions in the Preferences-Extensions panel so this was the only plugin loaded when SU starts.
                                    The results were the same.

                                    I'm at a loss to figure out what's wrong.
                                    Am I entering the data improperly?

                                    Thanks,

                                    -Geo

                                    "Everyone is entitled to his own opinions, but not to his own facts." ~Patrick Moynihan

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

                                      I just tried exactly what you did and it worked fine for me ???
                                      Try with LL+Z ?
                                      Can you post your exact steps to get to the problem............... πŸ˜•

                                      TIG

                                      1 Reply Last reply Reply Quote 0
                                      • GeorgeG Offline
                                        George
                                        last edited by

                                        Hello TIG,

                                        Here’s what I’m doing, step by step.

                                        1. Open a new SU8 Pro file.

                                        2. Click … Window > Model Info > Geolocation > Set Manual Location

                                        3. 2x click the cursor in the Latitude field and then type 46.0N

                                        4. 2x click the cursor in the Longitude field and then type 90.0W

                                        5. 2x click the cursor in the Location field and then type Northern Wisconsin

                                        6. Click … OK to close the Set Manual Geo-Location dialog box

                                        The Model Info-Geo-location panel then appears like this:

                                        http://lh6.ggpht.com/_pI3lDYnW_xk/TTnrbF4QuOI/AAAAAAAAD6Y/F1R9aRAaUX8/ScreenShot102.jpg

                                        1. Select and delete Susan

                                        2. Click … Window > Model Info > Statistics > Purge Unused

                                        3. Click … Window > Components and place the Simple House component at the *origin.
                                          *Drawing Axes are confirmed to be in default position.

                                        4. Click … File > Save, type in the name, Test Model 1, and then click Save
                                          The Save as Type: field is set to save as the current version, SketchUp Models (*.skp)

                                        5. In the Model Info-Units panel:
                                          Length Units are set to decimal inches at 0.000” precision
                                          Enable Length Snapping is OFF.
                                          Display Units Format is ON.
                                          Enable Angle Snapping is ON at 15Β° and Precision at 0.0Β°

                                        6. Click … Plugins > Coords-Tag > Settings, then Add
                                          The Select tool cursor becomes a white arrow.
                                          Set XY-Units to Latitude_Longitude
                                          Set Z-Units to <None> (I tried all the other settings for Z as well, without success.)
                                          Set Units?: to Yes
                                          All other settings remain untouched.

                                        The Coords-Tag Settings dialog now looks like this:

                                        http://lh4.ggpht.com/_pI3lDYnW_xk/TTotXAqJJsI/AAAAAAAAD7A/3T8afz4yhSg/ScreenShot106.jpg

                                        1. Click … OK to close the Coords-Tag Settings dialog box
                                          The cursor returns to being the Select tool.

                                        2. Click … Plugins > Coords-Tag > Add Coords-Tag by Dialog
                                          Nothing happens.
                                          The dialog does not appear.
                                          The Cursor remains the Select tool.

                                        3. Click … Plugins > Coords-Tag > Add Coords-Tag
                                          The cursor becomes a white arrow tool.
                                          It offers no inferencing dots or tool tips while hovering over the origin or endpoints.
                                          L-Clicking or R-Clicking on geometry or on the ground plane does nothing.

                                        All the tools work perfectly if I return to the Coords-Tag Settings dialog box and set XY-Units to ANY other unit besides Latitude_Longitude.

                                        If I create a few tags with the XY-Units set to Feet or Meters and then return to the Coords-Tag Settings dialog and change XY-Units to Latitude_Longitude, the existing tags convert correctly to L. Lo. coordinates, after which, the tool remains active. I’m then able to inference and a L-click places another LL Tag and another and another.

                                        With the LL tags thus functioning, I then go to Plugins > Coords-Tag > Add Coords-Tag by Dialog and enter the model coordinates, L 46N Lo 90E
                                        Like so:

                                        http://lh3.ggpht.com/_pI3lDYnW_xk/TTnrcAfxaAI/AAAAAAAAD6g/k3EkdvhYVpg/ScreenShot104.jpg

                                        The LL tag appears at L 0.018N Lo 87.000W
                                        No matter what I try, it returns the same value every time.

                                        Sorry this is so long.
                                        Does my opus give you some clue as to what the problem is?

                                        Thanks,

                                        -Geo

                                        "Everyone is entitled to his own opinions, but not to his own facts." ~Patrick Moynihan

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

                                          Thanks for the detailed response!

                                          Can you try the last few steps with the Ruby Console open... Any errors ?

                                          When I repeat the steps I get a good result πŸ˜•

                                          EDIT:
                                          Having thought about it...
                                          You must set the X/Y values as your long/lat values in the main dialog OR you can initially use NOT use long/lat but say meters and place one Tag at the origin... THEN change to Long/Lat and it should work... as the one at the origin changes to your Model's long/lat...
                                          I'll have another think about this 'logic'...

                                          TIG

                                          1 Reply Last reply Reply Quote 0
                                          • GeorgeG Offline
                                            George
                                            last edited by

                                            Hello TIG,

                                            I opened 'Test Model 1' and did the following:

                                            Window > Ruby Console
                                            Plugins > Coords-Tag > Settings, then Add

                                            The Settings, then Add dialog was as I last left it.
                                            Like this:

                                            http://lh4.ggpht.com/_pI3lDYnW_xk/TTotXAqJJsI/AAAAAAAAD7A/3T8afz4yhSg/ScreenShot106.jpg

                                            When I click OK to close the Settings, then Add dialog:

                                            This error appears in the Ruby Console

                                            http://lh4.ggpht.com/_pI3lDYnW_xk/TTsUhreuDSI/AAAAAAAAD7c/_6GQ7-MThSY/ScreenShot107.jpg

                                            If I then click … Plugins > Coords-Tag > Add Coords-Tag:

                                            This error appears in the Ruby Console

                                            http://lh3.ggpht.com/_pI3lDYnW_xk/TTsZjTxmgLI/AAAAAAAAD7k/oRS36W11RYM/ScreenShot108.jpg

                                            I close the model without saving changes and then reopen the model.

                                            Window > Ruby Console
                                            Plugins > Coords-Tag > Add Coords-Tag by Dialog

                                            This error appears in the Ruby Console

                                            http://lh5.ggpht.com/_pI3lDYnW_xk/TTsk-kjTmjI/AAAAAAAAD74/FzhQF98vMfs/ScreenShot109.jpg

                                            I hope this helps.

                                            -Geo

                                            Btw, this all started with a discussion in the SketchUp Help forum.
                                            http://www.google.com/support/forum/p/sketchup/thread?tid=11ef233d3545c5f0&hl=en

                                            The ability to create Cpoints directly from L. Lo. coordinates is a most welcome asset. πŸ‘

                                            Thank you, TIG

                                            "Everyone is entitled to his own opinions, but not to his own facts." ~Patrick Moynihan

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

                                            Advertisement