- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
First time posting a question here, so please bear with me and I'm sorry if I didn't post in the right place.
I have a Tank assembly...in which, I have two parts that represent the water levels (one at max fullness, one up to the overflow).
This is my code that drives the Volume portions of my Form.
I want the Volume to show up in m^3 and I have no idea how to do it, as m^3 isn't a choice in my parameter units. In iProperties, the volume of both water parts shows correctly, with the m^3 as the units.
My question is...how do I get the Volume and the Gross Volume to show up in my form the way it is showing in my iProperties tab (with m^3 as the units)?
SyntaxEditor Code Snippet
Parameter("Skeleton - MASTER:1", "InletWaterLevel")=TopsidePipeDisFromTop-Flange_Gap 'Suppress Water, If Not Needed If Water="Add Water" Then Component.IsActive("Volume of Water:1")=True ElseIf Water="Remove Water" Then Component.IsActive("Volume of Water:1")=False End If Select Case Water Case "Add Water" formAddRemoveWater= True Case "Remove Water" formAddRemoveWater = False End Select VolumeOfWater=iProperties.VolumeOfComponent("Volume of Water:1") '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 'Suppress Gross Water, If Not Needed If GrossWater="Add Water" Then Component.IsActive("Gross Volume of Water:1")=True ElseIf GrossWater="Remove Water" Then Component.IsActive("Gross Volume of Water:1")=False End If Select Case GrossWater Case "Add Water" formGrossVolumeOfWater= True Case "Remove Water" formGrossVolumeOfWater = False End Select GrossVolumeOfWater=iProperties.VolumeOfComponent("Gross Volume of Water:1")
I am using Inventor 2017...and I am very new to Inventor and iLogic.
I also would like to have "Update" buttons next to the volumes that would update the volumes and that would unsuppress the correct water part too (instead of the add/remove water buttons)....but I am afraid that might be over my head at the moment.
Thanks so much!
Maggie
Solved! Go to Solution.