In Assembly how to change just in some parts the unit dimensions?

In Assembly how to change just in some parts the unit dimensions?

Anonymous
Not applicable
554 Views
3 Replies
Message 1 of 4

In Assembly how to change just in some parts the unit dimensions?

Anonymous
Not applicable

Hello everyone

 

I need your help, I'm actually working with a project, where I need to do the next:

 

I have and assembly where some of the parts are in "mm units" but I need an option to change the dimension of those parts to "Standard units (in)". Whit this change I hope to update all the features referenced to the dimensions ("mm" or "in") in all the parts that use this as reference. But I cannot make it happen..

I'm trying to run an Ilogic rule from the main assembly in order to make all the changes from it, and not opening part by part changing the rules one by one.

 

I try with this code:

'Select Tube Units

If Units = Parameter("LEG:1", "Diam_units") Then

Feature.IsActive ("LEG:1", "Diam_mm") = True
Else
Feature.IsActive ("LEG:1", "Diam_in") = False
End If

at the same time, I'm  adding to my Assembly Form, the Radio Group Bottons to change the parameters from here.

Capture.PNG

But when I try to run the rule, do not happen nothing.

 

Could someone help me wiht this?

 

Thanks.

 

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

johnsonshiue
Community Manager
Community Manager

Hi Manuela,

 

Please bear with me since I am relatively ignorant of API. I believe you will need to change UnitsofMeasure object. Take a look at the following page. Or you can google the term and see how to do it.

 

http://help.autodesk.com/view/INVNTOR/2018/ENU/?guid=GUID-026FB34F-60A7-4F2A-A708-190EAA6A1162

 

Many thanks!

 



Johnson Shiue ([email protected])
Software Test Engineer
0 Likes
Message 3 of 4

Anonymous
Not applicable

Hi Johnson

 

I'm completely new on Ilogic I'm not sure how to use the all the info that you sent me on the last comment, I found that code on internet and tried to used adapting it to my needs but it doesn't works.

 

I want to change one dimension to another and not just a unit conversion, my intention is when I pushed the buttons "mm" or "in" units, update the buyout dimensions and automatically update all the cutouts on my sheet metal parts referenced to these.

 

For example I have Square Tube of 1 5/8 " ( this is 1.625" = 41.275mm) but if I push the "mm" button I want to change the dimension to 40mm (making the conversion to "in" is = 1.574"). The difference of both is around 0.50" or  1.2mm that's why I cant make just the unit conversion.

 

I hope you can help me about this...

 

Regards.

 

0 Likes
Message 4 of 4

MjDeck
Autodesk
Autodesk

Can you post your assembly and part? That might help us to find a solution.


Mike Deck
Software Developer
Autodesk, Inc.