sketchucation logo sketchucation
    • Login
    1. Home
    2. khallgren
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info
    K
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 11
    • Groups 1

    khallgren

    @khallgren

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

    khallgren Unfollow Follow
    registered-users

    Latest posts made by khallgren

    • RE: Text , X , Y , Z import

      Hi , Oppps I missed that issue 😄
      Diddler Bur: It would be great if your point cloud importer had a "text" option
      Thanks for all your help 😄

      Berst regards "fra regn byen"
      Kristoffer

      posted in Plugins
      K
      khallgren
    • RE: Text , X , Y , Z import

      I think I know what the problem is . Its the dicimales.... Its fine importing a file that says:

      example: text,200.0,200.0,200.0

      But when the file has a desimale value thats larger than 0 i get an error

      example: text,200.5,200.5,200.5

      Best regards
      Kristoffer

      posted in Plugins
      K
      khallgren
    • RE: Text , X , Y , Z import

      Hi , I tried to make my own file for testing and the negative co-ordinates workes fine, so the problem is not the negative co-ordinates. But when I export a file from my calculation program and try it import it I get an error, but the files sceems identical to me?

      Here is the error i get

      and the file is attached below

      Error: #<Errno::ENOENT: C:/Programfiler/Google/Google SketchUp 7/Plugins/cptstxt.rb:14:in `readlines': No such file or directory - C:\Documents and Settings\krh\Skrivebord\BeregnetHøyderfile8.txt>
      C:/Programfiler/Google/Google SketchUp 7/Plugins/cptstxt.rb:14

      Best Regards
      KRistoffer


      BeregnetHøyderfile8.txt

      posted in Plugins
      K
      khallgren
    • RE: Text , X , Y , Z import

      Hi again
      When I try to import a file Negative Co-ordinates I cet an error
      Is this an easy fix ?

      See the example file

      Best Regards
      Kristoffer


      Example_negative.txt

      posted in Plugins
      K
      khallgren
    • RE: Text , X , Y , Z import

      Hi , Thanks for the Text and Leader tip

      If I want to import Y, X ,Z rather than X,Y,Z

      Can I just switch around the
      x=data[1].to_f.mm
      y=data[2].to_f.mm
      z=data[3].to_f.mm
      pt=[x,y,z]

      To
      y=data[1].to_f.mm
      x=data[2].to_f.mm
      z=data[3].to_f.mm
      pt=[y,x,z]

      Best Regards
      Kristoffer

      posted in Plugins
      K
      khallgren
    • RE: Text , X , Y , Z import

      Hi , I managed to fix it
      It was just missing the "#" on the 3 first lines

      The plugin works perfect 😄 Thank you so mutch for your help .

      Best regards'
      Kristoffer

      posted in Plugins
      K
      khallgren
    • RE: Text , X , Y , Z import

      Hi
      I cant get it to work properly , I only get this error message from the ruby console, And I get some errors when starting up SketchUp

      cptstxt
      Error: #<NameError: (eval):894: undefined local variable or method `cptstxt' for main:Object>
      (eval):894

      Your script says " require 'sketchup.rb' "
      Does that mean that I have to copy/paste the file from the "tools" folder and into the "plugin" folder?

      Regards
      Kristoffer

      posted in Plugins
      K
      khallgren
    • RE: Text , X , Y , Z import

      The unit is in millimeters.

      Regards Kristoffer

      posted in Plugins
      K
      khallgren
    • RE: Text , X , Y , Z import

      By the way , The file is a Ascii .DAT file

      Ragards
      KRistoffer

      posted in Plugins
      K
      khallgren
    • RE: Text , X , Y , Z import

      Hi , I have added an example file.
      Im doing a lot of reverse 3d engineering and when I have a lot of points to import it`s prity hard to manage with out the "point id" text.
      Hope the example is helpfull
      Thanks for you help so far

      Best regards Kristoffer


      Example co ordinate file im trying to import

      posted in Plugins
      K
      khallgren