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

Run-time error "Public Member Not found"

Wanting to add an image to an existing title block in a drawing set & defined the following:

Dim oTitleBlockDef As Inventor.TitleBlockDefinition
    oTitleBlockDef = oDrawDoc.TitleBlockDefinition

Ref: (oDrawDoc = ThisApplication.ActiveDocument)

 

Get the following run-time error when trying to run the iLogic routine:

 

Error on line 7 in rule: Insert Image 2, in document: xxxx.idw

Public member 'TitleBlockDefinition' on type '_DocumentClass' not found.

 

What is proper way to define the name of the existing Title Block to the code?

 

Thanks in advance...