PresentationObject doesn't support Rebuild method?

PresentationObject doesn't support Rebuild method?

WK-VA
Contributor Contributor
437 Views
5 Replies
Message 1 of 6

PresentationObject doesn't support Rebuild method?

WK-VA
Contributor
Contributor

Hi all,

 

Why does this

' I know it's an IPN file!
Set oModelDoc = oDrawingView.ReferencedDocumentDescriptor.ReferencedDocument
' Either this...
oModelDoc.Rebuild 
' ...or this
oModelDoc.Rebuild2 (True)

 fail with Runtime error 445 "Object doesn't support this action"?

 

The documentation clearly states that Rebuild as well as Rebuild2 are methods of Document and PresentationDocument class...?

 

Thanks in advance!

0 Likes
438 Views
5 Replies
Replies (5)
Message 2 of 6

bradeneuropeArthur
Mentor
Mentor

Because an Ipn cannot be rebuild!

Only the referenced Assembly can be rebuild.

Try this:

Dim d As Inventor.DrawingDocument = ThisDrawing.Document
Dim v As Inventor.DrawingView = d.Views.Item(1)
' I know it's an IPN file!
Dim omodeldoc As Inventor.AssemblyDocument
omodeldoc = v.ReferencedDocumentDescriptor.ReferencedDocument

Dim adoc As Inventor.Document = omodeldoc.ReferencedDocuments.Item(1)
adoc.Rebuild
adoc.Rebuild

 

 

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:
Drawing List!|
Toggle Drawing Sheet!|
Workplane Resize!|
Drawing View Locker!|
Multi Sheet to Mono Sheet!|
Drawing Weld Symbols!|
Drawing View Label Align!|
Open From Balloon!|
Model State Lock!
Posts and Ideas:
My Ideas|
Dimension Component!|
Partlist Export!|
Derive I-properties!|
Vault Prompts Via API!|
Vault Handbook/Manual!|
Drawing Toggle Sheets!|
Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !


 


EESignature

0 Likes
Message 3 of 6

WK-VA
Contributor
Contributor

Well, by trial and error, I noticed, that

Rebuild

Rebuild2

Update2

are not supported by PresentationDocument, while

Update

seems to be supported.

 

On the other hand, then your documentation seems to be completely off... (See attached screenshots, I'm obviously too dumb to include them into the posting right now...)

 

I thought that at least the VBA object browser reference sheets would be generated automatically, based on the respective classes definitions?

Message 4 of 6

bradeneuropeArthur
Mentor
Mentor

That seems to be not correctly documented than!

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:
Drawing List!|
Toggle Drawing Sheet!|
Workplane Resize!|
Drawing View Locker!|
Multi Sheet to Mono Sheet!|
Drawing Weld Symbols!|
Drawing View Label Align!|
Open From Balloon!|
Model State Lock!
Posts and Ideas:
My Ideas|
Dimension Component!|
Partlist Export!|
Derive I-properties!|
Vault Prompts Via API!|
Vault Handbook/Manual!|
Drawing Toggle Sheets!|
Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !


 


EESignature

0 Likes
Message 5 of 6

WK-VA
Contributor
Contributor

That's what I think as well...

 

Just for clarification: Are you member of the official Autodesk team?

If yes, then I would consider your statement as an official confirmation of the facts and thus mark the topic as solved. 

0 Likes
Message 6 of 6

bradeneuropeArthur
Mentor
Mentor

Hi @WK-VA 

I am an Autodesk Expert Elite Member and not part of the Autodesk Team.

So the statement is only a assumption!

@johnsonshiue could you ask the development team for a confirmation!

Regards,

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:
Drawing List!|
Toggle Drawing Sheet!|
Workplane Resize!|
Drawing View Locker!|
Multi Sheet to Mono Sheet!|
Drawing Weld Symbols!|
Drawing View Label Align!|
Open From Balloon!|
Model State Lock!
Posts and Ideas:
My Ideas|
Dimension Component!|
Partlist Export!|
Derive I-properties!|
Vault Prompts Via API!|
Vault Handbook/Manual!|
Drawing Toggle Sheets!|
Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !


 


EESignature

0 Likes