Skip to content

Latest commit

 

History

History

UpdateIPTParam

learn.forge.designautomation - Inventor

Platforms .NET Inventor

Basic

Description

Inventor plugin that updates the width and height param of a Part.

Setup

Prerequisites

  1. Visual Studio 2017
  2. Inventor 2019 required to compile changes into the plugin
  3. 7z zip requires to create the bundle ZIP, download here

References

This Inventor plugin requires Autodesk.Inventor.Interop reference, which should resolve from the system GAC. If not, right-click on References, then Add > References, then add it from the follwing folder: C:\Program Files\Autodesk\Inventor 2019\Bin\Public Assemblies.

Build

Under Properties, at Build Event page, the following Post-build event command line will copy the DLL into the \UpdateIPTParam.bundle/Content\ folder, create a .ZIP (using 7z) and copy to the Webapp folder.

xcopy /Y /F $(TargetDir)*.dll $(ProjectDir)UpdateIPTParam.bundle\Contents\
del /F $(ProjectDir)..\forgesample\wwwroot\bundles\UpdateIPTParam.zip
"C:\Program Files\7-Zip\7z.exe" a -tzip $(ProjectDir)../forgesample/wwwroot/bundles/UpdateIPTParam.zip  $(ProjectDir)UpdateIPTParam.bundle\ -xr0!*.pdb

Debug Locally

Please review this section of the My First Plugin Tutorial.

Further Reading

License

This sample is licensed under the terms of the MIT License. Please see the LICENSE file for full details.

Written by

Chandra Shekar, Forge Partner Development