Flat Pattern Configuration

Hi,

How can check if FLATTEN features are unssupressed on all flat pattern configurations, and if are suppressed then unssupress???

Thanks!

SolidworksApi macros
Answers 1
VB
VB 2016-02-05 Best Answer

Hi Hrituc

You can traverse sheet metal feature using this example: 2013 SOLIDWORKS API Help - Get All Sheet Metal Feature Data Example (VBA) . Get all features which came to the line: Case "FlatPattern"

get all configuration names: vConfigNameArr = swModel.GetConfigurationNames

then for each found flat pattern feature and for each configuration check if it is suppressed: 2015 SOLIDWORKS API Help - Is Feature Suppressed in Configuration Example (VBA)

then you can unsupress feature using this example:2012 SOLIDWORKS API Help - Suppress or Unsuppress Feature Example (VBA)

Regards

Viktor