Message 1 of 10
Changing Document SubType
Not applicable
09-27-2004
05:26 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
To all,
I am using the the following code to change the subtype of a PartDocument to
"SheetMetal".
As can be seen, I am doing this during a "OnSaveDocument" Event.
But when I change the SubType, the BrowserPanel also changes to
"SheetMetal".
I don't want this to happen! How can I stop Inventor from changing the
BrowserPanel???
Thanks in advance,
Teun
'Code snippet...
Private Sub oDocumentEvents_OnSaveDocument(ByVal DocumentObject As
Inventor.Document, ByVal BeforeOrAfter As Inventor.EventTimingEnum, ByVal
Context As Inventor.NameValueMap, HandlingCode As Inventor.HandlingCodeEnum)
If DocumentObject.DocumentType = kPartDocumentObject Then
If BeforeOrAfter = kBefore Then
Dim oDoc As PartDocument
Set oDoc = DocumentObject
oDoc.SubType = "{9C464203-9BAE-11D3-8BAD-0060B0CE6BB4}" 'Change to
SheetMetal
'Etc etc etc