protected override void DoAction() { SolidWorksWrapper.SelectFeature(SolidWorksDoc, FeatureName, InstanceID, ItemType); if (Suppress) { SolidWorksDoc.EditSuppress(); } else { SolidWorksDoc.EditUnsuppress(); } }
protected override void DoAction() { string myFeatureName = ParseStringForVariable(FeatureName); string myInstanceId = ParseStringForVariable(InstanceId); string myItemType = ParseStringForVariable(ItemType); Message("Setting suppression state of \"" + myFeatureName + ":" + myInstanceId + "\" to " + Convert.ToString(Suppress)); SolidWorks.SelectFeature(SolidWorksDoc, myFeatureName, myInstanceId, myItemType); if (Suppress) { SolidWorksDoc.EditSuppress(); } else { SolidWorksDoc.EditUnsuppress(); } }