Get the current configuration name of an I-Assembly?

Get the current configuration name of an I-Assembly?

Anonymous
Not applicable
411 Views
2 Replies
Message 1 of 3

Get the current configuration name of an I-Assembly?

Anonymous
Not applicable

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.

 

 

0 Likes
Accepted solutions (1)
412 Views
2 Replies
Replies (2)
Message 2 of 3

Balaji_Ram
Alumni
Alumni

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

0 Likes
Message 3 of 3

Anonymous
Not applicable
Accepted solution
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.


0 Likes