Shell function to execute a Python script or by using the RunPython method available in newer versions of Excel. Here's how you can do it using both methods: ExtrudeFeatures object and the ExtrudeDefinition object to define and execute the extrusion. Here's a basic example of how to create a simple VBA script to perform an extrusion operation in Autodesk Inventor: