Message 1 of 5
Not applicable
05-14-2019
01:39 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Windows 10(64bit)
Inventor Professional 2019 (64bit Edition)
I would like to edit ChamferNote.Text.
Here is my Python3.7 code.
# -*- coding:utf-8 -*-
from win32com.client import gencache, constants
inv_lib = gencache.EnsureModule('{D98A091D-3A0F-4C3E-B36E-61F62068D488}', 0, 1, 0)
invApp = win32com.client.Dispatch("Inventor.Application")
doc = invApp.Documents.Open("Target.ipt", OpenVisible=True)
dra_doc = inv_lib.DrawingDocument(doc)
sheet = draw_doc.Sheets.Item(1)
for note in sheet.DrawingNotes.ChamferNotes:
print(note.Text) # C0.5
note.Text = "4-" + note.Text
Expected: note.Text == "4-C0.5"
Actual:
How do I write to get the expected result?
Solved! Go to Solution.