Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Check if normal IAM or Factory Layout

1 REPLY 1
Reply
Message 1 of 2
mk92
179 Views, 1 Reply

Check if normal IAM or Factory Layout

Hi,

 

is it possible to check via iLogic or VBA if I am in an Factory Layout or in an normal IAM ?

 

Kind regards.

1 REPLY 1
Message 2 of 2
HermJan.Otterman
in reply to: mk92

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

 

 

If this answers your question then please select "Accept as Solution"
Kudo's are also appreciated Smiley Wink

Succes on your project, and have a nice day

Herm Jan


Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report