Derived Assembly Associative option

Derived Assembly Associative option

Ktelang
Collaborator Collaborator
700 Views
4 Replies
Message 1 of 5

Derived Assembly Associative option

Ktelang
Collaborator
Collaborator

Hello Everybody,

 

PLease can any one help me finding this property

 

I want to un check this associativity thru VBA

 

' Create Derived Assembly Definition for the file Filename
Dim oDerivedAssem As DerivedAssemblyDefinition
Set oDerivedAssem = oPartCompDef.ReferenceComponents. _
DerivedAssemblyComponents.CreateDefinition(Filename)

oDerivedAssem. ????????

 

Thanks

 

 

------------------------------------------------------------------------------
Config :: Intel (R) Xeon (R) CPU E31245 @ 3.30 GHz, 16.0 GB, 64bit win7
Inventor 2013 and Vault Basic 2013
-----------------------------------------------------------------------------
0 Likes
701 Views
4 Replies
Replies (4)
Message 2 of 5

xiaodong_liang
Autodesk Support
Autodesk Support

Hi,

 

In theory,  if the associative flag is unchecked, the ActiveDesignViewRepresentation should return a null string. And setting a null string to ActiveDesignViewRepresentation should uncheck the flag. If putting ActiveDesignViewRepresentation with a not-null string, the associative flag should be checked. Hope this helps. 

0 Likes
Message 3 of 5

Jef_E
Collaborator
Collaborator

@xiaodong_liang i'm also having this issue when creating a derived assembly. I attached my code, hope that this gives a clear image of what happens. (I know that this an older topic but didn't saw any reason to start a new.)

 

When i run my code, it creates a new part with a derived assembly component in it. The view is pointing to "Simple" but associative flag is unchecked?

 

        
        Dim oPartDef As PartComponentDefinition
        oPartDef = oPartDoc.ComponentDefinition

        
        Dim oDerivedAssemblyDef As DerivedAssemblyDefinition
        oDerivedAssemblyDef = oPartDef.ReferenceComponents.DerivedAssemblyComponents.CreateDefinition(oDoc.FullDocumentName)

        
        oDerivedAssemblyDef.DeriveStyle = DerivedComponentStyleEnum.kDeriveAsSingleBodyWithSeams
        oDerivedAssemblyDef.ActiveDesignViewRepresentation = "Simple"
        oDerivedAssemblyDef.ReducedMemoryMode = True

       
        Dim oDerivedAssembly As DerivedAssemblyComponent
        oDerivedAssembly = oPartDef.ReferenceComponents.DerivedAssemblyComponents.Add(oDerivedAssemblyDef)

Here is a screenshot of my result using: Autodesk Inventor 2014 SP2

Derived assembly associative.png

 

 



Please kudo if this post was helpfull
Please accept as solution if your problem was solved

Inventor 2014 SP2
Message 4 of 5

HideoYamada
Advisor
Advisor

I encountered this problem now. It's too bad...

 

=====

Freeradical

 Hideo Yamada

=====
Freeradical
 Hideo Yamada
https://www.freeradical.jp
0 Likes
Message 5 of 5

HideoYamada
Advisor
Advisor

I've posted to the idea forum.

 

DerivedAssemblyDefinition must have IsAssociativeDesignView Property 

Please vote for this if you agree.

 

=====

Freeradical

 Hideo Yamada

 

=====
Freeradical
 Hideo Yamada
https://www.freeradical.jp
0 Likes