- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello all,
I have some code that used to run fine in older versions of inventor. Now in 2023 setting the SheetMetalStyle.Thickness property to a parameter name does not seem to work.
Anyone else had this problem?
My code below:
// Find the 'default_mm' sheet metal style
SheetMetalStyle style;
try
{
style = scDef.SheetMetalStyles["Default_mm"];
Logger.Info($"Retrieved sheet metal style {style.Name}");
}
catch (Exception ex)
{
Logger.Error($"Failed to activate sheet metal style", ex);
throw;
}
// this code will not be reached if sheet metal style failed to activate
style.Activate();
scDef.UseSheetMetalStyleThickness = false;
style.Thickness = thicknessParameterName; // this does not work
Contact me for custom app development info@basautomationservices.com. Follow below links to view my Inventor appstore apps.
Free apps: Smart Leader | Part Visibility Utility | Mate Origins
Paid apps: Frame Stiffener Tool | Constrain Plane Toggle | Property Editor Pro
Free apps: Smart Leader | Part Visibility Utility | Mate Origins
Paid apps: Frame Stiffener Tool | Constrain Plane Toggle | Property Editor Pro
Solved! Go to Solution.
Link copied