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

    Posts

    Recent Best Controversial
    • RE: [Plugin] Solids Penetration Check

      Please help me find the solution for this bug:
      -when one solid is a subcomponent and a subgroup in a component, the plugin can't find the penetration.
      I know the problem is in line 132 def1=solid1.entities.parent ,but don't know what to do about it.
      Thanks

      EDIT:SOLVED


      checkSolids.skp

      posted in Plugins
      voljankoV
      voljanko
    • RE: [Plugin] Solids Penetration Check

      Ups,I was sure that tested with components.Now it is ok and updated for download.
      Now the code indentation is properly aligned so perhaps readable πŸ˜„

      You wrote :"Also, another strange thing(bug?) I see is when you have (group or component) inside a (group or component), I get a volume of "-1.0"

      Sketchup assign the volume to -1 when the item is not a solid.If you mean something related to my plugin,please explain more.

      You wrote:"That's why the error message saids undefined method."

      How do you get this message?Hod do you debug? Im only using message boxes to debug.

      posted in Plugins
      voljankoV
      voljanko
    • RE: [Plugin] Solids Penetration Check

      Ok,thanks.
      Updated.
      Please note,if you have a big model (more than 20 solids),the plugin will need more time to compute all the intersections.
      If you want to see that plugin is doing something (not freezed),you can select the Outliner (Window menu) as the activity display.It can be some kind of progress bar.

      posted in Plugins
      voljankoV
      voljanko
    • RE: [Plugin] Solids Penetration Check

      Updated version:
      -now is a tool (you can zoom to check the penetration area)
      -automatic x_ray view
      -red colored penetration area
      -new name πŸ˜„

      posted in Plugins
      voljankoV
      voljanko
    • RE: [Plugin] Solids Penetration Check

      I would also like to change the colour of the result to make it more visible,but I don't know how.
      Any suggestions?

      posted in Plugins
      voljankoV
      voljanko
    • RE: [Plugin] Solids Penetration Check

      Hello,
      this plugin is only useful for checking SOLID groups and components,if they are penetrating itch other.
      I have remove the message boxes (and updated the file for download) that show you the "ungrupped" entities.So no more painful clicking.
      And also it is only for versions 8 and more,because the SOLIDS exists only from version 8 (i think).

      posted in Plugins
      voljankoV
      voljanko
    • [Plugin] Solids Penetration Check

      Here it is,my first public plugin πŸ˜„

      In some cases the intersections between solids can be considered as mistakes.
      So this plugin is made to find this mistakes.
      Just select some solids and click the Solids Penetration Check from the Tools menu.
      The intersections between solids will be highlighted (selected) and colored red.
      The version 8 of Sketchup is needed because of SOLIDS.

      Now the plugin is a tool and much more useful ,because you can zoom the penetration area.
      When you activate the tool,the x-ray option is selected automatically.
      Please note that if you check more solids,the time to check will increase significantly.It is because of many boolean
      operations between the solids.If you want to see that plugin is doing something (not freezed),you can select the Outliner (Window menu) as the activity display.It can be some kind of progress bar.

      What do you think about it?

      EDIT:
      This project is stoped, the penetration check function is debugged and a part of http://www.susolid.com plugin.


      solids_penetration_check.JPG

      posted in Plugins
      voljankoV
      voljanko
    • RE: Solids Penetration Check plugin

      Thank you for the very useful suggestion.
      I have almost finished the plugin,but (you can guess) there is a problem.
      The transformations of solids are local within the group,but I need it global,because I want to check
      also the intersections between the solids from different groups.
      So,how to get the global transformation of every solid?
      I hope there is an easiest way than store and multiply every transformations from parent-groups.

      posted in Developers' Forum
      voljankoV
      voljanko
    • Solids Penetration Check plugin

      Hello.
      I would like to have (make) a plugin that checks all the solids with other solids if they intersect.
      The result of the intersection should be a solid (to avoid positive results if solids only touch each other.
      I have found only the method Group.intersect suitable to do this.
      But the problem is that this method is not only checking the intersection but also remove the two solids and do a new
      solid (or face if two solids only touch each other).

      I would like to know if there is a plugin that already do this.
      If not, I would appreciate any idea how to deal with this problem.

      Thanks for help and have a nice day.

      posted in Developers' Forum
      voljankoV
      voljanko
    • RE: How to unhide "lost" group

      Yee,thank you!

      posted in SketchUp Discussions
      voljankoV
      voljanko
    • How to unhide "lost" group

      Situation:

      • a group wit 2 subgroups
      • edit a group and hide both subgroups
      • close a group and the group will disappear

      How to unhide (recovery) the group?

      posted in SketchUp Discussions sketchup
      voljankoV
      voljanko
    • Volume attribute in DC

      I have put the volume attribute in Dynamic Component Attributes Info writing a plugin with the set_attribute method.
      The problem is that the volume attribute don't want to update when i modify the solid.
      I have try with the EntitiesObserver onElementModified method,but it only works if I modify the solid without editing it.
      Does anyone have the solution for updating the volume attribute in Component Attributes Info?

      posted in SketchUp Discussions sketchup
      voljankoV
      voljanko
    • RE: Solid-trim-solid = solid+non solid

      Here is my solution to this problem:
      -change units from mm to meters
      -resize the model with the measure type tool (1mm = 1m)
      -apply trim to the solids (and also all other operations till finished the model)
      -change units back to mm
      -resize back the model with the measure type tool (1m = 1mm)

      I'm sure that there are other problems related to the size of the model, that can be overcome in this way.

      posted in SketchUp Discussions
      voljankoV
      voljanko
    • RE: Solid-trim-solid = solid+non solid

      I have a feeling,what could be a problem.The model is too small.If im using meters instead of mm, everything is ok.
      But then the size is not like it should be.

      posted in SketchUp Discussions
      voljankoV
      voljanko
    • RE: Solid-trim-solid = solid+non solid

      Ok,here is the file.
      Just select the component1 and trim it with group2.
      The result on my pc is that group2 in not a solid any more.
      Thanks for help.


      trim_problem.skp

      posted in SketchUp Discussions
      voljankoV
      voljanko
    • Solid-trim-solid = solid+non solid

      Hello,Im having a problem with trim operation between two solids.
      The second solid is becoming a non solid,after the operation.
      It is only happening if i have the first solid configured to glue to any surfaces,otherwise the result is two solids as expected.
      Is it the bug?

      posted in SketchUp Discussions sketchup
      voljankoV
      voljanko
    • RE: How to retrive the rotation

      Wow,this is new for me that there are other classes (like Math) than that from SketchUp Ruby API documentation.
      Does anyone have a list and documentation of all included classes in SketchUp Ruby?
      Is it possible to include other classes and libraries and how?

      posted in Developers' Forum
      voljankoV
      voljanko
    • RE: How to retrive the rotation

      Ok,if nobody knows it πŸ˜„ ,i will tell you:
      The first 3 elements of the array that you get with transformation.to_a .
      The number that comes out is the cos of the angle.

      Interesting?

      3d.new 10,20,30
      t = Geom::Transformation.new point
      a = t.to_a
      UI.messagebox a [0]

      posted in Developers' Forum
      voljankoV
      voljanko
    • How to retrive the rotation

      Hello,
      i would like to retrieve the angle of the rotation of the transformation of the entity πŸ˜„ .
      But i cannot find the appropriate metod to do this.
      Maybe somebody knows some procedure to do this.

      posted in Developers' Forum
      voljankoV
      voljanko
    • RE: Dont understand rotation

      No,im not doing an animation,but only transaction.
      It is strange that with move metod i have different result.
      The same behaviour (not wanted)i get if i make a component in this way:

      point = Geom::Point3d.new 100,0,0
      vector = Geom::Vector3d.new 0,0,1
      degrees = 90
      angle = degrees.degrees
      t = Geom::Transformation.rotation point,vector,angle

      path = Sketchup.find_support_file "Bed.skp",
      "Components/Components Sampler/"
      definitions = model.definitions
      componentdefinition = definitions.load path

      instance = entities.add_instance componentdefinition, t

      posted in Developers' Forum
      voljankoV
      voljanko
    • 1 / 1