sketchucation logo sketchucation
    • Login
    1. Home
    2. Kromaggs
    Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
    đź«› Lightbeans Update | Metallic and Roughness auto-applied in SketchUp 2025+ Download
    K
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 0
    • Posts 1
    • Groups 1

    Kromaggs

    @Kromaggs

    0
    Reputation
    1
    Profile views
    1
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    Kromaggs Unfollow Follow
    registered-users

    Latest posts made by Kromaggs

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

      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 ?

      posted in Plugins
      K
      Kromaggs