Inventor API support for 3d Annotations

Inventor API support for 3d Annotations

guilloryt
Advocate Advocate
2,492 Views
7 Replies
Message 1 of 8

Inventor API support for 3d Annotations

guilloryt
Advocate
Advocate

Morning,

 

Does the Inventor api have any methods/support for manipulating 3d Annotations with code?

 

If not are there plans to add support and when might we expect it?

 

Thanks

0 Likes
Accepted solutions (2)
2,493 Views
7 Replies
Replies (7)
Message 2 of 8

chandra.shekar.g
Autodesk Support
Autodesk Support

@guilloryt,

 

Hoping that below blog articles would help to manipulate 3D annotations.

 

http://adndevblog.typepad.com/manufacturing/2018/02/getting-modelfeaturecontrolframes-in-partdocumen...

 

http://adndevblog.typepad.com/manufacturing/2018/03/adding-modelfeaturecontrolframe-in-partdocument-...

 

To investigate further, can you please provide sample file and mention 3D annotation to manipulte? Please make sure that files are non confidential.

 

Thanks and regards,


CHANDRA SHEKAR G
Developer Advocate
Autodesk Developer Network



0 Likes
Message 3 of 8

guilloryt
Advocate
Advocate

See attached.. are there api methods to edit content on Text, Precision/Tolerance and Inspection Dimensions tabs of the Annotation's Edit Dimension dialog?

 

3D Annotations.png

0 Likes
Message 4 of 8

chandra.shekar.g
Autodesk Support
Autodesk Support

@guilloryt,

 

Try below VBA code to set deviation to 3D model annotation.

 

Sub Main()

    Dim oDoc As PartDocument
    Set oDoc = ThisApplication.ActiveDocument
    
    Dim compDef As PartComponentDefinition
    Set compDef = oDoc.ComponentDefinition
    
    Dim oLinear As LinearModelDimension
    Set oLinear = compDef.ModelAnnotations.ModelDimensions.LinearModelDimensions.Item(1)
    
    Dim oDef As LinearModelDimensionDefinition
    Set oDef = oLinear.Definition
    
    'If unit is not specified after tolerance value, then default unit 'cm' is considered.
    Call oDef.Tolerance.SetToDeviation("0.05 in", "0.05 in") 
    
End Sub

Thanks and regards,


CHANDRA SHEKAR G
Developer Advocate
Autodesk Developer Network



0 Likes
Message 5 of 8

guilloryt
Advocate
Advocate

Would there be API methods to promote model dimensions to 3d annotations and/or to manipulate the position fo the 3d annotations after they are created?

0 Likes
Message 6 of 8

chandra.shekar.g
Autodesk Support
Autodesk Support
Accepted solution

@guilloryt,

 


@guilloryt wrote:

Would there be API methods to promote model dimensions to 3d annotations and/or to manipulate the position fo the 3d annotations after they are created?


Hoping that above same question is answered in the below forum discussion.

 

https://forums.autodesk.com/t5/inventor-customization/api-support-to-promote-model-dimensions-to-3d-...

 

Thanks and regards,


CHANDRA SHEKAR G
Developer Advocate
Autodesk Developer Network



Message 7 of 8

mcgyvr
Consultant
Consultant
Accepted solution

@chandra.shekar.g  Do you have an example (if its possible) on how to create "General Note" annotations in a model including defining the quadrant and the actual text of the note?

 



-------------------------------------------------------------------------------------------
Inventor 2023 - Dell Precision 5570

Did you find this reply helpful ? If so please use the Accept Solution button below.
Maybe buy me a beer through Venmo @mcgyvr1269
0 Likes
Message 8 of 8

chandra.shekar.g
Autodesk Support
Autodesk Support

@mcgyvr,

 

Unfortunately, Inventor API do not support to create Generals notes in part document. Please log a wish list at idea station using below link.

 

https://forums.autodesk.com/t5/inventor-ideas/idb-p/v1232

 

Thanks and regards,


CHANDRA SHEKAR G
Developer Advocate
Autodesk Developer Network



0 Likes