10-17-2017
06:59 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
10-17-2017
06:59 PM
Hello @Anonymous,
Before running the code, did you manually deleted customized LOG named as "iLogic" which is you are trying to get from this line:
oFileManager.GetLastActiveLevelOfDetailRepresentation(ThisDoc.PathAndFileName(True))
If you have activated LOD named as iLogic, then change LOD to the other one with deleting "iLogic" LOD to do test, the line of getting last active LOD would raise an error when you run the rule because it is actually deleted.
If the name of customized LOD is certain, recommend you to use the name string directly:
strLastActiveLOD = "iLogic"

Jane Fan
Inventor QA Engineer