sketchucation logo sketchucation
    • Login
    1. Home
    2. BillW
    ⚠️ Attention | Having issues with Sketchucation Tools 5? Report Here
    B
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 10
    • Posts 33
    • Groups 1

    BillW

    @BillW

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

    BillW Unfollow Follow
    registered-users

    Latest posts made by BillW

    • SU Gui toolkits

      Has anyone found any toolkits for GUI creation in Sketchup apart from webdialogs.
      I have revisited an old set of plugins where I used wxsu at http://wxsu.sourceforge.net/ which allowed me to create some very sophisticated dialogs including auto resizing. Alas xwsu has not worked for a long time with Sketchup and unfortunately I hate implementing webdialogs. In fact Webdialogs was the main reason I stopped developing in Sketchup.

      In a perfect world I would be more than happy if Trimble implemented something similar to wxsu.

      posted in Developers' Forum
      B
      BillW
    • RE: Problem importing 3ds max models into SU

      Had problems with Max in the past when ungrouping/exploding groups would show the same symptoms you are seeing.
      I suspect the Evermotion furniture models have a top level group. Try ungrouping/exploding a model and see what happens.

      I think its something to do with internal transforms. Try Utilities "Reset XForm" on a selected model.

      If not, the only other way out I know is to transfer the Evermotion geometry to new geometry.
      ie create new geometry (say a box), in the Modify Panel - "Convert to Mesh" and "Attach" Evermotion geometry and delete box geometry.

      As far as polylines - I assume you mean splines - did a quick check and only closed splines were translated in 3DS Export but unfortunately you get a face within the closed spline.

      posted in SketchUp Discussions
      B
      BillW
    • RE: WxWindows for SketchUp Dialogs

      I would just like to thank Peter for his work with WxSU. Personally, I would much rather use WxSU than Webdialogs, much more flexible and entirely in Ruby and cross platform. With auto sizing, any dialog will even change to match screen resolution. You can also set a minimum dialog size for resizing.

      To give some idea of the rich capabilities, find enclosed a flash video of a set of dialogs (WIP) I have been working on and a jpeg showing the main dialog.


      Sketchup WxSu.swf


      Build entity.JPG

      posted in Developers' Forum
      B
      BillW
    • RE: Alternative to angle_between?

      Thom

      Following on from Chris, I dont know if this code snippet from one of my tools helps

      
      def checkside(v1,v2)
        v3 = v1.cross(v2)
        return ((v3.z < 0) ? 1 ; -1)
      end
      
      # main body
      v1 = @pts[1].vector_to(@pts[2])
      @alignment = checkside(@stairdirvec,v1)
      
      
      

      It returns 1 or -1 depending on which side I need to draw. @stairdirvec is the primary direction which v1 is tested against.

      BillW

      posted in Developers' Forum
      B
      BillW
    • RE: [prototype] Doublecut (0.1.0a) - Need help debugging

      Thom

      I have had a component hole cutting tool for a while - it doesnt use observers as the original code is ancient.
      Perhaps you might want to reuse.

      A component placed on a face must have a set of linked edges which define the shape of the cutout which reside on the cutting plane of the component. This means that the geometry of say a window doesn't have to span the component cutting plane inorder to perform cut. Try it in the example file. Select all components and run "Component punch". Notice the circular window which shows the edges of the window outline seperate from the geometry.

      If there is no back face (in the same mesh) parallel to the front face containing the component then the front face is cut only which allows the user to reuse for say running an intersection.

      Punch hole in place of component

      Example file

      Regards

      BillW

      posted in Developers' Forum
      B
      BillW
    • RE: Get instance parent of selected entity

      Thanks both again

      I tried a different tack originally with an add_group/explode combo but TIG the instances option worked perfectly.

      Chris as I am disallowing component edit sessions for the time being and I am coding for SU 6 upwards, I will bear in mind Model.edit_transform for the future.

      BillW

      posted in Developers' Forum
      B
      BillW
    • Get instance parent of selected entity

      If a user has entered a group and selected say an edge - I want to get the parent of the selected edge ie the group

      Typing in the ruby console
      Sketchup.active_model.selection[0].parent

      responds with #Sketchup::ComponentDefinition:0xd3390f0 which is not the instance of the group

      What I need to get is the transformation of the containing group.

      Is there a way to get a handle to the group instance from the selection?

      Thanks

      BillW

      posted in Developers' Forum
      B
      BillW
    • RE: Current material in material browser

      Hi Chris
      I did notice Adam Billyard's comments. I am working on the assumption that the wxSU rough edges will be ironed out and am skirting around any current problem areas. Also, I probably wont be using Lightup anyway. As I understand it there is a more recent version of wx which can be downloaded and used to overwrite parts of the wxSU installation, but I will leave that till wxSU is updated.

      Thanks

      Bill

      posted in Developers' Forum
      B
      BillW
    • RE: Current material in material browser

      Excellent! Thanks very much Jim and Tig.

      This will come in handy. I am converting some of my Studio Max tools and am using wxSU to create some very sophisticated autosizing dialogs all working in ruby (no javascript/web pages). I am a fan of wxSU even though there are some rough edges.

      Regards

      Bill Wood

      posted in Developers' Forum
      B
      BillW
    • Current material in material browser

      I have searched through the docs to find a call that returns a reference to the currently selected material in the material browser - to no avail. I was hoping for a call active_material

      Does anyone have any ideas?

      Thanks

      Bill Wood

      posted in Developers' Forum
      B
      BillW