Skip to content

Commit 7fbaa8b

Browse files
committed
Fixed classes that should have been structs; Updated Readme
1 parent 6d09a5f commit 7fbaa8b

File tree

4 files changed

+25
-4
lines changed

4 files changed

+25
-4
lines changed

README.md

+22-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,24 @@
11
# Inventor.InternalNames
22

3-
Internal Names for the Autodesk Inventor User Interface Components
3+
This repository contains a list of internal names for the Autodesk Inventor User Interface Components. The internal names are used to identify the user interface components in the Inventor API. The internal names are used in the `Ribbon`, `RibbonTab`, and `RibbonPanel` classes to identify the user interface components.
4+
5+
## Ribbon Internal Names
6+
7+
Ribbon internal names are found in `InventorRibbons`.
8+
9+
## RibbonTab Internal Names
10+
11+
RibbonTab internal names are found in `PartRibbonTabs`, `AssemblyRibbonTabs`, and `DrawingRibbonTabs`.
12+
13+
## RibbonPanel Internal Names
14+
15+
RibbonPanel internal names are found in `PartRibbonPanels`, `AssemblyRibbonPanels`, and `DrawingRibbonPanels`. Panel names are broken down into their respective tabs.
16+
17+
## Example:
18+
```csharp
19+
var drawingRibbon = inventorApplication.UserInterfaceManager.Ribbons[InventorRibbons.Drawing];
20+
21+
var placeViewsTab = drawingRibbon.RibbonTabs[DrawingRibbonTabs.PlaceViews];
22+
23+
var createPlaceViewsPanel = placeViewsTab.RibbonPanels[DrawingRibbonPanels.PlaceViews.Create];
24+
```

Ribbon/DrawingRibbonTabs.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
namespace Inventor.InternalNames.Ribbon
22
{
3-
public class DrawingRibbonTabs
3+
public struct DrawingRibbonTabs
44
{
55
public const string PlaceViews = "id_TabPlaceViews";
66
public const string Annotate = "id_TabAnnotate";

Ribbon/InventorRibbons.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
namespace Inventor.InternalNames.Ribbon
22
{
3-
public class InventorRibbons
3+
public struct InventorRibbons
44
{
55
public const string Part = "Part";
66
public const string Assembly = "Assembly";

Ribbon/iFeatureRibbonPanels.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
namespace Inventor.InternalNames.Ribbon
22
{
3-
public class iFeatureRibbonPanels
3+
public struct iFeatureRibbonPanels
44
{
55
public struct iFeatureTab
66
{

0 commit comments

Comments
 (0)