Cannot modify a drawing view
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
The problem is intermittent, so very difficult to correct.
When we modify a view created by my AddIn, sometimes, when we click on Ok after the modification, the projection of the next view remains active. Then, the only way to end the modification is to cancel with "Esc" and the modification initially wanted is also canceled. The only way to make the change is to close Inventor and start over.
Here is the code that creates the view:
Dim oBaseViewOptions As NameValueMap = goApp.TransientObjects.CreateNameValueMap()
If oModelDoc.DocumentType = DocumentTypeEnum.kAssemblyDocumentObject Then
oBaseViewOptions.Add("DesignViewRepresentation", strType)
oBaseViewOptions.Add("DesignViewAssociative", True)
End If
Dim oView As DrawingView = oSheet.DrawingViews.AddBaseView(oModelDoc, oPoint, 1, oViewOrientation, oDrwStyle, "", Nothing, oBaseViewOptions)
If oModelDoc.DocumentType = DocumentTypeEnum.kAssemblyDocumentObject Then
oView.ActiveLevelOfDetailRepresentation = "Avenger"
End If
oView.IsRasterView = False
oView.Suppressed = False
oView.DisplayTangentEdges = True
Return oView
All suggestion is welcome!
Thank you!
Israël Marin
Programmeur | Programmer
Logiflex
