sketchucation logo sketchucation
    • Login
    1. Home
    2. ghandi
    3. Topics
    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
    G
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 3
    • Posts 10
    • Groups 1

    Topics

    • G

      Named-Color not available

      Watching Ignoring Scheduled Pinned Locked Moved SketchUp Bug Reporting sketchup
      3
      0 Votes
      3 Posts
      399 Views
      G
      Yes I'm sry I found that list after I posted. I found the color within Sketchup. Thought it is built-in because I don't remember adding it myself. Thank you.
    • G

      Sketchup kind of 'stuck' after scripts

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      13
      0 Votes
      13 Posts
      299 Views
      TIGT
      Sketchup.send_action("selectSelectionTool:") should work cross-platform - it's only the numerical codes that are PC specific like Sketchup.send_action(10501) which is PC only whereas the equivalent Sketchup.send_action("viewTop:") works on PC & MAC...
    • G

      Ruby How to Select All Connected

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      6
      0 Votes
      6 Posts
      2k Views
      TIGT
      I've moved this into the Developers' Forum as it's a general issue... You can get info about a curve. verts=curve.vertices returns the vertices, so if it's an arc etc then vf=verts.first and vl=verts.last are the end vertices. You can also get the start and end edges with ef=curve.first_edge and el=curve.last_edges You can get the edges that use any vertex with edges=vertex.edges so do that for vf and vl in turn - the array of edges will include the curve's edge so fedges=vf.edges; fedges.delete(ef); fedgeyouwant=fedges[0] ditto for vl/ el So you now have a way to find the two edges connected to ends of an curve. This assumes you have checked it's a curve, it's not looped etc; and if there isn't a connected edge you get 'nil'. or if there are more than connected edge then only the first one found is returned...
    • 1 / 1