Urasik Extensions | Lots of new extensions to check out Learn More
  • DXF layer names

    3
    0 Votes
    3 Posts
    204 Views
    S
    Thanks, works perfectly for me - every component is on its own layer and CNC machine can read layers automatically for toolpaths.
  • Command lne for loading a plugin from an external folder

    7
    0 Votes
    7 Posts
    1k Views
    masterpaulM
    @tig said: @masterpaul said: Thank you I understood how to load a single plugin, and did so successfully but not so much a whole file from this directory: E:\Sketchup\Plugins Inside my example script the last few lines of code load everything inside a given folder. You can't type multi-line code in the console, use ; to make it one line... First set the path path='E:\Sketchup\Plugins' then Dir.entries(path).each{|file|ext=File.extname(file).downcase;next unless ext==".rb"||ext==".rbs";Sketchup.load(File.join(path, file))} To load all files inside the give 'path'... Ah thankyou.. it works perfectly
  • [Plugin] Taper Maker v1.3.5 - Apr 2012 Update

    3
    0 Votes
    3 Posts
    4k Views
    utilerU
    Well done, Terry!!!1 Although its not something I use often it is a very well put together toolset!
  • File Size Plugin Idea

    13
    0 Votes
    13 Posts
    707 Views
    E
    That DAE export thing isn't a bad idea, it would certainly be a good way to diagnose a bad model... I'll have to try that...
  • Fill a shaped surface with a modeled object?

    18
    0 Votes
    18 Posts
    1k Views
    gascatG
    @unknownuser said: When you say fit onto a shape, do you mean surface or single face? I figure it is a single face that could be in various shapes. I would be keen to look at what you have. cheers...Wayne
  • Display and selection of guides in component-NEVERMIND

    4
    0 Votes
    4 Posts
    276 Views
    TIGT
    The built-in guide-delete tool removes all guides from the current context downwards. So if you are in the model context and run it then all guides go. If you are inside a group context and run it then all guides inside the group, and inside other groups/components that are inside the context group, will be deleted, but guides outside in other groups or the model itself are not removed. Note that locking a group or having guides on 'off' layers, does not prevent those guides being deleted in en mass. Of course you can erase individual guides using the Eraser tool or selecting them and using 'delete'... There are several script tools to erase guides in different contexts, and also differentiate between guide-lines and guide-points...
  • Using View.draw_polyline in rotated component

    4
    0 Votes
    4 Posts
    296 Views
    TIGT
    A Point3d behaves much as an Array and vice versa. You can make a point and adjust it's x/y/z values on the fly just as you can with an Array. So pt=Geom::Point3d.new() or even pt=ORIGIN.clone gives you Geom::Point3d.new(0, 0, 0) then pt.x=123.4 OR pt[0]=123.4 gives you Geom::Point3d.new(123.4, 0, 0) A point or array will take .x ,y and .z; as well as [0], [1] and [2]... This lets you read AND set values... pz=pt.z returns 0.0 and pt.z=1 gives us Geom::Point3d.new(123.4, 0, 1.0) etc... I suspect you are over complicating things... To get the z axis of the current 'container', test if it's the model, and if so use Z_AXIS; if not use the container.transformation.zaxis Let's assume we have an object in a container that is called 'obj' if obj.parent==Sketchup.active_model z_axis=Z_AXIS else#it's a group or component z_axis=obj.parent.instances[0].transformation.zaxis end IF you already know where the 'obj' is - e.g. you've made it inside a 'group' then it's even easier... z_axis=group.transformation.zaxis
  • Windowizer Help

    7
    0 Votes
    7 Posts
    752 Views
    N
    Thanks for all the help. It is much appreciated.
  • [Plugin] Component Spray update

    29
    0 Votes
    29 Posts
    52k Views
    brookefoxB
    Having a hard time now. Rarely is anything being sprayed, no matter the setting. No groups or components on the receiving end. FloatDomainError? [image: 0KeM_componentsprayfail-1.JPG]
  • Matchphoto Swap

    13
    0 Votes
    13 Posts
    794 Views
    CadFatherC
    Thank you Pixero - that helped a lot because as i went back to play i found out what was driving mad... (really i had given up on this! ) when you add the second scene, it doesn't save these, (since it duplicates the photo-matched) [image: dLHp_scene.jpg] switching these on, i can move through different scenes and keep the axis put...! might do a small tutorial later today if i have time..
  • Default Open Folder

    9
    0 Votes
    9 Posts
    2k Views
    Dan RathbunD
    This was written in 2012 for SketchUp v8 when Windows 7 was current. Please do not PM me in 2019 and tell me it does not work for current SketchUp versions. Things change as OSes and applications are revised. Hold up a min! I Found a workaround to force SketchUp to use Windows MRU paths... ...[ drumroll ]... 1) Open a File Explorer and create a "dummy" folder "C:/dummy" 2) Open SketchUp.. goto "Preferences" > "Files" panel. Click the browse Folder button and choose this empty folder. Your Models path should say: "**C:\dummy**" 3) Close SketchUp. 4) Delete the "C:\dummy" folder. 5) Restart SketchUp. It will now use MS Windows saved MRU paths for "*.skp" filetype. .. No custom button or menuitem needed. This was written in 2012 for SketchUp v8 when Windows 7 was current. Please do not PM me in 2019 and tell me it does not work for current SketchUp versions. Things change as OSes and applications are revised.
  • How to require the "iconv.boundle" in the Mac OSX

    2
    0 Votes
    2 Posts
    166 Views
    thomthomT
    Most probable it's because it's not compiled to work with SketchUp Ruby. (Is it even a match for SketchUp's version? 1.8.x?) One possible cause for the crash could be that it is not compiled into a flat namespace. See my SketchUp Ruby C Extension Hello World project for notes on compiling for SketchUp Ruby: https://bitbucket.org/thomthom/sketchup-ruby-c-extension/src/5c9eb31c541b/src/Example%20-%20Hello%20World/extconf.rb @unknownuser said: <span class="syntaxdefault">  </span><span class="syntaxcomment"># Must be compiled into flat namespace. Otherwise SketchUp Bugsplats.<br /></span><span class="syntaxdefault">  CONFIG</span><span class="syntaxkeyword">[</span><span class="syntaxstring">'LDSHARED'</span><span class="syntaxkeyword">]</span><span class="syntaxdefault"> </span><span class="syntaxkeyword">=</span><span class="syntaxdefault"> </span><span class="syntaxstring">'cc -dynamic -bundle -undefined suppress -flat_namespace'</span><span class="syntaxdefault"> </span>
  • Question about new plugin

    4
    0 Votes
    4 Posts
    199 Views
    jeff hammondJ
    maybe fredoscale stretch? (but yeah, more info required )
  • Using View.draw_text method - a bug?

    3
    0 Votes
    3 Posts
    479 Views
    J
    Many thanks. For some non-obvious reason, I didn't even SEE the screen_coords method of the View object. I was looking for an equivalent method or property of the point itself. Gratefully.... John MCC
  • 2D Multi_filet?

    5
    0 Votes
    5 Posts
    342 Views
    pilouP
    Interesting posts!
  • Drop plugin?

    3
    0 Votes
    3 Posts
    381 Views
    pilouP
    Or this post ? else the Thomthom Ray tracer / Components by Bounds above works very fine but without image from you I have some difficulties to see what you want Components or groups must be horizontal above the object before the drop ! [image: KaRl_bounds.jpg]
  • SketchUp Plugins and Windows 7 64-bit

    10
    0 Votes
    10 Posts
    3k Views
    T
    problem was nvidia nview desktop manager
  • Plugin Extrude Edges by Face

    2
    0 Votes
    2 Posts
    260 Views
    pilouP
    Tricky uses of the Tig's plug!
  • RBZ as allowed extension

    72
    0 Votes
    72 Posts
    6k Views
    thomthomT
    @juantxo said: (I used random because a friend told me I can use it to solve problems of browser cache but actually I don't need it so I erase it.) If caching is an issue then it's better to set the correct HTTP headers than adding random characters to the URL. Here is an extract of a PHP script I use to serve plugins in either zip or rbz format: <span class="syntaxdefault"><br /></span><span class="syntaxcomment">// fix for IE catching or PHP bug issue<br /></span><span class="syntaxdefault">header</span><span class="syntaxkeyword">(</span><span class="syntaxstring">"Pragma; public"</span><span class="syntaxkeyword">);<br /></span><span class="syntaxdefault">header</span><span class="syntaxkeyword">(</span><span class="syntaxstring">"Expires; 0"</span><span class="syntaxkeyword">);</span><span class="syntaxdefault"> </span><span class="syntaxcomment">// set expiration time<br /></span><span class="syntaxdefault">header</span><span class="syntaxkeyword">(</span><span class="syntaxstring">"Cache-Control; must-revalidate, post-check=0, pre-check=0"</span><span class="syntaxkeyword">);<br /></span><span class="syntaxcomment">// browser must download file from server instead of cache<br /><br /></span><span class="syntaxdefault">header</span><span class="syntaxkeyword">(</span><span class="syntaxstring">"Cache-Control; private"</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">false</span><span class="syntaxkeyword">);</span><span class="syntaxdefault"> </span><span class="syntaxcomment">// required for certain browsers<br /><br />// force download dialog<br /></span><span class="syntaxdefault">header</span><span class="syntaxkeyword">(</span><span class="syntaxstring">"Content-Type; application/force-download"</span><span class="syntaxkeyword">);<br /></span><span class="syntaxdefault">header</span><span class="syntaxkeyword">(</span><span class="syntaxstring">"Content-Type; application/octet-stream"</span><span class="syntaxkeyword">);<br /></span><span class="syntaxdefault">header</span><span class="syntaxkeyword">(</span><span class="syntaxstring">"Content-Type; application/download"</span><span class="syntaxkeyword">);<br /><br /></span><span class="syntaxcomment">// use the Content-Disposition header to supply a recommended filename and<br />// force the browser to display the save dialog.<br /></span><span class="syntaxdefault">header</span><span class="syntaxkeyword">(</span><span class="syntaxstring">"Content-Disposition; attachment; filename=\"$requested_filename\";"</span><span class="syntaxdefault"> </span><span class="syntaxkeyword">);<br /><br /></span><span class="syntaxcomment">/*<br />   The Content-transfer-encoding header should be binary, since the file will be read<br />   directly from the disk and the raw bytes passed to the downloading computer.<br />   The Content-length header is useful to set for downloads. The browser will be able to<br />   show a progress meter as a file downloads. The content-lenght can be determines by<br />   filesize function returns the size of a file.<br />*/<br /></span><span class="syntaxdefault">header</span><span class="syntaxkeyword">(</span><span class="syntaxstring">"Content-Transfer-Encoding; binary"</span><span class="syntaxkeyword">);<br /></span><span class="syntaxdefault">header</span><span class="syntaxkeyword">(</span><span class="syntaxstring">"Content-Length; "</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">filesize</span><span class="syntaxkeyword">(</span><span class="syntaxdefault">$real_file</span><span class="syntaxkeyword">));<br /></span><span class="syntaxdefault">readfile</span><span class="syntaxkeyword">(</span><span class="syntaxdefault">$real_file</span><span class="syntaxkeyword">);<br /></span><span class="syntaxdefault"> </span>
  • Plugin Explode model tool

    4
    0 Votes
    4 Posts
    495 Views
    ipsketchpiI
    I use defoult SU Explode- right click on object. Do not need any plug in to make explode. [image: 46Ig_RC.PNG]

Advertisement