How can i get unit of area in Ilogic

How can i get unit of area in Ilogic

18154093
Contributor Contributor
396 Views
8 Replies
Message 1 of 9

How can i get unit of area in Ilogic

18154093
Contributor
Contributor

Hi guys

I don't know how to get unit of area (SF)  in Ilogic

this my code

Dim C as Double
C = iProperties.Area
iProperties
.Value("Custom", "AREA") = Round(C, 2)

Everybody has idea this problem

Thanks all

0 Likes
397 Views
8 Replies
Replies (8)
Message 2 of 9

A.Acheson
Mentor
Mentor

Hi @18154093 

You will need to construct the string  containing the area value and unit string.

 

Dim C as Double
C = iProperties.Area
iProperties
.Value("Custom", "AREA") = Round(C, 2) &" SF"

 Just in case your using sheet metal parts and you need to get the area of flat pattern here is the link

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

18154093
Contributor
Contributor

i tried and this problem

18154093_0-1662608431783.png

 

0 Likes
Message 4 of 9

A.Acheson
Mentor
Mentor

Can you show the parts list before using the group method? I am not getting the roll up error here. 

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

18154093
Contributor
Contributor

18154093_0-1662611273710.png

I use string "SF", because i don't know how to get unit of area in ilogic

 

Something's wrong ?  

0 Likes
Message 6 of 9

A.Acheson
Mentor
Mentor

ft^2 would be the unit string for sq feet. I am not sure if custom units are accepted in the parts list tools. The units are not existing as standard. Maybe some more forum searching will yield a result for you. 

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

Maxim-CADman77
Advisor
Advisor

Judging by search by "Area" within UnitsTypeEnum help-page you can get Area in Acres and CircularMils only (which is pretty strange).

Please vote for Inventor-Idea Text Search within Option Names

Message 8 of 9

18154093
Contributor
Contributor

18154093_0-1662635089913.png

this is not acceptable, because in the type board does not have unit of area

0 Likes
Message 9 of 9

A.Acheson
Mentor
Mentor

How about changing the unit of measurement in the document of the part to Area instead of qty. This is commonly done for sheet material. This way the qty will be added up. 2 ft^2 instead of qty 2 @1 ft^2. See tutorial on this method here

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