How to add a friction diameter from input parameter d0 ?

How to add a friction diameter from input parameter d0 ?

deffysalfauzi
Enthusiast Enthusiast
430 Views
3 Replies
Message 1 of 4

How to add a friction diameter from input parameter d0 ?

deffysalfauzi
Enthusiast
Enthusiast

Good afternoon,

Help me, this is a code for the description:

=<Material>, Ø<Diameter> x <SweepLength> mm

 

How to add a friction diameter?

 

Screenshot 2024-05-25 145625.png

0 Likes
431 Views
3 Replies
Replies (3)
Message 2 of 4

bradeneuropeArthur
Mentor
Mentor

you mean I think a fractional diameter?!

 

Dim p As PartDocument = ThisDoc.Document

iProperties.Value("Project", "Description") = p.ComponentDefinition.Parameters.UserParameters.Item("Diameter").Expression

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:
Drawing List!|
Toggle Drawing Sheet!|
Workplane Resize!|
Drawing View Locker!|
Multi Sheet to Mono Sheet!|
Drawing Weld Symbols!|
Drawing View Label Align!|
Open From Balloon!|
Model State Lock!
Posts and Ideas:
My Ideas|
Dimension Component!|
Partlist Export!|
Derive I-properties!|
Vault Prompts Via API!|
Vault Handbook/Manual!|
Drawing Toggle Sheets!|
Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !


 


EESignature

0 Likes
Message 3 of 4

deffysalfauzi
Enthusiast
Enthusiast

yes, fractional diameter. Sorry typo. or as I input it. i.e : entry = 1 1/8" then result = 1 1/8, or entry = 34 mm then result 34. Can it be coded?

0 Likes
Message 4 of 4

bradeneuropeArthur
Mentor
Mentor

With the above code you can get the exact expression of for example "Diameter" Parameter....

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:
Drawing List!|
Toggle Drawing Sheet!|
Workplane Resize!|
Drawing View Locker!|
Multi Sheet to Mono Sheet!|
Drawing Weld Symbols!|
Drawing View Label Align!|
Open From Balloon!|
Model State Lock!
Posts and Ideas:
My Ideas|
Dimension Component!|
Partlist Export!|
Derive I-properties!|
Vault Prompts Via API!|
Vault Handbook/Manual!|
Drawing Toggle Sheets!|
Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !


 


EESignature

0 Likes