07-08-2016
04:22 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
07-08-2016
04:22 AM
Looks like you might be missing the lower part of your code (If Then … Nothing!), but off the top of my head, it looks like you’re assigning ThisApplication.ActiveDocument to a oDoc. The problem with that, from the Assembly level, is that the Active Document would be of the AssemblyDocumentType, and not the PartDocumentType.
The AssemblyDocument Type has subtype or SheetMetalComponentDefinition.
If you have that rule set up in an individual part (meaning that it isn’t an external rule), you should try using ‘ThisDoc.Document’ instead of ThisApplication.ActiveDocument.
If my solution worked or helped you out, please don't forget to hit the kudos button
iLogicCode Injector: goo.gl/uTT1IB
