Hello,
is there any possibility to access Preparation Items inside Drawing View - Model State dialog with iLogic code (API)?
I also saw few thread regarding accessing the "Model State" inside "Drawing View" is not possible. Is there any new news (or implementation) on that?
Best regards,
Rene Repina
Solved! Go to Solution.
Solved by YuhanZhang. Go to Solution.
The DrawingView.SetWeldmentState allows you to set the weldment state circled in the picture. Please refer to the documentation for more details:
http://help.autodesk.com/view/INVNTOR/2020/ENU/?guid=GUID-EEF8071C-6ABA-42E1-A7D1-72B18B0D8756
Dear Rocky @YuhanZhang ,
doing some additional research on this topic I have landed at this video from @Anonymous.sekar.g which makes me think that the following code:
Sub TEST()
Dim oDrawDoc as DrawingDocument
Set oDrawDoc = ThisApplication.ActiveDocument
Dim oSheet as Sheet
Dim oWeldState As WeldmentStateEnum
Dim oWeldObject As Object
Dim oDrawView As DrawingView
For Each oSheet In oDrawDoc.Sheets
For Each oDrawView In oSheet.DrawingViews
If oDrawView.ViewType = kStandardDrawingViewType Then
Call oDrawView.GetWeldmentState(oWeldState, oWeldObject)
End If
Next
Next
end sub
fails on the method GetWeldmentState (as it is in happening in my specific case as well).
So I imagine that sometimes in the past you have addressed the INVGEN-17324 issue.
Would you be so kind to share on which release/update this issue has been addressed, or eventually share the right syntax to use this method?
...oh... I just discovered that INVGEN-17324 has been fixed on 2020 😓
You're right, it was fixed for Inventor 2020.
Can't find what you're looking for? Ask the community or share your knowledge.