Community
Hi,
is it possible to check via iLogic or VBA if I am in an Factory Layout or in an normal IAM ?
Kind regards.
I think you should look here somewhere (look at the code)
in the attributes of a Factory layout you can find some factory things
Dim oDoc As Inventor.AssemblyDocument = _inventorApplication.ActiveDocument
Dim attributeSets As AttributeSets = oDoc.ComponentDefinition.AttributeSets
If attributeSets.Count > 0 Then
For Each attributset As AttributeSet In attributeSets
If attributset.Name = "com.autodesk.inventor.NWMFactory" Then
For Each attribute As Attribute In attributset
MsgBox(attribute.Value.ToString)
Next
End If
Next
I hope this helps