Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
A.Acheson
in reply to: Alex.Shechter

Hi @Alex.Shechter 

I would caution the use of change and even more so if your a beginner. It really comes up with code that does not exist in the Inventor API. Instead stick with published sources such as the API Help.

 

For example this  loop right here will go no where because there is no such object as textformats and nothing even related inside the sketch object shown here. Maybe it was intending to use text boxes. 

For Each TextFormat As TextFormat In titleBlockDef.Sketches.Item("Schriftfeld").TextFormats
   

 I am not entirely sure what your intending to do by your description of the worklfow so maybe can you provide an image of your intended changes? 

Also changing items in a titleblock is not best practice as you would normally change the titleblock to a custom one and simply swap that.

If this solved a problem, please click (accept) as solution.‌‌‌‌
Or if this helped you, please, click (like)‌‌
Regards
Alan