Announcements

Starting in December, we will archive content from the community that is 10 years and older. This FAQ provides more information.

Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Script for Managing Named and Renamed Standard iProperty Parameters in Millimeters

1 REPLY 1
Reply
Message 1 of 2
Ivan_Sinicyn
192 Views, 1 Reply

Script for Managing Named and Renamed Standard iProperty Parameters in Millimeters

Hey everyone! I needed a quick way to work with parameters and had a bit of time to put this together. I'm sharing the script here — hopefully, it'll be useful to someone!
Fullwindow.png

 


Description:

This VB iLogic script for Autodesk Inventor allows users to view, edit, and add named or renamed standard parameters in the active document, with all values displayed in millimeters. The interface is built using Windows Forms and WebBrowser, providing an intuitive way to manage parameters interactively. The script supports parameter sorting, saving user preferences (theme, language, window position), and switching between light and dark interface themes. Users can quickly close the window using keyboard shortcuts, and it is recommended to assign a hotkey for fast access to the script.

Key Features:

  • View and Edit Named/Renamed Standard iProperty Parameters:

    • Displays only named or renamed standard parameters.
    • Double-click to edit parameter values (in millimeters) and descriptions.
    • Allows adding new standard parameters through a simple form.
  • Millimeter-based Values:

    • All parameter values are displayed and edited in millimeters, ensuring consistency in units for the entire document.
  • Parameter Sorting:

    • Sort parameters by name, value (in mm), or description.
    • Sorting preferences are saved and applied on the next run.
  • Interface Themes:

    • Switch between light and dark themes.
    • The selected theme is saved and automatically applied on the next run.
  • Multi-language Support:

    • The interface supports two languages: Russian and English.
    • Switch languages through the interface, with settings automatically saved.
  • Save User Settings:

    • Window position, size, theme, and language settings are saved to a settings file, so the interface opens as previously configured by the user.
    • The settings file is stored in a unique directory to avoid conflicts with other scripts.
  • Window Closing Keys:

    • The window can be quickly closed using Escape or the ` (backtick) key for convenience during use.

Recommended Usage:

For quicker access, it is recommended to assign a hotkey to this script in the iLogic environment, allowing you to open it instantly whenever needed. This greatly speeds up workflows when managing parameters frequently.

Application:

This script is ideal for Autodesk Inventor users who work with standard iProperty parameters that have been named or renamed. It provides quick access to manage these parameters in millimeters, offering a streamlined solution for parameter management.

Example of Usage:

  1. Run the script in iLogic within Autodesk Inventor.
  2. The interface will display all named or renamed standard parameters of the current document.
  3. Double-click on a value (in mm) or description to edit parameters.
  4. Use the form at the bottom of the window to add new named or renamed parameters.
  5. Switch between themes and languages for a customized experience.
  6. Use Escape or ` (backtick) to quickly close the window when done.
  7. All settings will be automatically saved when you close the program.

How to Install:

  1. Download or copy the script.
  2. Paste it into the iLogic editor in Autodesk Inventor.
  3. Run the script through iLogic.
  4. Assign a hotkey in Autodesk Inventor for quick access to the script.

Technical Requirements:

  • Autodesk Inventor 2021 or later
  • iLogic support enabled

 

Note on Development:

This script was fully developed with the help of ChatGPT-4o, o1-preview, o1-mini, and Claude 3.5 Sonnet, leveraging advanced AI models to streamline the creation process and ensure a robust and intuitive user experience.

darktheme.pnglighttheme.png

Inventor 2025.1
1 REPLY 1
Message 2 of 2

good job, I like it, thanks for your share


If my post answers your question, please click the "Accept as Solution" button. This helps everyone find answers more quickly!
如果我的回帖解决了您的问题,请点击 "接受为解决方案" 按钮. 这可以帮助其他人更快的找到解决方案!


王 承之
Autodesk AGN [Inventor 俱乐部] Leader
Inventor Club | Bilibili


AGN L    EESignature

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report