- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
To get the item, it's "Item(Value).":
https://help.autodesk.com/view/INVNTOR/2023/ENU/?guid=GUID-780E05F5-6334-4F34-AC70-D519516A2DF6