sketchucation logo sketchucation
    • Login
    1. Home
    2. areal3d
    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!
    🛣️ Road Profile Builder | Generate roads, curbs and pavements easily Download
    A
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 4
    • Posts 11
    • Groups 3

    areal3d

    @areal3d

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

    areal3d Unfollow Follow
    Extension Creator Newcomers registered-users

    Latest posts made by areal3d

    • Defining position of input box created via ruby

      hi experts,

      is there any way to controll the position of the ruby inputbox
      on the screen,
      just to put it a bit away from the center of the screen?

      my skills are still not good enough for the html-menues (especially the data transfer from html to ruby),
      so i still have to use the old ones...

      thanx a lot
      and merry x-mas to everybody at sketchucation and in the forum!

      stan

      posted in Developers' Forum
      A
      areal3d
    • RE: Ruby and special characters

      hi tig,
      ok, if it depends on the encoding of the original file imported to skp, i will have to study it.
      thanx and merry x-mas!

      stan

      posted in Developers' Forum
      A
      areal3d
    • RE: Ruby and special characters

      hi tig,
      just a small add to this toppic:

      situation:
      i imported a ifc from a german cad with special chatacters "ä,ö,ü..."
      in the "key" of the ifc-parameter

      we solved the handling for ruby by using ift-8

      so far, so good.

      now i tried to export this file from skp to ifc
      and reimport ( to see, if my attributes are passed correctly).

      can it be , that sketchup exports the code of the special character in some special way?

      in reimport the ifc-key contents the code itself now, not the original special character - somehow...

      screenshots show the display in the original file and after the re-import.

      i want to try to detect those codes by ruby again to be able to differ between areas, length and so on.

      regards
      stan


      Screenshot 2023-12-15 162518.jpg


      Screenshot 2023-12-15 162852.jpg

      posted in Developers' Forum
      A
      areal3d
    • RE: Ruby and special characters

      the alternativ format is perfectly working !

      thanx a lot for this, i di not know this syntax yet 😄

      stan

      posted in Developers' Forum
      A
      areal3d
    • How to retrieve the structure of instance up to model?

      hello,
      i just stuck at one point:

      wirh onmousemove i can get the instance/component - structure easily:

      pickhelper = view.pick_helper pickhelper.do_pick(x, y) pickhelper.count.times { |pick_path_index| pp=pickhelper.path_at(pick_path_index) }

      i can the iterate pp and get for example all transformations.

      now when i iterate thru entities of a certain instance and want to get the parent, i do not get the higher INSTANCE, but the DEFINITION LIST.

      how can i get the whole path as in the pickhelper from a selected instance?

      thanx a lot for helping .

      stan

      edit1 : found this interesting topic:

      Link Preview Image
      What is the way to get an instance path to the root given a Group/ComponentInstance?

      The only thing I found close is InputPoint#instance_path, but it works only based on x,y coords which I think may return wrong results if the point that is used is shared by several instances Using Make 2017

      favicon

      SketchUp Community (forums.sketchup.com)

      starting to check it out!

      edit 2:

      this works, but interesting:

      not the returned arry of elemnts holds the row, but the array[0]

      BUT IT WORKS FINE !!!!

      posted in Developers' Forum
      A
      areal3d
    • RE: Ruby and special characters

      hi tig,
      first : thanx for your help.
      but
      i am doing something wrong.

      i placed the utf info at the very first line (above "Module")

      ` # encoding: UTF-8
      module ZF_ifc

      #########################################################################################
      class ZF_BIM_version
      #######################################`

      but i still get

      Error:
      #<SyntaxError: C:/Users/zdene/AppData/Roaming/SketchUp/SketchUp 2023/SketchUp/Plugins/zf_areal3d_bim/areal3d_bim_prg.rb:6743: invalid multibyte char (UTF-8)>

      so i cannot search in keys for german letters (ä,ü,ö).

      in the key of the hash there is an "ä"

      i want to check with ruby, if there is an "ä" in ite key:

      elsif tt[0].to_s.include?("L&#228;nge")

      elsif tt[0].to_s.include?("L&auml;nge")

      elsif tt[0].to_s.include?("Länge")

      i just stick.....

      stan

      posted in Developers' Forum
      A
      areal3d
    • Ruby and special characters

      hi,

      i get ifc-fields from german cad-programs, which have "ä, Ü, " etc. in the ifc-descriptions.

      ho can i handle this in ruby, when i want to check them?

      example:

      iterate key / value...

      if key == "Fläche" then...

      saving this the ruby do not work...

      thanx
      stan

      posted in Developers' Forum
      A
      areal3d
    • Extracting values from imported IFC

      hello,
      maybe someone has an answer:

      i can extract all informations from the ifc like area, volume etc. wirth the corresponding values.

      now, the desription ov "value" can be any expression, depending on the software , which generated the ifc.

      in german i have ifc-parameters using special character ("Fläche") vor "area", which i even cannot handle in ruby well. in other cases the key is not clearly defined, so i cannot analyse , if it is length/area/value.

      is there any universal way to find out, if a parameter value "xxx" is a length, area or volume, without regarding the name of the attribute? is it coded somewhere in the inported ifc in sketchup?

      so if i get key : 'abcdefg' value : '3,23456'

      how can i define the unit automatically?

      thanx for any idea...

      stan


      key and value

      posted in Developers' Forum
      A
      areal3d
    • RE: Plugin test version

      edit: found the filed for the version......upload worked 😄

      thanx for helping me !!!!

      stan

      posted in Developers' Forum
      A
      areal3d
    • RE: Plugin test version

      ok. understood.

      question:
      where do i have to implement the version of the plugin according to this message?
      in the ruby file or in the sketchucation system?

      thanx
      stan


      Screenshot 2023-07-05 134819.jpg

      posted in Developers' Forum
      A
      areal3d