Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
ashhof
242 Views, 2 Replies

Capture ActiveLevelOfDetailRepresentation value

I am just trying to capture the value of the ActiveLevelOfDetailRepresentation that is under the Item.Definition but when I do it throws an error "Compile error:  Argument not optional" and highlights the ".Item".  I know that the value is populated because if I do a watch on it, I see what is attached.

 

I tried this:

Set oSubs = oDef.ReferenceComponents.DerivedAssemblyComponents

Dim DerivedNameRef As String

DerivedNameRef = oSubs.Item.Definition.ActiveLevelOfDetailRepresentation

 

But when I do that it shows the error and highlights the .Item in the third line above.

 

ashhof
in reply to: ashhof

shoot.  Right after I posted this, I figured it out.  I was missing the argument.  So I needed this:

 

DerivedNameRef = oSubs.Item(1).Definition.ActiveLevelOfDetailRepresentation

Frederick_Law
in reply to: ashhof