Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
JaneFan
in reply to: Anonymous

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