- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello Everyone,
I have been in the process of implementing several Ilogic codes to make the workflow in our company better. All of them are working, but one is giving me problems. When in a sheet metal, i have a trigger set on save of the document. This trigger executes my flat pattern check ilogic. If there is no flat pattern it will be created, if there is a flat pattern it will be updated.
But when i'm in a assembly and i change my part inside an assembly (So double click the part, make the changes, and return to assembly) upon saving i get multiple errors. For example the following:
When i press OK i get the following:
After which it saves without a problem.
I am sure that my fellow engineers will find this a nuisance so I would like to resolve this issue. Is there a way to do this? If not possible is there a code that i can run when i'm inside an assembly that checks if all flat patterns are made?
So for example i've created a weldment which consists of sheet metal parts, in the weldment i add my Ilogic to my forms. Upon clicking it the check will be done and the missing flat patterns will be created.
I hope somebody can help me.
Below is the rule i'm using in my sheet metal parts:
Dim partDoc As PartDocument If ThisApplication.ActiveDocument.DocumentType <> kPartDocumentObject Then MessageBox.Show ("Please open a part document", "iLogic") End If 'Check for flat pattern >> create one if needed Dim oDoc As PartDocument oDoc = ThisApplication.ActiveDocument Dim oCompDef As SheetMetalComponentDefinition oCompDef = oDoc.ComponentDefinition If oCompDef.HasFlatPattern = False Then oCompDef.Unfold Else oCompDef.FlatPattern.Edit End If Dim oSMDef As SheetMetalComponentDefinition oSMDef = oDoc.ComponentDefinition oSMDef.FlatPattern.ExitEdit
With kind regards,
Koen Roovers
Solved! Go to Solution.