Trying to round up parameters with the unit type mm in factory layouts

Trying to round up parameters with the unit type mm in factory layouts

reggie.mostert
Contributor Contributor
436 Views
6 Replies
Message 1 of 7

Trying to round up parameters with the unit type mm in factory layouts

reggie.mostert
Contributor
Contributor

Hello,

I'm trying to figure out how to round up parameters which are in mm. I have the following code which works in my multibody part/asset builder. But when i publis it and put in the factory enviroment i have pin point it doesn't go through the loop i made.

Dim UserParams As UserParameters
UserParams = ThisApplication.ActiveDocument.ComponentDefinition.Parameters.UserParameters

For Each Item In UserParams
 	If Item.Units = "mm" Then
		
		Dim Converter As Integer = Item.value * 10
	    Parameter(Item.name) = Ceil(Converter)
		
	End If
Next

RuleParametersOutput
InventorVb.DocumentUpdate()

 Combined with that finding and the fact that i don't see "mm" behind the numbers in the factory properties, makes me think the parameters are unitless there or something, which makes this code useless. Does anyone knows a way to make this work? 

0 Likes
437 Views
6 Replies
Replies (6)
Message 2 of 7

bradeneuropeArthur
Mentor
Mentor

What do you mean with publish?

What do you mean with factory environment?

 

 

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 7

reggie.mostert
Contributor
Contributor

I mean publishing the asset and using it in the factory utilities addon

0 Likes
Message 4 of 7

bradeneuropeArthur
Mentor
Mentor

@reggie.mostert wrote:

I mean publishing the asset and using it in the factory utilities addon


Factory Design Suite!?

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 5 of 7

reggie.mostert
Contributor
Contributor


Yes, that is correct

0 Likes
Message 6 of 7

bradeneuropeArthur
Mentor
Mentor

I don't have that installed so I cannot help you further!

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 7 of 7

reggie.mostert
Contributor
Contributor

Can anyone help me?

0 Likes