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: 

Can i identify the parts that come from content center and frame generator?

1 REPLY 1
Reply
Message 1 of 2
Anonymous
415 Views, 1 Reply

Can i identify the parts that come from content center and frame generator?

Hi everyone!

how can i know if a part came from the content center or from the frame generator?

what is the event and parameter that fires when is placed a part from the frame generator or the content center?

thanks.
1 REPLY 1
Message 2 of 2
Mike.Wohletz
in reply to: Anonymous

I don't know what is different in what is placed from content center and what is done with frame generator, but I know that both have properties added to the files. it would be my guess that some value is not the same in this but the code for how I find it can be done can be found something like this..

{code}

Public Sub G_GetPropertiesNames(ByVal oDoc As Inventor.Document)
On Error Resume Next
Dim oProperties As Inventor.PropertySets = oDoc.PropertySets
For Each P As Inventor.PropertySet In oProperties
Form1.ListBox1.Items.Add(P.Name)
For Each I As Inventor.Property In P
Form1.ListBox1.Items.Add(Space(12) & I.Name)
Form1.ListBox1.Items.Add(Space(24) & I.Value)
Next
Next
End Sub

{code}
see attached image of above code

I know that parts placed from frame generator will have Attributes set in them named "com.autodesk.FG*"
I hope that this helps to find your answer.


Mike

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

Post to forums  

Autodesk Design & Make Report