⚠️ Update | Sketchucation Tools 5.0.8 released with licensing improvements and bugfixes Download

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
  • InputPoint for Inference

    9
    0 Szavazatok
    9 Hozzászólások
    815 Megtekintések
    A
    @TIG: Mirror3_1 doesn't appear to accept input from the VCB. That's what is causing the problem. Just doing it by mouse click is easy because all the clicks generate IP's. But having to generate pt2 programatically allows only the creation of a Point3d, because InputPoint has no method for setting it's 3D coordinate.
  • (REQ) Model Scrambler, sort of

    4
    0 Szavazatok
    4 Hozzászólások
    482 Megtekintések
    takesh hT
    And of course, there is TIG's meticulous MatrixProximity (http://www.pushpullbar.com/forums/ruby-scripts/9467-visual-index-ruby-scripts.html#post131588) along with Chris's wonderful ruby.
  • Add_group() method bug ? Need help !

    5
    0 Szavazatok
    5 Hozzászólások
    581 Megtekintések
    Didier BurD
    Thanks all for yur help. I have encountered very weird things with this 'bug', like: create a new empty group, put a face in it, pushpull the face, and list all the entities of the group. I got several faces and a component instance . @unknownuser said: I think the secret is to make the empty new group AND put something into its entities asap. Yes, I've tried that too, it works most of the time but not 100% Pfff, I'll let you know if I find a way to eradicate this bug. Thank you,
  • Anyone know what's wrong with the linetool example?

    3
    0 Szavazatok
    3 Hozzászólások
    374 Megtekintések
    I
    Thanks, Whaat. That did the trick. So the reason behind this is that SU was only invalidating a default area of the screen around the first point because I didn't implement getExtents?
  • Script for Report on Name and Amount of Components

    6
    0 Szavazatok
    6 Hozzászólások
    583 Megtekintések
    TIGT
    @unknownuser said: already had v1.6. works prety good thanks That v1.6 was ComponentReporter+ this is ComponentReporter++ (v1.1) that does slightly different things... It puts the reports in the same folder as the model... You could hack a UI.openpanel() to get the folder from a picked file in it ? I've tried to write it so it's reasonably self-evident - try small tweaks to see if you can do what you want... .
  • Slice and erase

    9
    0 Szavazatok
    9 Hozzászólások
    1k Megtekintések
    O
    thank you Jeff, and thank you all that tried to help me, and so I'll wait for a new ruby angel...
  • A plug-in to draw baseboard or wall base?

    2
    0 Szavazatok
    2 Hozzászólások
    941 Megtekintések
    david_hD
    You need WHAAT's Amazing, Collossal Totally Stupendous Profile Builder!!! check it out here
  • Clear PMPI

    4
    0 Szavazatok
    4 Hozzászólások
    554 Megtekintések
    kenK
    Thanks Remus and Xrok1. Ken
  • Keep a tool running in the background?

    13
    0 Szavazatok
    13 Hozzászólások
    1k Megtekintések
    fredo6F
    no clue. Never tried actually, but I guess it should help. So you should try it both ways to see what happens. I use myself another technique to cascade tools, because I need more control. Fredo
  • [Code] Tool ID Constants - Rev. 2

    16
    0 Szavazatok
    16 Hozzászólások
    4k Megtekintések
    thomthomT
    When I tried tested some of the tool IDs and CMD_ constants they where identical on Mac and PC.
  • OnActiveToolChanged - What RubyTool is it?

    9
    0 Szavazatok
    9 Hozzászólások
    824 Megtekintések
    thomthomT
    @matt666 said: You can identify active tool by its ID. Each tool has its own ID. You can't know its name. Try a look here, I played with tool IDs... But is the id the same across sessions and computers? From my other thread on IDs; the ID of even the native tools might not be consistent. So I have4 mu doubts that ruby tools will have consistent IDs
  • Observers !

    20
    0 Szavazatok
    20 Hozzászólások
    4k Megtekintések
    H
    @unknownuser said: At least if you have AutoLisp experience exporting the xdata in a usable format for Ruby would be relatively straightforward... Thanks for your thoughts about extending such interface. I had thought about this for myself, but I have to make steps one after another. So first I want to get the structure in place again and then I can thought about adding/transporting more Info. The AutoLisp experience is not the problem, since I am a nearly full-time autolisp-developer and I am really used to do anything with ExtendedEntityData. We have logical propertys and geometric propertys stored in EED and even small chunks of Lisp-code stored there, which gets fired under certain events. So I can imagine I could do similar things in the future with ruby.
  • Fixing Camera Aspect Ratio

    9
    0 Szavazatok
    9 Hozzászólások
    907 Megtekintések
    Dave RD
    I think I got them with Skindigo.
  • Quirky draw method activity

    10
    0 Szavazatok
    10 Hozzászólások
    811 Megtekintések
    Chris FullmerC
    EDIT: Issue resolved in the 2 posts below this. Skip this post unless you're really interested in boring yourself to death. OK, its morning and I'm back! @line_positions is an array of points on the x axis. Each point acts as the base starting point for each vertical grid line. So first the method checks to see if @line_positions has been populated yet. If it has, then it takes each value from that array and calls it p1 and then adds an amount to the y of 100 and calls that p1, then draws the line from p1 (the base) to p2, the top of the vertical line. The 5.times do portion is drawing the horizontal lines by taking the first and last points on the horizontal boundaries. Then adds 20 to each and draws a line. Does that 5 times, and those are the horizontal grid lines. To explain better, @line_positions is defined once when the user hits enter. Its values do not change at all normally. To test this, I added a puts @line_positions[0] statement in my onKeyUp method. So everytime I press a key, it puts the first @line_positions position. And sure enough, when I disable the draw method, that value stays the same. But once I enable the draw method, that value changes everytime the screen is redrawn. So it appears that somehow something that I have in the draw method is changing the @line_positions, not just getting values from it. More specifically, when I comment out the 5.times portion (which is the part that draws the horizontal grids), then the method works as expected and does not change my @line_positions values. So I think it is something with how I have that written, but I can't see anything in there that should affect the @line_positions values. def draw( view ) if !@line_positions.empty? @line_positions.each do |e| p1 = e p2 = p1.clone p2[1] += 100 view.draw GL_LINES, p1, p2 end np1 = @line_positions[0] np2 = @line_positions.last puts "from draw " + @line_positions[0].y.to_f.to_s #5.times do # np1[1] = np1[1] + 20 # np2[1] = np2[1] + 20 # view.draw GL_LINES, np1, np2 #end end end All I can think is that is it possible that it thinks that since np1 points to @line_positions[0] when I change np1 it thinks I want the original @line_positions[0] value changed too and somehow sends the change back to that array? I'm a bit stumped with this one.... Chris
  • Store a hash as an value in an attribute dictionary

    6
    0 Szavazatok
    6 Hozzászólások
    1k Megtekintések
    T
    @pout said: Todd, when i store the hash it does not give me an error. But when i return it it is always nil My point exactly! @pout said: If it was stored wouldn't it return me an error telling that it can not be displayed insteda of returning nil? In a perfect world, yes.
  • Window Proportions Question

    18
    0 Szavazatok
    18 Hozzászólások
    2k Megtekintések
    M
    +1 for this cool program!
  • [code] ComponentDefinition-delete

    9
    0 Szavazatok
    9 Hozzászólások
    3k Megtekintések
    TIGT
    AlexM has found the basis of doing this without a new method at all... model.start_operation("Delete Definition") definition.entities.erase_entities(definition.entities.to_a) model.commit_operation I'm removing my 'code' and rewriting ComponentInstance-add_entites.rb to suit...
  • All-new API with full access to all internal functions?

    6
    0 Szavazatok
    6 Hozzászólások
    622 Megtekintések
    P
    i'VE BEEN PUNKED...
  • Position of a point

    4
    0 Szavazatok
    4 Hozzászólások
    385 Megtekintések
    Chris FullmerC
    Excellent, glad it helped (and worked). I also just edited a minor typo in the example, but I'm sure you figured it out even with the typo, Chris
  • Need an example to munipulate a dynamic component with ruby

    9
    0 Szavazatok
    9 Hozzászólások
    2k Megtekintések
    scottliningerS
    When you saved redsang.skp, did you File > Save As, or did you Right click > Save as? The File > Save As method is probably what happened. This isn't the same as saving sang as a standalone SKP. Try right clicking on red sang and "Save as" and then try the import. See if that works.

Advertisement