Message 1 of 3

Not applicable
06-25-2021
10:34 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi All...
Used all day on this and it is driving me nuts 🙂
If I have a Main Assembly with a subassembly in it.
How can you have a iLogic go into the subassembly and change LOD to Master and save the file.
I can make it work with a custom LOD. But for some reason Master will not save.
Simple iLogic rule in Main assembly:
oAsembly = "C:\xxx\SubAssembly.iam" doc = ThisApplication.Documents.Open(oAsembly,False) auto = iLogicVb.Automation auto.RunRule(doc, "MasterLOD")
Simple iLogic rule (MasterLOD) in SubAssembly :
oDoc = ThisDoc.Document
oDoc.ComponentDefinition.RepresentationsManager.LevelofDetailRepresentations("Master").Activate oDoc.Save
Any idea what is wrong.
/Jacob
Solved! Go to Solution.