What's new

script

  1. K

    Locate Part in Assembly that BOM references

    Good day, I looking for functionality with scripts (either AlibreX or AlibreScript) that, given a particular assembly's exported BOM (.csv), you can access and read each part of an assembly by reading the rows of the BOM. For example, if I've rearranged my BOM and read the first line on its...
  2. K

    Built-in-Function Question

    Hello, I seem to be running into issues regarding the built in functions of the IADCurve interface. According to the API Help, the Tangent method of the IADCurve interface returns IADVector, but trying to access the properties of that object throws back an error. x =...
  3. K

    Issue with GetArea()

    Hi all, I've come across a peculiar issue with GetArea that I was hoping to get feedback on. I noticed when a cut is made on a face, the area that GetArea() outputs will vary based on the position of the cut. The areas outputted are also wrong. Expected 92.931 in^2. Box dimensions are 10x10x5...
  4. D

    How to access the owner of a parameter in a part through API?

    Looking at the Equation Editor, I can see multiple parameters. i.e. A1, A2.... with Equations, Result, Type, Owner, Source, Comment. Iterating through the parameters in the file: The owner value is missing. part = CurrentPart() for i in range(len(part.Parameters))...
  5. GIOV

    Traditional Cursor with Script.

    Hi Friends, I have old school Alibre so if someone is able to come up with the script to allow the cursor to be the traditional one it would be excellent! GIOV
  6. K

    The Alibre Value is not available

    Hello all, Dealing with an issue when trying to save to my M-File Vault through a SaveAs function. Here's the error: <CODE> Traceback (most recent call last): File "<string>", line 124, in <module> EnvironmentError: System.Runtime.InteropServices.COMException (0x80040328): The Alibre Vault is...
  7. K

    Are Measurements for a Part Stored in a separate File?

    Hello all, I'm trying to create a script in Alibre that uses the surface area of a face in a sheet metal part. I wanted to know if that value is stored anywhere in some sort of log file, or if there's a documented way to use Alibre Script to retrieve and store that information? Thank you.
  8. E

    saving/modifying a drawing

    Hi all, Is there a way to either save a drawing or modify an existing one using a script? I have to create lots of flanges and I need a way to save the part as a drawing an get/display as a note the dimensions. Can this be done using a script? .... .... Options = [] Options.append(["Work...
  9. Suppakit

    Using Python to make my first "Alibre Motion"

    Alibre Sample Motion Hello everyone, I just make my dream come true for done Alibre motion by using Alibre script, but this is just the beginning, I have a plan to make API for my customers who don't like to learn Python, anyway I need more suggestion for how to manipulate 6 Axis robot motion is...
  10. A

    Run Script From Batch

    Hello, I am trying to figure out if there is a way to execute an script in Alibre from batch. What I would like to do is be able to launch Alibre with a particular part (or assembly), then run a script that will update the global parameters and export a neutral CAD file. I have figured out...
  11. V

    Lofted path with guide curves generates s-shape

    I created 4 guide curves and 2 profiles to generate a loft, the result is correct at the guide curves but creates a S-shape in between. The different options in the loft feature have no effect. Is there a way to get the result shown in green? PS: I started with a sweep which did not give the...
  12. V

    How to create SweepBoss

    Hello, In this example: https://support.alibre.com/support/solutions/articles/27000049682-profile-and-sweep-path a profile and path is created, but how do I sweep add a sweep feature in the script? (Already found the solution) Solution add line...
  13. Cator

    Wooden_Box_Generator

    Hi everyone, after three months of working with Alibre at a hobby level and just over a month of initiation into the Python language, I am happy to share with you one of the jobs that I was able to do as a beginner. I await your advice to improve and ask: a) Is it possible to customize the...
  14. V

    Auto Generate 2D Drawings From SQL Data

    I would like to see if anyone here had tried to automate drawing generation using Script with almost all relevant data coming from SQL Server. I would probably have 5-10 master 3D assemblies that I could use Script to gather data from SQL, adjust/suppress parts or subassemblies, adjust features...
  15. Cator

    Sketch Rectangle whith script

    Hello everybody, I want to create a rectangle, which I will then use to extrude material on the face at the ZX plane using the script, as in the "Laterale" Part. Can anyone help me please complete the script I made to do this part to add the extrusion? Thanks to all of you!
  16. Brandon_Velmex

    Editing a Part in an Assembly

    Hello everyone, I'm trying to change the length of a part in my assembly. I would like to steer clear of configurations, because I need the part to be able to be any length. Currently I have the length linked to a global parameter, which I am able to change in a script, but the length will not...
  17. Brandon_Velmex

    Script Language for Selecting and Editing Configurations

    I am trying to write a script which will build a proper assembly out of existing configurations once the menus are all complete. However, all the existing tutorials are based around building a new configuration, or a new assembly. My question is: what are the specific Python script commands for...
  18. idslk

    Script Pre Release: Assign_Material_to_Assembly_Parts_015a

    Hello colleagues, i've updated the script from THIS_TREAD to run with V22 and the new material definition... The density display has to be tested with other language installations, which can't be done by me... Comments are welcome...specially due to first script for V22;) And as ever: Use the...
  19. albie0803

    Script to apply ISO 18388 (DIN509) Undercuts in Shafts 2020-10-13

    This script will create ISO 18388(DIN509) Undercuts on a shaft. It assumes that the shaft is built on the X-Axis.
  20. GIOV

    Wizotool 4.10 2020-08-03

    Tool for do script with 32 bits Laptop
Top