Units keep changing when using iLogic

Units keep changing when using iLogic

JBEDsol
Collaborator Collaborator
549 Views
5 Replies
Message 1 of 6

Units keep changing when using iLogic

JBEDsol
Collaborator
Collaborator

I'm trying to create a rule that updates the weight of a Content Center pipe as the length changes.  

 

Few explanations.

So the CC part uses L and PL (not sure why both but I just copied the existing to make sure it works smooth with Tube & Pipe).  I'm not updating the custom iProperty via the Family Table because it only works for Standard CC Parts.  I'm using a custom iProperty rather than a parameter because that's how everything else reads.  It was setup a long time ago and I'm working w/ what we have established.

 

When I want to input a Custom CC part PL is in ft, L is in inches.  The part's document settings are in inches.  The family table for "L" and "PL" both have units set to feet.  So I set everything to ft and put the following iLogic rule. 

 

iProperties.Value("Custom","WEIGHT TOTAL")=PL*iProperties.Value("Custom","WEIGHT UNIT")

 

However the part keeps changing L to inches.  And the Rule seems almost arbitrarily multiplying by feet sometimes and Inches others.  I've no clue what's going on or how to fix it.  When I replace the family template the document settings won't update.  I get no consistency.  Sometimes the value will be 504 and others 2.3.  All depending on whether it want to read inches or feet.

 

0 Likes
550 Views
5 Replies
Replies (5)
Message 2 of 6

JoãoASilva
Advocate
Advocate

@JBEDsol ,

 

Have you tried changing the document settings on your templates to the desired dimension type, create a new file and test on that new file?

 

João Silva

Mechanical Engineer

 

Message 3 of 6

A.Acheson
Mentor
Mentor

@JBEDsol 

I see the same behaviour in a Pipe family  I was setting up, but no ilogic being used. Change PL and L to ft in family table. When placed PL gets ft and L gets in. I will test again to see what I can figure out. It might be a T&P pipe phenomena? Did you have any resolution to this?

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

bradeneuropeArthur
Mentor
Mentor

@JoãoASilva wrote:

@JBEDsol ,

 

Have you tried changing the document settings on your templates to the desired dimension type, create a new file and test on that new file?

 


Have you changed this?

 

Regards,

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 6

A.Acheson
Mentor
Mentor

@JBEDsol 

 

A template file replace didn't help. The user parameter L retains the in units. They must  have been hardcoded.

Two methods work to retain the user parameter units. 

 

Method 1

Change user parameter L to L_1 or whatever you like in a custom part, perform a template file replace and map template parameter L to L_1. effectively recreating the user parameter.  See attached photos

 

Method 2

Republish  the family with units changed in the user parameter allowed the units to be retained. Downside all the extra work and perhaps having to replace the file wherever used. 

 

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

bradeneuropeArthur
Mentor
Mentor

What template file have you replaced? From the Content Center Family?

 

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