Trigger "create simplified part" via API/macro

Trigger "create simplified part" via API/macro

Anonymous
Not applicable
1,192 Views
8 Replies
Message 1 of 9

Trigger "create simplified part" via API/macro

Anonymous
Not applicable

Hi all,

 

Is there a programmatic way to trigger the "Create Simplified Part" action in an assembly? 

 

I'd like to have an assembly combined and programatically accessible as a single part. I don't mind if this creates a new document.

 

Thanks,

Jeremy

0 Likes
Accepted solutions (1)
1,193 Views
8 Replies
Replies (8)
Message 2 of 9

MechMachineMan
Advisor
Advisor
Accepted solution

Yes. There is a sample for creating a derived component in the Programming Help.


--------------------------------------
Did you find this reply helpful ? If so please use the 'Accept as Solution' or 'Like' button below.

Justin K
Inventor 2018.2.3, Build 227 | Excel 2013+ VBA
ERP/CAD Communication | Custom Scripting
Machine Design | Process Optimization


iLogic/Inventor API: Autodesk Online Help | API Shortcut In Google Chrome | iLogic API Documentation
Vb.Net/VBA Programming: MSDN | Stackoverflow | Excel Object Model
Inventor API/VBA/Vb.Net Learning Resources: Forum Thread

Sample Solutions:Debugging in iLogic ( and Batch PDF Export Sample ) | API HasSaveCopyAs Issues |
BOM Export & Column Reorder | Reorient Skewed Part | Add Internal Profile Dogbones |
Run iLogic From VBA | Batch File Renaming| Continuous Pick/Rename Objects

Local Help: %PUBLIC%\Documents\Autodesk\Inventor 2018\Local Help

Ideas: Dockable/Customizable Property Browser | Section Line API/Thread Feature in Assembly/PartsList API Static Cells | Fourth BOM Type
0 Likes
Message 3 of 9

waynehelley
Collaborator
Collaborator

Hi there,

 

Could you point us to how to access the help files?

Wayne Helley
Inventor 2013 Certified Professional

Autodesk Inventor Professional 2023
Visual Studio 2022
Windows 10 Pro, 64-bit
0 Likes
Message 4 of 9

waynehelley
Collaborator
Collaborator

Are you refering to the developer tools??

C:\Users\Public\Documents\Autodesk\Inventor 2015\SDK

Wayne Helley
Inventor 2013 Certified Professional

Autodesk Inventor Professional 2023
Visual Studio 2022
Windows 10 Pro, 64-bit
0 Likes
Message 5 of 9

MechMachineMan
Advisor
Advisor
C:\Program Files\Autodesk\Inventor 2016\Local Help\admapi_20_0.chm

--------------------------------------
Did you find this reply helpful ? If so please use the 'Accept as Solution' or 'Like' button below.

Justin K
Inventor 2018.2.3, Build 227 | Excel 2013+ VBA
ERP/CAD Communication | Custom Scripting
Machine Design | Process Optimization


iLogic/Inventor API: Autodesk Online Help | API Shortcut In Google Chrome | iLogic API Documentation
Vb.Net/VBA Programming: MSDN | Stackoverflow | Excel Object Model
Inventor API/VBA/Vb.Net Learning Resources: Forum Thread

Sample Solutions:Debugging in iLogic ( and Batch PDF Export Sample ) | API HasSaveCopyAs Issues |
BOM Export & Column Reorder | Reorient Skewed Part | Add Internal Profile Dogbones |
Run iLogic From VBA | Batch File Renaming| Continuous Pick/Rename Objects

Local Help: %PUBLIC%\Documents\Autodesk\Inventor 2018\Local Help

Ideas: Dockable/Customizable Property Browser | Section Line API/Thread Feature in Assembly/PartsList API Static Cells | Fourth BOM Type
Message 6 of 9

waynehelley
Collaborator
Collaborator

The sample Standalone Applications are;

 

Attributes

AutoBolts

BrowserPan

CustomGraphics

iFeatureWhereUsed

IPart

OverlayAssembly

PartFeatures

Pulley

SimpleExe

UnitsOfMeasure

UserInteraction

 

Wayne Helley
Inventor 2013 Certified Professional

Autodesk Inventor Professional 2023
Visual Studio 2022
Windows 10 Pro, 64-bit
0 Likes
Message 7 of 9

waynehelley
Collaborator
Collaborator

Thanks

Wayne Helley
Inventor 2013 Certified Professional

Autodesk Inventor Professional 2023
Visual Studio 2022
Windows 10 Pro, 64-bit
0 Likes
Message 8 of 9

waynehelley
Collaborator
Collaborator

Is it the 'Shrink wrap substitute in assembly API Sample' which you are refering to?

 

Capture.PNG

 

I'm running 2015 so I may be missing some samples.

Wayne Helley
Inventor 2013 Certified Professional

Autodesk Inventor Professional 2023
Visual Studio 2022
Windows 10 Pro, 64-bit
0 Likes
Message 9 of 9

MechMachineMan
Advisor
Advisor
Yes, or search/google "command manager/control definitions" if you just want to open the window the program shows. Though API shrinkwrap sampke method you can control all of the settings in that you would otherwise select in the dialog.

--------------------------------------
Did you find this reply helpful ? If so please use the 'Accept as Solution' or 'Like' button below.

Justin K
Inventor 2018.2.3, Build 227 | Excel 2013+ VBA
ERP/CAD Communication | Custom Scripting
Machine Design | Process Optimization


iLogic/Inventor API: Autodesk Online Help | API Shortcut In Google Chrome | iLogic API Documentation
Vb.Net/VBA Programming: MSDN | Stackoverflow | Excel Object Model
Inventor API/VBA/Vb.Net Learning Resources: Forum Thread

Sample Solutions:Debugging in iLogic ( and Batch PDF Export Sample ) | API HasSaveCopyAs Issues |
BOM Export & Column Reorder | Reorient Skewed Part | Add Internal Profile Dogbones |
Run iLogic From VBA | Batch File Renaming| Continuous Pick/Rename Objects

Local Help: %PUBLIC%\Documents\Autodesk\Inventor 2018\Local Help

Ideas: Dockable/Customizable Property Browser | Section Line API/Thread Feature in Assembly/PartsList API Static Cells | Fourth BOM Type