How to get # Of Places on drawing dimension from part

How to get # Of Places on drawing dimension from part

nathan.quilla
Explorer Explorer
299 Views
2 Replies
Message 1 of 3

How to get # Of Places on drawing dimension from part

nathan.quilla
Explorer
Explorer

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

 

 

0 Likes
Accepted solutions (1)
300 Views
2 Replies
Replies (2)
Message 2 of 3

A.Acheson
Mentor
Mentor
Accepted solution

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

nathan.quilla
Explorer
Explorer

Awesome, thank you for the help!