🚨 Skimp | 25% Off until March 30 Buy Now

Alkategóriák

  • No decscription available

    20 Témakörök
    462 Hozzászólások
    HornOxxH
    @pilou said: More appetizing in chocolate! Eggs are good as well - but only very fragile when falling down in SketchyPhysics
  • [undoc] Camera info window

    17
    0 Szavazatok
    17 Hozzászólások
    11k Megtekintések
    E
    An oldish thread but I'll poke in and let you know about 2 plugins that can easily access camera dialog box: S4U Camera Clipping - https://sketchucation.com/pluginstore?pln=s4u_Clipping_Camera - a rather new plugin Legacy ThomThom's Camera Tools - https://sketchucation.com/forums/viewtopic.php?f=323&t=43290. You access it via Camera > Advanced (and it has nothing to do with ACT). Have fun and never ever struggle with clipping!
  • Sketchup::model#import : Force "Use Image As" Image

    2
    0 Szavazatok
    2 Hozzászólások
    5k Megtekintések
    Dan RathbunD
    @alexms said: But, when I do like that, I'm depending on the last choice of Use image as the user's made in import dialog. You are correct there are no importer options for image file types exposed in the Ruby API. If you are still using SU2017 Make, then there is no way to change what the user's last setting was, whilst SketchUp is running. It is saved in the registry, and although SketchUp will immediately update the user's setting (if it changes,) SketchUp core will still use it's internal memory of the setting instead of checking the registry. This means if you attempt to tweak the registry whilst SketchUp is open, it will have no effect. @alexms said: Or should I make a full tool and use add_image ? This is likely your only option. I did post an example of dragging objects around within a tool at the SketchUp forums ... See links in this post: https://forums.sketchup.com/t/how-to-realize-the-drag-effect/125758/4 Once the image is placed, you might try to push it's reference into the selection set alone and activate the ScaleTool. Sketchup.send_action("selectScaleTool:")
  • SketchUp 7.0 ?

    9
    0 Szavazatok
    9 Hozzászólások
    7k Megtekintések
    I
    @masp said: I found 7.1.6859 (free) for mac (based on Aerilius' post): http://dl.google.com/sketchup/gsu7/FM-2-1-6859-EN.dmg (what a relief: I've been trying to find it for ages!) pro would be similarly: http://dl.google.com/sketchup/gsu7/PM-2-1-6859-EN.dmg Mike Hi! I know it´s been quite posts while since these posts, but miraculously those links are still working. Thanks! I´m trying to download the two older Pro versions for Mac (7.0.8656) and (7.0.10246) but couldn´t find them with this method so far. I tried a lot of alternatives but they didn´t work. Did anyone have any luck? Thanks
  • Individually export all components to .dwg

    4
    0 Szavazatok
    4 Hozzászólások
    5k Megtekintések
    TIGT
    So if that is the extent of the options, then 'selection' is not there ? So look at my alternative idea of deleting 'everything' but the chosen component instance, then aborting...
  • Looking for plugin/code to connect lines

    5
    0 Szavazatok
    5 Hozzászólások
    6k Megtekintések
    C
    Thanks Fredo. I think loft is what I was looking for. I just couldn't think of the name so I could search properly. No, nothing bad happened. I just got involved in a lot of other projects. I am getting back into SU now because of one of my newest projects, 3d printing.
  • Webdialogs and Javascript void

    11
    0 Szavazatok
    11 Hozzászólások
    9k Megtekintések
    Dan RathbunD
    @martinrinehart said: Does void differ from return null? YES. (in the following, violet denotes javascript.) (1) return type: undefined and null are separate return types. ___http://msdn.microsoft.com/en-us/library/7wkd9z69(VS.85).aspx void(whatever) always returns undefined* return( null ) obviously will return null (in this case.)A variable can have a null value, but not an undefined value, because undefined refers to the object, not it's value. You check undefined using quotes: %(#BF00BF)[if(typeof(var)=="undefined") //do something] You check null without quotes: %(#BF00BF)[if(var==null) //do something] The difference is subtle. Basically, if a symbol references a variable that has not been declared, or has been declared but never had a value assigned, then "undefined" is returned. If a symbol references a variable that has had any value (including null,) assigned to it, it will not return "undefined". But be careful! There's a gotcha (because of backward compatibility.) %(#BF00BF)[(object.prop==null)] will return true if the property has the value null or if the property does not exist! You can use in to be more specific: %(#BF00BF)[if ("prop" in object)] will return true if the property does exist. (2) Both are evaluation functions: return( expression ) [called a Statement] Always returns the result (of whatever type,) that expression evaluates to. http://msdn.microsoft.com/en-us/library/22a685h9(VS.85).aspx void( expression ) [called an Operator] Evaluates expression then always returns "undefined" (regardless of the result.) The expression is required or an argument error would be raised. The expression 0 is traditional, and comes from C language (where null and zero were interchangable; but in javascript, 0 is a number type, null is it's own type.) http://msdn.microsoft.com/en-us/library/e17c7cbe(VS.85).aspx The internal code might be represented as: %(#BF00BF)[function void( *expression* ) {] %(#F0F0F0)[___]%(#BF00BF)[eval( *expression* );] %(#F0F0F0)[___]%(#BF00BF)[return( undefined ); }] ___
  • Set_attribute problem

    3
    0 Szavazatok
    3 Hozzászólások
    6k Megtekintések
    PixeroP
    ~~Then I get: {@myid} I'm doing it inside a: sel.each {|e| puts"{@myid}"; e.definition.set_attribute("A", "Id", @myid) } ~~ Edit: Doh! It was all a small typo with a D instead of a d. Works as it should now.
  • Extension Translators

    3
    0 Szavazatok
    3 Hozzászólások
    8k Megtekintések
    thomthomT
    @fredo6 said: @thomthom said: Where do your source your translators? Do you mean the tool or people? People.
  • Resolve [Ruby help] Script for create window sills

    3
    0 Szavazatok
    3 Hozzászólások
    8k Megtekintések
    B
    hello , Thank you SDMITCH for help cordially Benj
  • Transform to local axis question

    6
    0 Szavazatok
    6 Hozzászólások
    6k Megtekintések
    fredo6F
    If the vector is given in world coordinates, then you need the total transformation from the top model to the component. This is not something you can derive from the component itself. Usually it comes from a picking process in an interactive tool or the knowledge of the chain of containers from the top model down to the component
  • Always face camera with View Observer - Would this work?

    5
    0 Szavazatok
    5 Hozzászólások
    11k Megtekintések
    Dan RathbunD
    A major drawback is that you'd be modifying the model entities with every change of the camera. Currently changing the camera position or even the active scene does not set the modified? flag.
  • Assigning DC attributes to nested components & groups

    2
    0 Szavazatok
    2 Hozzászólások
    6k Megtekintések
    Dan RathbunD
    DC attributes are set directly upon nested DC group instances. BUT, ... for component instances they are defined upon the definition along with a default value. If there are to be more than 1 instance of the DC and they differ, then the differing values are then set on the instance. (However the "smarts" of each DC attribute, ie, access, formula, label are only in the definition's DC dictionary.) If changing an instance's attribute(s) causes the definition's entities collection to change, then the DC engine will unique-ify the DC, by cloning the definition and making the instance the first instance of this new DC definition. (An example is when changing the DC so that more or less copies of a sub-component, like a stile are generated. This changes the DC definition's entities collection, so if there are more than 1 instance, the one needing a different number of stiles would need a new definition.)
  • Download RBZ file

    30
    0 Szavazatok
    30 Hozzászólások
    42k Megtekintések
    Dave RD
    What plugins did you download? Plugins won't download as .skp files. That would indicate you've downloaded SketchUp models/components.
  • Angle_between issue

    2
    0 Szavazatok
    2 Hozzászólások
    7k Megtekintések
    fredo6F
    @rinse04 said: I am trying to differentiate the difference between an internal corner and an external corner to get two different angles as shown in the below image. angle_between() returns the angle between 0 and 180 degrees. If you wish the oriented angle, you need to set a reference of some sort to distinguish between concave and convex angles. Look at your model, and make abstraction of the walls, keeping only the vectors, and you'll see that none can make a difference between inside and outside. Usually, if you have vectors v1 and v2, say in the horizontal plane, then (v1 * v2) % Z_AXIS is either positive or negative. Now, up to you, based on conventions to consider this is an internal or external angle. Fredo
  • Connecting touching lines or points...

    10
    0 Szavazatok
    10 Hozzászólások
    11k Megtekintések
    mariochaM
    Yea TT Select Curve is great. But I have come across a modeling request where I need it to continue selecting past an intersection. similar to a ring select. Searching .... [image: kKV2_ringselecting.png]
  • Component Axes

    3
    0 Szavazatok
    3 Hozzászólások
    8k Megtekintések
    H
    Boom! That worked! Thank you sir! --J
  • Using Shoes (ruby UI) in sketchup plugin

    2
    0 Szavazatok
    2 Hozzászólások
    8k Megtekintések
    Dan RathbunD
    @sminky said: Hi, Is there any way to use Shoes to make UI for a sketchup plugin? No. sorry. A special fork and compilation of the Shoes code would be required, afaik. I believe that no one has attempted it.
  • How do I check if component name starts with a certain word?

    4
    0 Szavazatok
    4 Hozzászólások
    8k Megtekintések
    Dan RathbunD
    . Ruby 2.x+ (SketchUp 2014+) [String#start_with?](https://ruby-doc.org/core-2.0.0/String.html#method-i-start_with-3F) ie ... if e.definition.name.start_with?("MyComp") ... or ... if e.definition.name.start_with?("Door","Window")
  • Component definition has TWO names ???

    5
    0 Szavazatok
    5 Hozzászólások
    7k Megtekintések
    Dan RathbunD
    @didier bur said: Sketchup.active_model.name is NOT (always) the same as the SKP file name... Sketchup.active_model.name and Sketchup.active_model.description are used to set the name and description when you will be using the entire file as a component. Secondly, these 2 fields are used to set the name and description that will be displayed when using the file as a template. So it seems that someone who saved the file, renamed it using francais and resaved it under the old english filename. There are cases when the filename (minus extension) are used to set the component name. Importing an image is one case.
  • Problems with ShadowTime/Time conversion

    7
    0 Szavazatok
    7 Hozzászólások
    11k Megtekintések
    T
    Hi Careca, Thanks for the extension - looked great - but I'm having trouble with getting it off "summer" in the drop down so it will work with "winter" instead and with a bit different times. Also, how do we output the nice shaded shadows combination, let's say from 9AM thru 4PM on Dec 21, 2019 for our customer? Maybe I've installed it incorrectly? No instructions have shown up either. I'm on a Windows 10 with SU 18. Thanks ! tab1

Advertisement