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

    RocketNut Alibre Super User

    Here is a short video of what I am talking about.

    https://db.tt/Ls2MvilXq9

    Again I want to say this is not a bug but just a heads up only.:p:p:p
     
    Last edited: Nov 2, 2019
  2. oldfox

    oldfox Alibre Super User

    Got it. Thanks.
     
  3. idslk

    idslk Alibre Super User

    Hello Chris,

    have you thought about using a menu structure like this ?
    I think it will solve the things @RocketNut was complaining about...;)

    Regards
    Stefan
     
  4. RocketNut

    RocketNut Alibre Super User

    I am not complaining at all, just want to give a heads up ONLY. The script works great an have used it a lot in my projects. I love the script it makes my life a hell of a lot easier.

    A BIG thanks oldfox for the great script.:):):)
     
  5. oldfox

    oldfox Alibre Super User

    Hi Stefan,
    I looked at it in the original post. I just haven't gotten back to it to get it figured out in my mind. I haven't scrapped it. ;)

    And that makes me one happy camper.:D
     
    idslk likes this.
  6. GIOV

    GIOV Senior Member

    Oldfox, Just said that your Metric Series Screws and nuts's scrip run very well. A window ask for every step to do the correct screw & nuts. Thanks very much for your dedication with idslk collaboration.
     
    Last edited: Nov 3, 2019
    oldfox likes this.
  7. cncgear

    cncgear New Member

    Is there a script that will cost analyse all parts in an assembly and show the total cost for that assembly?

    ie..

    Locate part
    Get cost data, assign to total
    Repeat until all parts have been checked
    display total.

    I know I can cost in BOM but it would be good to have something to show in design whilst working on the design.
    Thanks


    Col.
     
  8. idslk

    idslk Alibre Super User

    Hello cncgear,
    does that mean that the script should analyse a self designed part how much all the needed fabrication steps will cost or only adding costs of catalog parts as screws, bearings or something like this?
    Regards
    Stefan
     
  9. cncgear

    cncgear New Member

    Hello Stefan,

    The catalog of parts only, as you write, bearings, screws, bolts, nuts etc.

    I store the cost of the item in the 'part data' , 'cost centre' field.
     
  10. idslk

    idslk Alibre Super User

    Hello cncgear,
    the part data are under file properties and as far as i know this data could not be pulled via alibrescript.
    Regards
    Stefan
     
  11. cncgear

    cncgear New Member

    Ahh.. OK
     
  12. NateLiqGrav

    NateLiqGrav Alibre Super User

    Its undocumented and unsupported but the Alibre API can be used.
    https://www.alibreforum.com/forum/index.php?threads/script-release-total-cost-center.21360/
     
  13. idslk

    idslk Alibre Super User

    hello nate,
    nice info...
    is the complete alibrex.dll made available unser AS and since when?
    regards
    stefan
     
  14. NateLiqGrav

    NateLiqGrav Alibre Super User

    The API Help documentation can be found on the bottom of the Alibre Home window Explore tab. I think the dll has been included in most Alibre releases for addons to use.
    Being able to use it like this is a side effect of AlibreScript being based on IronPython.
     
  15. idslk

    idslk Alibre Super User

    Hello Nate,
    sarcasm mode off...
    I think it would have been a thing that should had been announced by The Alibre Team. This is not a thing with has to be "found" by the user community.
    I've experimented with this some time ago in my my silent little chamber...

    But here something to the script:
    Would it be better to change the additions to only "total" to get a correct result for grandtotal?
    Code:
                #subtotal = Cost(ThisOcc, total) change to:
                total = Cost(ThisOcc, total)
                print('\n### End SubAssembly: ' + str(ThisOcc.Name))
                total = float(total) #remove: + float(subtotal)
    
    (I've made a testrun with 1 toplevel part and to subassys with 3 parts each and got a wrong grandtotal...)
    ;)
    Regards
    Stefan
     
  16. NateLiqGrav

    NateLiqGrav Alibre Super User

    Thanks! You are correct I started with code from something else and I was too tired when I uploaded.:oops: I should not have needed to pass the total in the function.
    Code:
                #subtotal = Cost(ThisOcc, total) change to:
                subtotal = Cost(ThisOcc)
    
    I will update the script.
     

Share This Page