Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I tried to find some hints on the Inventor API help webpage, but no real success there..
Please help me to do the following.
How do I change this parameter in the drawing:
Located here (Title Block):
To this:
Using VBA macro?
Thank you!
* Update *
After further researching I identified that the Item(55) holds the information required, and came up with the following code:
Option Explicit
Sub DrwScale()
Dim oDoc As DrawingDocument
Set oDoc = ThisApplication.ActiveDocument
Dim oSheet As Sheet
Set oSheet = oDoc.ActiveSheet
Dim oTitleBlock As TitleBlock
Set oTitleBlock = oSheet.TitleBlock
oTitleBlock.Definition.Sketch.TextBoxes.Item(55).FormattedText = "<DerivedProperty DerivedID='29707'>Initial View Scale</DerivedProperty>"
End Sub
Which produces the following error:
I guess, the issue is that I incorrectly filled the FormattedText property.
Please help.
Also, could you provide a reference to the correct format of the FormattedText method?
Thank you!
Solved! Go to Solution.