sketchucation logo sketchucation
    • Login
    1. Home
    2. confitex architure
    πŸ€‘ SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now
    C
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 14
    • Posts 57
    • Groups 1

    confitex architure

    @confitex architure

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

    confitex architure Unfollow Follow
    registered-users

    Latest posts made by confitex architure

    • RE: Use Sketchup default cursors

      In the onMouseMove definition, view.invalidate match better. (I've seen that thanks to an old post from Jim)

      		def onMouseMove(flags, x, y, view)
      			view.invalidate
      		end
      

      I don't really understand why in deactivate(view) refresh makes it and not in onMouseMove. Nevermind.
      It's now easy to follow the mouse move and to replace the cursor with the .draw method.

      Thanks again!

      posted in Developers' Forum
      C
      confitex architure
    • RE: Use Sketchup default cursors

      Thank you for such a "dirty" code! πŸ˜„
      Now I get it

      posted in Developers' Forum
      C
      confitex architure
    • RE: Use Sketchup default cursors

      I don't get it.
      What does that mean? Can you give me a short example?

      posted in Developers' Forum
      C
      confitex architure
    • RE: Use Sketchup default cursors

      Nothing happens...Not even errors on Ruby console.

      I tried

      model = Sketchup.active_model
      view = model.active_view
      point1 = Geom;;Point3d.new 0,0,0 
      point2 = Geom;;Point3d.new 10,10,0
      point3 = Geom;;Point3d.new 10,20,0
      point4 = Geom;;Point3d.new 10,30,0
      status = view.draw_polyline point1, point2, point3, point4
      
      

      Or

      point = []
      model = Sketchup.active_model
      view = model.active_view
      point[0] = Geom;;Point3d.new 0,0,0
      point[1] = Geom;;Point3d.new 10,10,0 
      status = view = view.draw GL_LINES, point
      
      
      posted in Developers' Forum
      C
      confitex architure
    • RE: Use Sketchup default cursors

      Right thomthom, thanks
      It changes it with an image. How to replace it by a square that fits values you entered previously? By putting a temporary component that draws the square and that follows the mouse path?
      Or how to get the same effect that I see on this advertisement from 3skng i see on the bottom?

      posted in Developers' Forum
      C
      confitex architure
    • RE: Use Sketchup default cursors

      Hello!
      I've seen plugins such as the one from 1001bit.com that change the cursor when launching a plugin (like when deciding the position of a stair.)
      UI.set_cursor should be helpful.
      Does someone have a short code to share to give an example?
      Help is welcome.

      posted in Developers' Forum
      C
      confitex architure
    • RE: Way to simplify the edges of a square?

      Didier,
      I made a change because I get an error message in the ruby console about the edge.position in your code

      		edges.each do |edge|
      			if edge.start==e.start or edge.end==e.start or edge.start==e.end or edge.end==e.end and not (e.line[1].parallel? (edge.line[1]))
      				if edge.start==e.start or edge.start==e.end
      					corners.push(edge.start.position)
      				else
      					corners.push(edge.end.position)
      				end
      			end
      		end
      
      

      Would you have done it differently?

      posted in Developers' Forum
      C
      confitex architure
    • RE: Way to simplify the edges of a square?

      It could help to retrieve the vertices of edge from faces that are connected. If an edge of one face do not overlap exactly an adge of another face it just divide these element and it becomes difficult to retrieve the vertices.(I mean before Didier and Tig's reply).
      Thanks Didier and Tig.

      Hope to be back soon with the plugin that takes advantage of this post.

      posted in Developers' Forum
      C
      confitex architure
    • Way to simplify the edges of a square?

      Hi,
      I'm trying to retrieve the 4 vertices of a quadrangle that has divided edges.
      But right now I did not found the way to detect when an edge is the continuation of an other and to bypass the result of the middle vertice.
      Any help would be great.

      posted in Developers' Forum
      C
      confitex architure
    • RE: [HowTo?] Find Instance parent's Instances

      Is this what you're looking for?

      def parent_of
      	selset = Sketchup.active_model.selection 
      	for e in selset
      		if (e.kind_of?(Sketchup;;ComponentInstance) ) 
      			compo_name = e.definition.name
      			parent_name = e.parent.name
      			puts compo_name
      			puts parent_name
      		end
      	end	 
      end
      

      Emmanuel

      posted in Developers' Forum
      C
      confitex architure