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

Capture ActiveLevelOfDetailRepresentation value

ashhof
Explorer

Capture ActiveLevelOfDetailRepresentation value

ashhof
Explorer
Explorer

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.

 

0 Likes
Reply
Accepted solutions (1)
242 Views
2 Replies
Replies (2)

ashhof
Explorer
Explorer
Accepted solution

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

0 Likes

Frederick_Law
Mentor
Mentor
0 Likes