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. Max

    Max Administrator Staff Member

    Hey everyone, we're gearing up to make some cool stuff for you. Help us out!

    This is a place to post requests for full scripts you would like to see in Alibre Design.
    - e.g. "I want a script that exports every component in an assembly as a STL file"

    This is not a place to post requests for functionality improvements to Alibre Script itself.
    - e.g. "I want Alibre Script to add a function to support the creation of elipses in a 2D drawing"

    When you suggest a script, please use the following format and think through some of the details:

    Name: Assembly component exporter
    What it does: The user opens an assembly and the script finds each component and exports it to the selected format.
    Things it should consider:
    1. It should have an option to treat patterns and duplicate insertions as a single exported file or as multiple exported files (wheel.ad_prt versus wheel1, wheel2, wheel3, wheel4).
    2. It should have an option to reset the origin of the exported file at the component's center of mass prior to export.
    3. It should have an option to place each component in its own folder, in the same folder, or in a folder structure similar to the assembly structure.
    4. It should allow picking more than one file type so for example wheel.ad_prt is exported to STEP, IGES, and STL simultaneously.
    VoltsAndBolts likes this.
  2. MikeHenry

    MikeHenry Alibre Super User

    I don't use scripts in AD right now so maybe this is way off base, but I'd like a utility that would take a collection of 4 wall, and an optional top or bottom and insert tabs and slots in any adjacent edges that would create box finger joints in each piece. Something like this:


    If this is sort of thing is what you had in mind as a request, I can go into more details.

    On edit

    I'll try to expound on this in the next day or two with further edits to this post.

    On further edit

    Maybe this PDF will explain the feature I'm asking about. As some of you may know it is from a different CAD program and it saves me a ton of time on these sorts of simple projects.

    Attached Files:

    Last edited: Oct 11, 2018
    RwSkinner likes this.
  3. Max

    Max Administrator Staff Member

    Yes, please elaborate (pls do so in the original post by Editing it). Also, consider whether you need to start with 4 walls, or if you could input the dimensions of the overall item and have all the parts generated from scratch by the script. That would perhaps be easier, but would be less generally useful maybe.
  4. domcm

    domcm Senior Member

    In keeping with the woodworking theme, how about scripts for pockets holes and dovetails. See videos below. Sorry this is for another CAD package but these would be great scripts for Alibre.

    Pocket Holes


    RwSkinner likes this.
  5. albie0803

    albie0803 Alibre Super User

    Shaft Keyway Generator
    Have keyway data loaded in the script and have the script ask:
    1. Is key square or rectangular?
    2. Select cylinder to insert key into. Read cylinder diameter to select appropriate key size.
    3. Select plane to build key plane from.
    4. Select edge and specify distance from it.
    5. Enter keyway length and up cut distance if required.

    Keyway profile is created and cut to data depth and radius applied

    upload_2018-10-10_14-54-8.png upload_2018-10-10_14-54-45.png upload_2018-10-10_14-55-20.png upload_2018-10-10_14-58-29.png upload_2018-10-10_14-59-16.png upload_2018-10-10_15-7-22.png
    MKR, VoltsAndBolts, RwSkinner and 3 others like this.
  6. Lew_Merrick

    Lew_Merrick Alibre Super User

    Albie -- You may find the attached image of use.

    Attached Files:

  7. Lew_Merrick

    Lew_Merrick Alibre Super User

    Also, here is an (Excel format) spreadsheet that may make your life somewhat easier.

    Attached Files:

  8. albie0803

    albie0803 Alibre Super User

    I have heaps of charts that I can look up, I just want the process automated. :)
    simonb65 likes this.
  9. MarcusWolschon

    MarcusWolschon Senior Member

    • "I want a script that exports every component in an assembly as a STL file" ;)
    • +1 for pocket holes and dovetails
    • I want a script to add a functional (non-cosmetic) standard-thread onto a hole or shaft.
    • I want a script to add a NEMAxy motor mounting point onto a plane. (with constraints between the geometric items in the sketch, so the entire mount can be moved and rotated based on manually added dimensions and constraints).
    • I want a script to add cosmetic standard bolts as new assembly-parts for 2 selected, matching holes in an assembly. (So I only have to design the holes and not design and constraint every single bolt.)
    • I want a script to offset a projected curve by a given distance along the surface normals of the curve elements. (some math required)
    VoltsAndBolts likes this.
  10. auburncad

    auburncad Member

    Hope to have as a feature one day, but modeled threads, internal and external. Especially handy when 3D printing certain prototypes....:)
    VoltsAndBolts likes this.
  11. Lew_Merrick

    Lew_Merrick Alibre Super User

    Please be aware that few "3D Printers" can hold ±.004 inch and UNF Class 3 threads have a nominal allowance that is .00075 inch per inch of Major Diameter.
  12. MikeHenry

    MikeHenry Alibre Super User

    It's not that difficult to model cosmetic threads, either internal or external, right now.
  13. Rob2beans

    Rob2beans Member

    Name: Divide Spline to Polyline

    What is does: The script opens an input for the number of equal divisions to split a spline up, upon input the spline is split in x number of divisions and each divided space is now connected with a line and the spline is made into a reference line. At the end you are left with a representation of the spline except now it is a polyline.

    Things it should consider:

    1. User able to input number of divisions

    2. If possible, not only have equal spacing for divisions but an option for exponential spacing, linear spacing, spacing to the nth degree visualized with a graph?

    3. Preview of the new polyline
  14. nvanlaar

    nvanlaar Senior Member

    Name: DXF for laser
    What it does: Outputs a DXF or DWG file containing the flatshot of a flat pattern for use in a cnc laser/plasma/waterjet.
    Things it should consider:
    There should be an input for kerf width and perhaps put the original and the kerf outline on different layers. Also, inside/outside cuts need to be taken into consideration. Something like this:
    Last edited: Nov 5, 2018
  15. auburncad

    auburncad Member

    Its not that simple compared to other CAD software, such as Fusion360, that make it very easy to implement as a simple feature tool. I think it would be a plus for Alibre all around. If Alibre is to compete with modern CAD, it needs to inovate as well.
    blaplant1 and simonb65 like this.
  16. ScruffyCAD

    ScruffyCAD New Member

    How about a script to set part or assembly properties (Part Data) with defaults. Like "Created By: Me", or "Creating Application: Alibre Design Expert" etc... :) I see there is an API for doing such a thing (ADExtendedDesignProperty) so is this possible from a script?

    Thank you for listening/reading,

    blaplant1 and TimoCAD like this.
  17. nichterlein

    nichterlein Member

    Is there a script that can help me to create a web page of the model ?
    TimoCAD likes this.
  18. JJHawg

    JJHawg Member

    I would like to be able to generate a script from an existing part...
  19. Max

    Max Administrator Staff Member

    Please elaborate, I'm not sure what this means. Provide as much detail as possible on what the script would do, how it would be used, where it would get its data, the user interface considerations you might want, etc.
  20. JJHawg

    JJHawg Member

    I want to right click in the part explorer just like I would do to create a drawing, but I want a script to be generated that would create that part. I can then edit the script to parameterize selected values to create new parts, but I would not need to write my own script from scratch.

Share This Page