1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Alibre Script - script requests

Discussion in 'Alibre Script' started by Max, Oct 9, 2018.

  1. NateLiqGrav

    NateLiqGrav Alibre Super User

    Sorry - correct me if I'm wrong, but currently (copying sketches) with AlibreScript all sketch dimensions and constraints are lost.
     
    Last edited: May 1, 2019
  2. ajayre

    ajayre Alibre Super User

    That is correct.

    Andy
     
  3. Mika

    Mika Senior Member

    Structural frame members and weld beads.
     
    NateLiqGrav likes this.
  4. NateLiqGrav

    NateLiqGrav Alibre Super User

    ... Under Construction ...
     
    cadtec and Mika like this.
  5. Mika

    Mika Senior Member

    Super. This nailed my decision to upgrade my atom to expert. Thanks.
     
  6. NateLiqGrav

    NateLiqGrav Alibre Super User

    It won't be Solidworks level but it will be vastly superior to doing everything one step at a time.
     
  7. MainJet

    MainJet Member

    A script that changes a picked side to have an angle.
    Ie when 3D printing for casting, you usually have somewhere between 3 and 7 degree angle on the mold side to allow the cast to release from the mold.
    ++ for standard threads to be applied easily. Again for 3D printing
     
    TimoCAD likes this.
  8. MainJet

    MainJet Member

    And a way to import STL 3D print files.
    Properly not really a script but a function within Alibre, but this is really needed
     
  9. idslk

    idslk Alibre Super User

    Hello MainJet,
    Have you tried this:
    upload_2019-9-5_8-44-57.png

    https://www.alibreforum.com/forum/i...not-exported-with-stl-file.21126/#post-136084
    If you don't get a Helix-Script-function added to the skript API...
    I have tried this: https://www.alibreforum.com/forum/index.php?threads/thread-loft-test.20636/
    no real response -> so been not motivated to make a better version...

    Regards
    Stefan
     
  10. MainJet

    MainJet Member

    Stefan
    No to both.
    Will try both when I get home in a few days, as no Alibre on my laptop and let you know
    Thanks
     
  11. RocketNut

    RocketNut Alibre Super User

    I know this has been mentioned before, Does anyone have a script that draws up standard metric bolts and nuts?
     
  12. idslk

    idslk Alibre Super User

    Hello RocketNut,
    with or without thread?
    Without thread oldfox has done 2 skripts.
    With thread you should read post #49 above
    I also tried thread to a sweep along an calculated "bspline helix" but the "triangle" profile gets twisted along the way up the manual helix...
    upload_2019-9-5_16-26-22.png upload_2019-9-5_16-25-52.png

    I also made an attempt with a loftet thread:
    upload_2019-9-5_16-28-31.png

    is geometricaly ok, but is awfully slow in my perception...

    Ask Andy(or Max) for the Helix function in Alibrescript, then a skript will be no real problem...

    Regards
    Stefan
     
  13. oldfox

    oldfox Alibre Super User

    Nut, here are the scripts for metric screws and nuts, M2 thru M20.
    If you have trouble, let me know. Otherwise just enjoy.

    EDIT: Please do not use these scripts if you don't understand how to change the "Save" options.
    See post #58 in this thread.
     

    Attached Files:

    Last edited: Oct 31, 2019
    RocketNut likes this.
  14. ChadBays

    ChadBays Member

    Got two requests:
    1) I'd like to see a script which does an automatic batch-export (or conversion) of all Bill-of-Materials files within a file folder (and the option to find & export/convert those in all subdirectories, as well).
    2) Batch-export of all Assembly files to a universal format (STEP214, etc).
     
  15. RocketNut

    RocketNut Alibre Super User

    Does anyone have a script that draws a Rack and Pinion set? That draws 2 separate drawings, 1 for the gear and 1 for the rack.

    Here is a picture (I found on the web) of what I am trying to model. I really like the helx gear becuase there will be very little slop/backlash:


    Rack-and-Pinion-System.jpg
     
    Last edited: Oct 31, 2019
  16. RocketNut

    RocketNut Alibre Super User

    Sorry for the extreme delay in my response, I just notice your replay today.

    When I tried to run the script I got an error:::

    wizo error.jpg
     
  17. oldfox

    oldfox Alibre Super User

    I see what the problem is. I'll fix it and explain it so you can use it. Has to do with the "Save" path.
     
    Last edited: Oct 31, 2019
  18. oldfox

    oldfox Alibre Super User

    Here's the corrected copy . Read the instructions, especially lines 34-36. You need to change the path of "output folder" to where you want
    to save it on your computer. My bad was that the lines referred to in those lines were wrong. It's been changed.

    To comment out a line in Python, use the pound (#) sign. (Line is no longer an instruction but a text "comment")
    Delete it to make that line active. (uncommented)

    If you see any more OOPS's on my part, let me know.

    I also found the same OOPS in the Metric Series Nuts script. It's been corrected. The below scripts should be used.
    Not the scripts in original post to RocketNut.
     

    Attached Files:

    Last edited: Oct 31, 2019
    RocketNut likes this.
  19. RocketNut

    RocketNut Alibre Super User

    It works now. Thanks ;)

    Just a very minor blip tho. When entering the bolt size (like M10) you click on the apply icon, nothing happens! You have click on the cancel icon to continue entering the rest of the bolt data. This is really no big deal, just a heads up thats all. :):)

    Has anyone written a script to do database operations? It would nice to store the bolts and other fasteners in a database file. So when the fasteners are pulled for an assembly, the operator just calls up the assembly name an the fasteners for that assembly will form a BOM.

    The way I see the Data Format as::
    Field 1 > The fastener drawing file name (fastener name)
    Field 2 > Assembly Name
    Field 3 > Assembly Part Name
    Field 4 > Quantity Need

    There are possibly more fields that may be needed.
     
    Last edited: Nov 1, 2019
  20. oldfox

    oldfox Alibre Super User

    So glad it works for you. So what do you think of the produced screws as "eye candy" only? The script could also be upgraded to give
    engineering results. (A lot more work) I don't engineer things, just go the hardware aisle in my favorite BigBox store and get what I need.

    I think you mean Close.

    That's how it works. That function is something I use (pseudo-plagiarism) from IDSLK (Stefan). It is a Windows thing which I haven't taken the time to research it to see just how it works and what other options of that function may be.

    If you just hit Close first, it will continue, but it won't have created the part. (i.e. the screw body) If you ever hit Cancel, it cancels out the script.

    Another Windows function uses "OK". That works all by itself. No need for a second click. I'm still learning.:rolleyes:

    As for the Database Script... I haven't used WizoGrid yet so I don't know how that works. You might look into it and see if it would produce
    what you are needing. I never need to do BOMs either. I generally just use MOB. (My Own Brain :D)
     

Share This Page