There are a many VBA procedures related to drawings in the help file. In this project you will find 14 of the examples related to drawing annotations converted to C#.
This section in the help has has 29 VBA demos.
You can find details about how the C# projects can be used in this post. This project has the following functions:
Download InventorHelpExamples_Drawing_Annotations_1
CenterAllDimensions
EditBalloons
CreateBalloon
GetComponentReferencedByBalloon
CreateBaselineDimensionSet
AddBendNote
CreateChainDimensionSet
CreateCustomTable
CreateBendTable
CreateConfigurationTable
CreateDrawingExcelTable
EditDrawingDimensions
DeleteUnattachedDimensions
DimensionAlign
Here is DimensionAlign:
// Aligning drawing dimensions API Sample
//Description
//This sample demonstrates aligning the selected
//drawing dimensions along a horizontal or vertical
//axis. The first dimension selected defines the
//origin of the axis. A drawing document must be
//open and at least two dimensions selected.
public void DimensionAlign()
{
DrawingDocument oDrawDoc =
(DrawingDocument)ThisApplication.ActiveDocument;
// Determine if there are any dimensions
//in the select set.
SelectSet oSelectSet = default(SelectSet);
oSelectSet = oDrawDoc.SelectSet;
var colDimensions = new List();
// long i = 0;
for (int i = 1; i
-Wayne


Leave a Reply