Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to get # Of Places on drawing dimension from part

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
nathan.quilla
188 Views, 2 Replies

How to get # Of Places on drawing dimension from part

Is there a way to pull the number of fillets or chamfers from the model properties into the dimension in the drawing?

nathanquilla_0-1714772018076.png

 

nathanquilla_1-1714772018059.png

 

 

2 REPLIES 2
Message 2 of 3
A.Acheson
in reply to: nathan.quilla

Hi @nathan.quilla 

Here is likely what your looking for EdgeSetCount

 

Syntax

FilletDefinition.EdgeSetCount() As Long

 

Here is VBA sample for studying.

 

And here is an ilogic sample untested.

 

 

 

 

    ' Set a reference to the compdef.
    Dim compDef As PartComponentDefinition = ThisDoc.Document.ComponentDefinition
    ' Obtain a FilletDefinition object to use in defining the various inputs to create the fillet.
    Dim filletDef As FilletDefinition = compDef.Features.FilletFeatures.CreateFilletDefinition

    Dim count as Integer = filletDef.EdgeSetCount

    MessageBox.Show(count)

 

 

 

Actually picking up the drawing curve and checking what feature created it will be another layer of complexity.

If this solved a problem, please click (accept) as solution.‌‌‌‌
Or if this helped you, please, click (like)‌‌
Regards
Alan
Message 3 of 3

Awesome, thank you for the help!

 

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

Post to forums  

Technology Administrators


Autodesk Design & Make Report