is Parameter Thickness appearing in every Inventor Language version?

is Parameter Thickness appearing in every Inventor Language version?

Anonymous
Not applicable
732 Views
5 Replies
Message 1 of 6

is Parameter Thickness appearing in every Inventor Language version?

Anonymous
Not applicable

Hi all, 

I'm creating a small app for sheet metal components. When I'm reading Thickness from Parameters

"oSheetMetalDef.Parameters("Thickness").Value", I was wondering is the Thickness named similary in Inventor - German, Inventor - Russian etc.

Does anyone know?

Regards,

Matti

 

0 Likes
Accepted solutions (1)
733 Views
5 Replies
Replies (5)
Message 2 of 6

Anonymous
Not applicable

No it's not "Thickness" in every language.

 

There is a way to do it in neat way but I know just how to baypass this:

 

Parameter.Quiet = True
grubosc=CStr(Parameter("Grubość")) 'Polish
If grubosc="" Then grubosc=CStr(Parameter("Epaisseur")) 'French
If grubosc="" Then grubosc=CStr(Parameter("Thickness")) '

 I'll have a look into my rules. I know I did find a better way to check it. You can always check language of the program but it not verifies language of the file.

0 Likes
Message 3 of 6

Anonymous
Not applicable
Accepted solution

You can always check if the part is using default Thickness:

 

Dim oDoc As Document
oDoc = ThisApplication.ActiveDocument
Dim oCompDef As SheetMetalComponentDefinition
oCompDef = oDoc.ComponentDefinition
If oCompDef.UseSheetMetalStyleThickness Then Thck=oCompDef.Activesheetmetalstyle.Thickness

 But what if it's not?

Probably there is some {1FE2-73A1-xxxx-....} identyfier for this parameter, It's essential for the sheetmetal parts, right?

 

Hope this helps.

Message 4 of 6

Anonymous
Not applicable
Actually I found oCompDef.Thickness which gives you a correct double (in cm) if you are using default thickness or not. oCompDef.Thickness is a Inventor Parameter type but how to be sure that it won't be oCompDef.Grubość ...
/Matti
0 Likes
Message 5 of 6

Anonymous
Not applicable
I guess I have to find old polish template and you will check it. It may take me a while, now we are using ENG versions so I have to dig up in archive on server but I'll do that. I'm interested in results.
0 Likes
Message 6 of 6

Anonymous
Not applicable
oCompDef.Thickness.Name = "Grubość"

 Good News. The Value is in cm no matter in what language of software it was created. To be sure check in this polish, very old (latest save in version 2011) template.

 

BR

0 Likes