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

pattern features with variable geometry

Discussion in 'Using Alibre Design' started by Jholt, Jun 25, 2020.

  1. Jholt

    Jholt Member

    I am making a test part to check clearances. It represents a series of rollers that gradually increase in length.
    I have tried to model this by making reference planes and axis at the angle I need, and building the sketch for the prototype roller using constraints to the reference axis. However when i pattern the feature, all the rollers are the same size.

    If I edit the sketch, I can drag the roller along the Y axis and it re-sizes appropriately. I have included the part file and the global parameters file that drives it.

    Does anyone know how to get the patterned features to increase in length?

    Thanks,
    Jenn
     

    Attached Files:

  2. Lew_Merrick

    Lew_Merrick Alibre Super User

    Jenn -- Assuming that the rollers.AD_PRT is based on variables defined by Treadmill.AD_GLP making a Package of the Part file is the better way to "transport: it. -- Lew
     
  3. Jholt

    Jholt Member

    I am really new to Alibre, sorry. I'll look up how to do that.

    Jenn
     
  4. bigseb

    bigseb Alibre Super User

    To expand on what Lew says: If you go to File --> Package --> Create Alibre will save your design as a package that will contain all required files and maintain the links to one another. In your case the part file and the parameters file will maintain association.
     
  5. Lew_Merrick

    Lew_Merrick Alibre Super User

    Hi Jenn -- Assuming that you have set Equation Editor variables to be defined by GLP variables, use the File->Package->Create command set yo create an "AD_PKG" file from your Part (and the Package will automagically include the GLP file). -- Lew
     
  6. Jholt

    Jholt Member

    Took me a while to find the free time, but here is the package.
     

    Attached Files:

  7. Jholt

    Jholt Member

    the programmer in me though up another solution. If there was a macro or special variable that evaluated to "pattern instance number" that could be used in an equation driving a dimension in a sketch, this could be used to get what I want. I can calculate the lengths I need for each instance fairly easily, but I don't know how I would make them vary with pattern instance number.
     
  8. DavidJ

    DavidJ Alibre Super User Staff Member

    Try looking at configurations - each configuration can have different values driving the sketch. In a pattern within an assembly, you can change the configuration of each part instance in the pattern.
     
  9. simonb65

    simonb65 Alibre Super User

    I don't think the global parameters or equation editor can index individual (and dynamic) instances of pattern items, but it's doable using Alibre Scripting, if your into programming, as you can reference each instance, iterate through each instance an and set the extrusion lengths for each roller.
     
  10. bigseb

    bigseb Alibre Super User

    I doubt you can do this using EEs/GPs. Possibly a script can do it. I don't use scripts but possibly someone else can chip in.
     
  11. Lew_Merrick

    Lew_Merrick Alibre Super User

    And attached is the way I would create it (except that I would have created the Roller as a SubAssembly). -- Lew
     

    Attached Files:

  12. simonb65

    simonb65 Alibre Super User

    Lew, I think her original requirement was for the rollers to progressively increase their length, so a simple feature pattern is sadly not suffice, in this instance!
     
  13. idslk

    idslk Alibre Super User

    Hello Jenn,

    do you need the rolls as single parts of different length in an assembly or do you need one part with the rolls as "bodies" in one part?

    Regards
    Stefan
     
  14. Jholt

    Jholt Member

    Stefan,
    Either would work for my application of clearance checking. For manufacture, each roller will be cut to length from existing tube, so all that is needed is a list of lengths, which is easy to produce.

    If they are implemented as multiple parts in an assembly, I would need some way of making the number of rollers in the assembly dynamic as well. I am currently looking into scripting, since I have a lot of experience with python. Does anyone know where to find detailed API documentation? So far all I have been able to find is the exercise manual.

    I have also seen a couple of posts mentioning a C#/C++ API. Is this used to write add-ons? maybe I could write an add-on to do "dimension -based" patterning. basically, duplicate a feature in a loop with the driving dimensions in each loop set by some function of instance number.
     
    Last edited: Jul 4, 2020 at 10:06 AM
  15. DavidJ

    DavidJ Alibre Super User Staff Member

    Script Ribbon has links to the Script Reference manual (a CHM file), and to example scripts on the Alibre support web site.

    For details of addons - see the Add-on Development Forum (at bottom of Forum Index page).
     

Share This Page