cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Add Annotation Scale to the Inventor.DesignViewRepresentation Object

Add Annotation Scale to the Inventor.DesignViewRepresentation Object

The "Auto" setting of the Annotation Scale command doesn't quite keep up when scaling parts from 1/2" to 36+".

 

It'd be handy to be able to control the annotation scale of 3D dimensions, surface textures, etc. from the DesignViewRepresentation object from within the Inventor API.

 

Please make it available as method or property (or point me in the right direction).

original forum post

 

ObjectBrowser.png

1 Comment
Anonymous
Not applicable

Following up with a more general question / suggestion...

Is there a reason why model annotations don't get their own public interface? Can we get one?

 

To illustrate, everything below has its own public interface except Model Annotations.

 

Dim thisDoc As Document = _invApp.ActiveDocument
Dim allFeatures As PartFeatures = thisDoc.ComponentDefinition.Features
Dim allPlanes As WorkPlanes = thisDoc.ComponentDefinition.WorkPlanes
Dim allParameters As Parameters = thisDoc.ComponentDefinition.Parameters
Dim allViews As DesignViewRepresentations = thisDoc.ComponentDefinition.RepresentationsManager.DesignViewRepresentations

Dim all3dDims As Object = thisDoc.ComponentDefinition.ModelAnnotations Dim dimTol As Object = thisDoc.ComponentDefinition.ModelAnnotations.ModelDimensions.Item("FeatureName").Definition Dim dimType As ToleranceTypeEnum = ToleranceTypeEnum.kLimitsFitsStackedTolerance dimTol.Tolerance.SetToLimits(dimType, "3.03 in", "2.97 in")

 

 

Can't find what you're looking for? Ask the community or share your knowledge.

Submit Idea