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

    Posts

    Recent Best Controversial
    • RE: Import image (in padded cell..!)

      Thanks TIG, though i think that is like the one i did already.

      with this workaround, you don't get the type of 'import as image' interaction (which allows you to position/align AND scale the image in one comfortable action).

      in other words, i'm trying to get exactly the same behaviour as 'sendaction 21200' - which works on a pc but not on a mac. i spent the whole of bank holiday monday on this, and concluded there is not a way to replicate it...(that's why the padded cell!).

      posted in Developers' Forum
      CadFatherC
      CadFather
    • RE: Import image (in padded cell..!)

      Thanks Driven, i've tried this already but what i'm going mad about is i cannot simply replicate the way it works when you import 'as image' (floats on the cursor, place and scale....).

      the nearest i got was to turn it into a comp, but not the simple action that i want.

      m = Sketchup.active_models = m.selection;e = m.entities;d = m.definitions
      x = e.add_image(path, ORIGIN, 800, )
      s.add x
      g = e.add_group(s)
      c = g.to_component
      cd = c.definition
      cd.behavior.is2d = true
      cd.behavior.snapto = 0
      c.erase!
      m.place_component cd, true
      

      problem is the registry setting stores the last option used, and it seems one cannot bypass this during the session from ruby.

      i can get round it with 'sendaction' but of course, only on pc.

      ocd, but seems crazy that in ruby one just can't select 'as image'.

      posted in Developers' Forum
      CadFatherC
      CadFather
    • RE: Import image (in padded cell..!)

      mmmh, will play some more... as mentioned, i already traveled the component route but the behaviour is not what i want. strange you cannot specify the import option.

      Thanks

      posted in Developers' Forum
      CadFatherC
      CadFather
    • RE: Import image (in padded cell..!)

      Thanks Dan, not sure what you mean by 'coupling' (i don't think you intend combine them together).

      trouble with add.image method, is that you're not free to place and scale the image manually...

      posted in Developers' Forum
      CadFatherC
      CadFather
    • Import image (in padded cell..!)

      anyone came across this?

      importing an image from a folder:

      @get_image = UI.openpanel('Import Image', '', '*.jpg' )
      Sketchup.active_model.import @get_image
      

      this is fine, but there is no control over the import option.

      if you used matchphoto in a previous session, sketchup will automatically import the image the same way.

      no way to consistently import as image (not as texture or photomatch)...
      (and it seems nothing on the entire web about it)

      edit: forgot to mention trying all sorts of trickery (including importing as a comp and then placing). the nearest i got is a shaky sendaction 21200 (which only works on pc). πŸ˜’

      posted in Developers' Forum
      CadFatherC
      CadFather
    • RE: [Plugin] TIG-Fracture

      wow... fab plugin TIG!

      posted in Plugins
      CadFatherC
      CadFather
    • RE: [Plugin] CleanUp

      yes, or some good solidsolvers..

      posted in Plugins
      CadFatherC
      CadFather
    • RE: [Plugin] CleanUp

      because they belong to faces inside - it always worked that way

      posted in Plugins
      CadFatherC
      CadFather
    • RE: A way to save Toolbar info?

      ok, just change the number inside the file to 2014

      posted in Plugins
      CadFatherC
      CadFather
    • RE: A way to save Toolbar info?

      yes, there is. running 2015?

      i attached a small batch file. when you run it it will ask you to give a name to your back up file (which is a registry file). that way you can easily save more than one.
      the result will be a 'reg' file on your desktop. (public)

      if you open the script you can change directory etc..

      when you want to restore, just double click on the reg file, accept the warnings and all previous settings are restored.


      SAVE SETTINGS.zip

      posted in Plugins
      CadFatherC
      CadFather
    • RE: Power Toolbar (2.5) - fix for 2019

      told of a bug in the menus - fix coming soon.

      posted in Plugins
      CadFatherC
      CadFather
    • RE: [PLUGIN] Flowify v1.1.0 (updated 150327)

      Thank you Caul. fantastic extension.

      on my pc the impose grid has no effect on the plane.

      hence flowify shows errors (but at least it fires), got the 3 groups in place etc.
      tried with a default plugins set up (flowify the only extension). no success.

      attach the sample, in case someone can see any blindspots...

      the tutorials were some of the best i've seen. πŸ‘ πŸ‘

      %(#BF0080)[EDIT: 😳 i think i made a mistake. i thought i could place the lines a bit inside the group, not always on the extremities. sorry the false alarm! πŸ˜„]

      EDIT 2: %(#FF0000)[OUT OF THIS WORLD! πŸ˜†]

      ...


      2.skp

      posted in Plugins
      CadFatherC
      CadFather
    • RE: Flatten and Rename/renumber scenes Plugin for Sketchup 2015

      i was thinking of these situations (attached file). of course to view with hidden geometry on.

      for a human figure, from 3000 edges we go up to 20000 when flat.


      flattens.zip

      posted in Plugins
      CadFatherC
      CadFather
    • RE: Flatten and Rename/renumber scenes Plugin for Sketchup 2015

      great, that's what i'll do then. makes it for a slightly faster job as well.

      just as i was getting chaffed about the all new flatten plugin...the idea of the visible lines was a good one though!

      posted in Plugins
      CadFatherC
      CadFather
    • RE: Flatten and Rename/renumber scenes Plugin for Sketchup 2015

      ok thanks, i'll check it out, (had to be TIG! πŸ˜† )

      EDIT. actually i do know that script and it is very good, though it only works if you have workplane installed.

      posted in Plugins
      CadFatherC
      CadFather
    • RE: Flatten and Rename/renumber scenes Plugin for Sketchup 2015

      @sdmitch said:

      Some horizontals would be OK if they are perpendicular to the axis of choice.

      the plot is as thick as it gets!!! πŸ˜†

      posted in Plugins
      CadFatherC
      CadFather
    • RE: Flatten and Rename/renumber scenes Plugin for Sketchup 2015

      yes, no vertical lines. i'm thinking of a chair, one needs the profile lines and the main visible ones, as long as they're not vertical.

      (though now you make me think it'd be fab having it flatten on the red or green plane too (!), for which case verticals are ok but not horizontals) 😲

      posted in Plugins
      CadFatherC
      CadFather
    • RE: Flatten and Rename/renumber scenes Plugin for Sketchup 2015

      ...my own middle name has been 'chabbo' for quite sometime now! 😎

      yes, only the lines visible from above.

      posted in Plugins
      CadFatherC
      CadFather
    • RE: Flatten and Rename/renumber scenes Plugin for Sketchup 2015

      both working flawless. on flatten, need to explode any curves if present, but amazing lean code! πŸ‘

      would be fantastic if only the visible lines from a top view were flattened - basically making 2d shapes for cad drawings! 😲

      posted in Plugins
      CadFatherC
      CadFather
    • RE: Delete all layers via ruby

      Thanks TIG, you are the best! πŸ˜„ πŸ‘

      so you are mining for entities (including groups i presume), AND component definitions...

      posted in Developers' Forum
      CadFatherC
      CadFather
    • 1 / 1