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

    Posts

    Recent Best Controversial
    • Flags (onkeydown) in skp 2025

      hello,
      i face a strange problem:

      while transferring my plugin to skp2025

      the ruby-console shows all flags with value 0
      for any key hit (notebook and external keyboard).

      so nothing works in the plugin.

      has anybody any idea, what is causing this?

      thanx a lot. i am rather desparete now....
      stan

      ruby-console after hitting some keys:
      Screenshot 2025-05-03 181049.png

      puts "bt ****onKeyDown:   K:#{key}   F:#{flags}"
      
      posted in Developers' Forum
      artmusicstudioA
      artmusicstudio
    • RE: Ruby and special characters

      thanx a lot. perfect-:)

      posted in Developers' Forum
      artmusicstudioA
      artmusicstudio
    • SKP 2023 - german translation

      hello,
      can anyone confirm the headline of the ruby-console
      titeled

      "koenigsblau" ?

      thanx
      stan


      Screenshot 2023-12-12 010142.jpg

      posted in Developers' Forum
      artmusicstudioA
      artmusicstudio
    • Ruby . - on key now - flags problem

      hello,

      i face a seldom problem:

      in skp 2021

      onkeydown produces

      key 38 flag 328

      key 40 flag 336

      on the same notebook with same keyboard (parallel installation)

      sketchup 2023 produces flags 0 for both keys.

      is there any logical explanation for this ?

      thanx alot!

      stan


      Screenshot 2023-12-11 224222.jpg


      Screenshot 2023-12-11 224208.jpg

      posted in Developers' Forum
      artmusicstudioA
      artmusicstudio
    • RE: Plugin test version

      hi rich,
      thanx for this, the dev tools are accessible.

      could you please activate the tools also for my new account, user: areal3d.
      i would like to run the plugin under this label.

      thank you very much.

      stan

      posted in Developers' Forum
      artmusicstudioA
      artmusicstudio
    • RE: Plugin test version

      no. do i have to apply for access?

      posted in Developers' Forum
      artmusicstudioA
      artmusicstudio
    • Plugin test version

      hello,
      i am working on a small ifc-viewer. is it allowed to put a download link here for someone, who would like to make some testing?
      thanx
      stan

      posted in Developers' Forum
      artmusicstudioA
      artmusicstudio
    • Working with ifc-attributes

      hello,
      i have to dive ibnto bim and ifc-parameters.

      i must confess, that i cnnot find the correct parameters in the compo-instance oder definitions in the ruby-api.

      so for the start

      if i iterate thru comp.-instances in the model,

      is there a way for examlple to

      -read out a table of all existing assigned (manually in the components in sketchup or imported)

      -edit them (for example changing some letters)

      • and write them again back into attributes?

      • and eventually generate a new attribute with a new value ?

      thanx for helping in advance.

      stan

      edit:
      i found out, that the ifc-attributes are similar like other attributes dictionaries, so i could read them out by

          dictionaries = mycompo.attribute_dictionaries
      # Iterates through all dictionaries and prints to screen.
      dictionaries.each { |dictionary| puts dictionary.name }
      puts ""
      attrdict = mycompo.attribute_dictionaries['dynamic_attributes']
      attrdict.each_pair { | key, value |
      puts "#{key} = #{value}"
      }
      
      posted in Developers' Forum
      artmusicstudioA
      artmusicstudio
    • RE: Section plane in page

      @tig said:

      A page does not 'have' the active_section_plane.
      That belongs to the model.active_entities as .active_section_plane
      So you do need to make the page [scene] in question model.pages.selected_page= and then check the active section-plane details in the model.active_entities ...

      HI TIG,

      yes, thanx a lot, i am at this point, too, i think,
      and i could iterate thru all pages (make the active one after another), with view.refresh off, maybe,

      i just was hoping, that there is a hidden property for an active section.

      so the conclusion is:

      the page (scene) stores the active section - but there is no way to retrieve it directly by api at the moment πŸ˜„

      thanx a lot again πŸ˜„
      stan

      posted in Developers' Forum
      artmusicstudioA
      artmusicstudio
    • Section plane in page

      hello,
      i studied the api, but cannot find a way to

      retrieve the active section plane of a page

      without making the page an active page (means only by iteration thru pages and getting the corresponding section-plane).

      is that possible?

      thanx a lot for helping !
      stan

      posted in Developers' Forum
      artmusicstudioA
      artmusicstudio
    • Duplicate Material (in materials) with correct texture API

      hello,
      i have a small script, which

      • takes the material from a selected face
      • creates same material as copy in "materials" with a indexed name
      • copy includes the texture of the source material

      BUT

      my problem is, that the texture in the copied material is beeing reset to original size (although adjusted manually in the material section).

      is it possible to retrieve the texture exctly and asign it again to the indexed material?

      i studied the texture section and can get width/height (original size) an maybe also uv,
      but i do not find a way to aply it again to a new material.

      thanx for any tip!

      stan

      edit: just found a way:

      • create new material
      • retrieve path of source-material-texture
      • load it directly ( material.texture = path)
      • assign [tw,th] from source-material....

      it works this way around πŸ˜„

      posted in Developers' Forum
      artmusicstudioA
      artmusicstudio
    • Avoiding "Start(Makro)Ruby operation left open"

      edit 180102:

      what is wrong, when my undo system works perfectly (all operation back & forth) and still the ruby-logfile shows

      "Start(Makro)Ruby operation left open: ........" ???

      i definitely have always paired starts & commits, even with on cancel & on deselect........

      edit 180101:

      is it possible to integrate everything within ONMOUSEMOVE into an operation in ONLBDOWN ?

      i would like to make a line following the mouse after first - point - click, unless second click is done,
      but all this in 1 OPERATION.

      thanx for any help or example ( the line-tool-example has no operation-declared, so it does nor help here).

      stan

      hi,
      i need a small advice.
      i just started to study the sketchup-report and found out, that, althoug i commit operations, i get a reported

      Start(Makro)Ruby operation left open

      how can i avoid this and "close" the tool in a proper way ?

      i found this text in the internet, but must confess, that i do not understand it...

      .....................

      When enabled (true):

      * Ruby Console now warns about Ruby operations left open. Leaving

      operations open is typically a bad practice. We are warning developers

      that they should try to find a different way of doing what they want to do.

      * Ruby Console now warns when a user tries to create a nested operation.

      Starting a new operation while one is still open is a bad practice. We

      would like developers to be more aware that they are doing this so that

      they can fix their code.

      .....................

      thanx for helping!!!!

      with best wishes for 2018
      stan

      posted in Developers' Forum
      artmusicstudioA
      artmusicstudio
    • RE: How to release a plugin

      hi dan,
      thank you very much,
      i was already there, but missed somehow to press the button once more after uploading, was too tired probably πŸ˜„
      it works now perfectly (and there were no problem with the code, so things develope well...)
      stan

      posted in Developers' Forum
      artmusicstudioA
      artmusicstudio
    • RE: How to release a plugin

      UPDATE;:
      i got my ok from trimble yesterday, so now i hacve 1 first question:

      is it possible to let the system scramble my programm only for me for testing, first?
      thanx
      stan

      posted in Developers' Forum
      artmusicstudioA
      artmusicstudio
    • RE: Lumion 8 is just amazing!!

      i can say, the import of skp into lumion 8 works absolutely perfect, even with huge files.
      the results are really amazing.
      regards
      stan

      posted in SketchUp Discussions
      artmusicstudioA
      artmusicstudio
    • RE: How to release a plugin

      hello slbaumgartner,
      thanx for this info,
      it is ok, if this is normal, i am just cleaning a lot in the code, so a small delay is ok.
      besides that, the email-adress i got the "under review"-info cannot be used for an answer ( i tried already), so i think, waiting is the choice of the day at the moment.....
      but if somebody has a direct contact email to trimble, i would be greatful for a post πŸ˜„

      stan

      posted in Developers' Forum
      artmusicstudioA
      artmusicstudio
    • RE: How to release a plugin

      hello,
      just to hear about your experience:
      is it normal, when it takes more than 4 weeks to get aproved by trimble to become a developer?
      thanx
      stan

      posted in Developers' Forum
      artmusicstudioA
      artmusicstudio
    • RE: How to release a plugin

      hi tig & others,
      thanx for all the information,
      it's helping a lot, i will go thru the process step by step,
      and if my code hopefully passes the test, next steps follow......

      thanx a lot! i must confess, that i cannot wait, if somedy finds the ideas i had , useful for the workflow ( in my projects the ruby is a real timesaver, but thats my personal workflow, of course...)

      regards
      stan

      posted in Developers' Forum
      artmusicstudioA
      artmusicstudio
    • RE: How to release a plugin

      Thanx so far for the informations.

      so you have to send your unscrambled code thru internet to trimble and get it back scrambled !
      so i can distribute it from my site (not necesserilly thru warehouse? )
      i am just a bit afraid to send the code unscrabled via mail or upload.
      or is the upload save enough? i am no expert for internet transfers.

      regards stan

      posted in Developers' Forum
      artmusicstudioA
      artmusicstudio
    • How to release a plugin

      hello developers,
      i have written a collection of tools (investing a lot of time in it) and would like to distribute it in a scrambled form. maybe someone has experience or informations to following basic questions:

      • would you recommend using the 'old' rbs scramble tool? or is it not safe? the advantage is, that sketchup 15 users can also use the plugin.

      • is it better to go thru trimble's development system and let ot scramble there (then only for skp 16+.)?

      • if so, is it safe to send unscrambled ruby code to trimble thru internet? i reaaly invested lot of time and would like to keep control ......

      -is there any way to get in contact with trimble? i tried to apply as developer. for me it is not clear, if i have to send the code first or not and would like to talk to them about different questions (safety, my own locense system etc.)

      thanx for helping!

      stan

      posted in Developers' Forum
      artmusicstudioA
      artmusicstudio
    • 1 / 1