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

Cannot modify a drawing view

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
Labels (2)