JordanRobot.iPropertyGroups 1.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package JordanRobot.iPropertyGroups --version 1.0.0
NuGet\Install-Package JordanRobot.iPropertyGroups -Version 1.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="JordanRobot.iPropertyGroups" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add JordanRobot.iPropertyGroups --version 1.0.0
#r "nuget: JordanRobot.iPropertyGroups, 1.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install JordanRobot.iPropertyGroups as a Cake Addin
#addin nuget:?package=JordanRobot.iPropertyGroups&version=1.0.0

// Install JordanRobot.iPropertyGroups as a Cake Tool
#tool nuget:?package=JordanRobot.iPropertyGroups&version=1.0.0

iPropertyGroups

A library for Autodesk Inventor that lets you manage user-defined groups of iProperties.

What does it do?

Lets say you have a group of iProperties that you want to apply to various Inventor files. Typically you'd hard-code a bunch of iProperties and default expressions/values into your code. Then you'd write custom logic to manage and apply these to documents.

This library takes most of that management drudgery out of your hands. You can define a group of iProperties into an PropertyGroup object. The PropertyGroup objects are a dictionaries of simple strings with some extra methods. If you have multiple PropertyGroup objects, they can be managed from an PropertyGroups object. You can load PropertyGroups objects from json files.

This library will not do any checks against what documents are suitable to be modified (e.g. content center files, library files, etc).

  • Here is a simple iLogic rule showing the library in use:

    AddReference "iPropertyGroups.dll"
    Imports iPropertyGroups
    
    'Create a PropertyGroups object and load a json file into the object.
    Dim oGroups As PropertyGroups = PropertyGroups.LoadJson("C:\Path\to\your\propertygroups-definition.json")
    
    'Get active document object...
    Dim oDoc As Inventor.Document = ThisApplication.ActiveDocument
    
    'Apply PropertyGroups object to the document...
    oGroups.Item("Stock Part").ApplyToAndOverwrite(oDoc)
    

Documentation

Find the detailed instructions and API reference here.

License

This code is under an MIT license.

Product Compatible and additional computed target framework versions.
.NET Framework net47 is compatible.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.1 376 3/2/2021
1.0.0 321 3/1/2021

Initial Release