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: 

Get the current configuration name of an I-Assembly?

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
Gruff
270 Views, 2 Replies

Get the current configuration name of an I-Assembly?

How do I get the current configuration name of an I-Assembly?

 

I am using currentrow of the I-factory, but not getting consistent results.

 

 

2 REPLIES 2
Message 2 of 3
Balaji_Ram
in reply to: Gruff

Hi,

 

I do not see an inconsistent result in using the DefaultRow to get the current configuration. 

Can you please share a non-confidential sample file to help reproduce the problem ?

 

Here is the VBA code that i used which worked ok.

 

    Dim iAsmDocument As AssemblyDocument
    Set iAsmDocument = ThisApplication.ActiveDocument
    If iAsmDocument.ComponentDefinition.IsiAssemblyFactory Then
        Dim oiAssyFactory As iAssemblyFactory
        Set oiAssyFactory = iAsmDocument.ComponentDefinition.iAssemblyFactory
        Dim oiAssyTableRow As iAssemblyTableRow
        Set oiAssyTableRow = oiAssyFactory.DefaultRow
        Debug.Print "Default Row : " & oiAssyTableRow.MemberName
   End If

Regards,

Balaji



Balaji
Developer Technical Services
Autodesk Developer Network

Message 3 of 3
Gruff
in reply to: Balaji_Ram

Thank you Balaji_Ram,

That is pretty much the method I am using as well.
It may be user error.
I put a in a label to display the selected membername.before they continue processing the i-assembly. With this verification in place I have not seen the problem arise again.


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

Post to forums  

Autodesk Design & Make Report