- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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
If this solves the problem please click ACCEPT SOLUTION so other people can find it easily.

Rocky Zhang
Inventor API PD
Manufacturing Solutions
Autodesk, Inc.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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?
CAD R&D // PDM Admin · Hekuma GmbH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
You're right, it was fixed for Inventor 2020.
If this solves the problem please click ACCEPT SOLUTION so other people can find it easily.

Rocky Zhang
Inventor API PD
Manufacturing Solutions
Autodesk, Inc.