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

    Topics

    • W

      How can import and locate the components by ruby script?

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      4
      0 Votes
      4 Posts
      1k Views
      W
      The information is vrey important .And I want to import some components into coordinates by ruby scripts and locate the components by parameter form the user,What methods need to refer? Please give me some suggestions.Thanks! The size of components add a lot of difficulties,because space of the components need to taken in my ruby script.Now ,I have trouble to deal with that. Does some solutions be gave?
    • W

      Does the method related long of models or components exist?

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      3
      0 Votes
      3 Posts
      118 Views
      W
      @chris fullmer said: Hi winzard, yes you can controol those things. It is all in Transformations. Or if you you just want the z height of something, you can also iterate through all vertices and compare their heights. Take the highest and loset z values and compare them to see how tall the object is. Do the same for lengths. Or you can also get the bounding box of an object and then use the boundingbox methods to get the length and size of the bounding box. More info would help narrow down the best answer, Chris Thanks !The information is great help to me.
    • W

      What tools can help to debug?

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      5
      0 Votes
      5 Posts
      236 Views
      D
      @jim said: Hi Alain, pecan created a Windows debugger for SketchUp. See this post for information. Welcome to the forums. We have a Ruby Forum dedicated to Ruby/plugins discussons if you have any further questions - everyone here is friendly and helpful. Thank you very much. Straight I'm going to try and have a first look around of your forum
    • W

      Why can not draw the geometric by the ruby script?

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      3
      0 Votes
      3 Posts
      202 Views
      Chris FullmerC
      I'm not sure, it worked for me in both 6 and 7. Are you getting any errors in the ruby console? Chris
    • W

      I have a trouble in the code,and need help.thanks!

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      3
      0 Votes
      3 Posts
      151 Views
      W
      Thank you very much!It is greate help to me!
    • W

      Can it be to achieve?

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      8
      0 Votes
      8 Posts
      278 Views
      R
      @tig said: You can also do it without Ruby... Try this way... In the model select the component instances you want to be replaced - either by manually picking them (in which case they can even be a mixture of several types) OR by using the Component Browser (model-tab) and then right-clicking over the definition's icon that you want to have selected and pick 'Select Instances' - that way all of its active instances are selected. Now use the Component Browser - either in the model-tab to use components that are already within the model, or from any other 'external' location for components that are currently not yet loaded into the project - again you right-click over the definition's icon that you want 'to add' and pick 'Replace Selected'. Now the components you selected have been replaced by the component you wanted... It's possible to script it BUT it might be as easy to do it this way... There are already several component swapping scripts too... It can be done using the Component Browser, but when you have lots of components, it can be easier to select a desired component on-screen rather than hunting through the browser. Though I wrote ApplyTo before the Component Browser offered that functionality, it retains its relevance for this reason.
    • W

      I have a question, about Model.import of sketchup API

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      8
      0 Votes
      8 Posts
      646 Views
      Y
      @thomthom said: Do you get any errors? What format are you trying to import? .skp? I import a dae file to sketchup by api. but i need to click to position. is there a way to position it automatically?
    • 1 / 1