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

    [Plugin] KML Tools (2.0.0-beta) — updated 31.05.2013

    已排程 已置頂 已鎖定 已移動 Plugins
    137 貼文 49 Posters 124.4k 瀏覽 49 Watching
    正在載入更多貼文
    • 從舊到新
    • 從新到舊
    • 最多點贊
    回覆
    • 在新貼文中回覆
    登入後回覆
    此主題已被刪除。只有擁有主題管理權限的使用者可以查看。
    • K 離線
      Kromaggs
      最後由 編輯

      I'm using Bash under Window to dynamically generate a ruby script. This script allow me to import a specific KML file in sketchup and when the import is done I would like to export my model to KMZ file. This is an extract of my ruby script

      
      #----------------------------------------------------------
      	# Impport du modèle KML.
      	model = Sketchup.active_model	
      	status = model.import inKML, false
      	
      	if status
      		#----------------------------------------------------------
      		# Suppression du modèle KML importé.
      		#File.delete( inKML )
      
      		#----------------------------------------------------------
      		# Export du modèle au format KMZ.
      		modelFile=File.basename( inKML, ".kml" )
      		exportPath = exportDir + modelFile + ".kmz"
      		model.export exportPath
      		model.entities.clear!
      
      		#Sketchup.undo
      		#Sketchup.app_safe_shutdown
      	end
      
      

      But the import KML plugin seems to give back the control to my script while importing, so the exported KMZ is not complete because the KML is not completely imported.

      Any idea about this problem ?

      1 條回覆 最後回覆 回覆 引用 0
      • O 離線
        organicmotion
        最後由 編輯

        "File seems not to exist.
        Please check that the file path does not contain Unicode characters. This is a limitation of SketchUp and its Ruby version."
        Am I doing something wrong? Took the KMZ file from gps opened in Google earth saved as KML then tried to import into SU with the KMLtools and I get the error above..
        any ideas anyone? Thanks, I am a beginner with SU 😄

        1 條回覆 最後回覆 回覆 引用 0
        • T 離線
          truga
          最後由 編輯

          It appears that KML Tools are not yet compatible with 2014. I get the message:

          Error Loading File kmlDate.rb
          Error: #<SyntaxError: C:/Users/truga/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/kmlDate.rb:77: formal argument cannot be a global variable
          ...previewTimeLine") {|$kmlDateDlg, param|
          ...

          etc.

          1 條回覆 最後回覆 回覆 引用 0
          • B 離線
            borrel
            最後由 編輯

            @organicmotion said:

            "File seems not to exist.
            Please check that the file path does not contain Unicode characters. This is a limitation of SketchUp and its Ruby version."

            I am getting the same problem (Mac OSX 10.9.2) with v 2013 and 2014 - with Google SketchUp 8.0.15157 - the old version works fine. Sad, because SU is a great tool for visualization AND a converter to make X3D files from GPS-GPX tracks thus: GPS tracker > GPX > KML (gpsbabel or GPS Viz) > SKP > VRML (WRL) > X3D (via aopt). See the models here: http://abdallah.hiof.no/drone/index.html

            1 條回覆 最後回覆 回覆 引用 0
            • G 離線
              Gorin21
              最後由 編輯

              Hi,

              great job with the plugin! I would like to know, if the functionality of adding timestamps can be included in next release? In 2.0 beta there is none, in the previous stable version, there is availability to add a timestamp.

              Thanks for the reply,

              Paul

              1 條回覆 最後回覆 回覆 引用 0
              • B 離線
                BIANI patrick
                最後由 編輯

                Sir, would it be possible to have a detailed using your KML exporter of interesting tutorial.
                I would like to export animations 'Keyframe' to Google earth to animate a plane flight or a vehicle path, but do not have your talent developer, looking for a simple tool that can help me in this regard,
                thank you for your attention.
                Patrick
                patrickbiani13@gmail.com
                http://www.wix.com/patrickbiani13/scan-service

                1 條回覆 最後回覆 回覆 引用 0
                • B 離線
                  BIANI patrick
                  最後由 編輯

                  Sir, I have installed your update (SketchUp 8 Pro), but I can not find anywhere in the menu can add Timespan, thank you for your help

                  1 條回覆 最後回覆 回覆 引用 0
                  • A 離線
                    Antimo98
                    最後由 編輯

                    I use SketchUp 2014.
                    The file (attached) contains an image and a single poligon realized and exported in KML by Google Earth
                    When I run the kml tools for any files .kml everywhere it is in PC (c:, Desktop, other directory) always it says:

                    1. "the model does not contain a Google Earth terrain. Do you want import one first , Yes No"
                      in both cases
                    2. "File seems non to exist. Please check the file path does not contain Unicode characters. This is a limitation of SketchUp and its Ruby version."

                    Where is the problem?

                    Thank you for all contributions.
                    Regards
                    Antimo


                    Good in Google Earth but not in SU.

                    1 條回覆 最後回覆 回覆 引用 0
                    • B 離線
                      balique_bap
                      最後由 編輯

                      @antimo98 said:

                      I use SketchUp 2014.
                      The file (attached) contains an image and a single poligon realized and exported in KML by Google Earth
                      When I run the kml tools for any files .kml everywhere it is in PC (c:, Desktop, other directory) always it says:

                      1. "the model does not contain a Google Earth terrain. Do you want import one first , Yes No"
                        in both cases
                      2. "File seems non to exist. Please check the file path does not contain Unicode characters. This is a limitation of SketchUp and its Ruby version."

                      Where is the problem?

                      Thank you for all contributions.
                      Regards
                      Antimo

                      I have the same issue.

                      Has anybody found a solution ?

                      Thank you very much,

                      Baptiste

                      1 條回覆 最後回覆 回覆 引用 0
                      • B 離線
                        balique_bap
                        最後由 編輯

                        Post to be deleted.

                        1 條回覆 最後回覆 回覆 引用 0
                        • U 離線
                          usablake
                          最後由 編輯

                          Sweet plugin, any plans for an update to use with new versions?

                          1 條回覆 最後回覆 回覆 引用 0
                          • P 離線
                            PatrickBiani
                            最後由 編輯

                            Hello, I'm looking for a tutorial explaining in detail how the "TimeSpan" plugin works, thank you in advance and good luck

                            1 條回覆 最後回覆 回覆 引用 0
                            • J 離線
                              jonathantrepanier
                              最後由 編輯

                              I would love to try this plugin, but I have an error message can you help to find a solution?

                              Erreur de chargement du fichier C:/Users/UTILISATEUR/AppData/Roaming/SketchUp/SketchUp 2022/SketchUp/Plugins/kmlTools/kmlTools_loader.rb
                              Error: #<SyntaxError: C:/Users/UTILISATEUR/AppData/Roaming/SketchUp/SketchUp 2022/SketchUp/Plugins/kmlTools/kmlImport.rb:103: formal argument cannot be an instance variable
                              ...d_action_callback("init"){|@dlg, param|
                              ... ^~~~
                              C:/Users/UTILISATEUR/AppData/Roaming/SketchUp/SketchUp 2022/SketchUp/Plugins/kmlTools/kmlImport.rb:133: formal argument cannot be an instance variable
                              ..._callback("receiveJson") {|@dlg, json|
                              ... ^~~~

                              C:/Program Files/SketchUp/SketchUp 2022/Tools/RubyStdLib/rubygems/core_ext/kernel_require.rb:92:in require' C:/Program Files/SketchUp/SketchUp 2022/Tools/RubyStdLib/rubygems/core_ext/kernel_require.rb:92:in require'
                              C:/Users/UTILISATEUR/AppData/Roaming/SketchUp/SketchUp 2022/SketchUp/Plugins/kmlTools/kmlTools_loader.rb:2:in <top (required)>' C:/Program Files/SketchUp/SketchUp 2022/Tools/extensions.rb:197:in require'
                              C:/Program Files/SketchUp/SketchUp 2022/Tools/extensions.rb:197:in load' C:/Users/UTILISATEUR/AppData/Roaming/SketchUp/SketchUp 2022/SketchUp/Plugins/kmlTools.rb:17:in register_extension'
                              C:/Users/UTILISATEUR/AppData/Roaming/SketchUp/SketchUp 2022/SketchUp/Plugins/kmlTools.rb:17:in `<top (required)>'

                              1 條回覆 最後回覆 回覆 引用 0
                              • TIGT 離線
                                TIG Moderator
                                最後由 編輯

                                ...){|@dlg, json| is where the issue lies...
                                In newer Rubies you cannot use an instance variable [ @...] as a argument in a block.
                                As it's an RB file you could try finding all such occurrences in the reported files.
                                Replace @dlg with dlg
                                You need to do this with all {|...|... blocks BUT not elsewhere in the code as I expect @dlg will be needed...
                                After the |...| you might be able to add @dlg=dlg to minimize the required editing, if @dlg is defined earlier, or used later ??

                                Perhaps the author can do a fix ??

                                TIG

                                1 條回覆 最後回覆 回覆 引用 0
                                • C 離線
                                  cpuwolf
                                  最後由 編輯

                                  kmlTools_1_4_12.rbz + sketchup8 works. Thank you

                                  1 條回覆 最後回覆 回覆 引用 0
                                  • I 離線
                                    ivanunki Newcomers
                                    最後由 編輯

                                    @cpuwolf said:

                                    kmlTools_1_4_12.rbz + sketchup8 works. Thank you

                                    thank u! ill save and open with 2023 version.

                                    1 條回覆 最後回覆 回覆 引用 0
                                    • H 離線
                                      hanowski Newcomers
                                      最後由 編輯

                                      In Google Earth I "Save Place As..." contours.kml. I use your tool Extensions > KML Tools > Import KML File to import it into sketchup, it says "The model does not contain a Google Earth terrain. Do you want to import one first?". I click the "No" button.

                                      Then it says "File seems not to exist. Please check that the file path does not contain Unicode characters. This is a limitation of SketchUp and its Ruby version."

                                      Suggestions?

                                      1 條回覆 最後回覆 回覆 引用 0
                                      • 1
                                      • 2
                                      • 3
                                      • 4
                                      • 5
                                      • 6
                                      • 7
                                      • 7 / 7
                                      • 第一個貼文
                                        最後的貼文
                                      Buy SketchPlus
                                      Buy SUbD
                                      Buy WrapR
                                      Buy eBook
                                      Buy Modelur
                                      Buy Vertex Tools
                                      Buy SketchCuisine
                                      Buy FormFonts

                                      Advertisement