Changing holetable using API

Changing holetable using API

Anonymous
Not applicable
295 Views
0 Replies
Message 1 of 1

Changing holetable using API

Anonymous
Not applicable

Hi,

We have Invento 2015 and I am trying to change the decimal places (precision) of the holetable row using API.

 

in Inventor API documentation suggest it is possible to change the text and formated text for holetabelcell.

This is the page for the HoleTableCell

 

 

HoleTableCell.FormattedText Property

HoleTableCell.FormattedText Property

Parent Object: HoleTableCell

Description

Property that gets and sets the fully formatted string that defines the contents of the dimension or note text.

Syntax

HoleTableCell.FormattedText() As String

Version

Introduced in Inventor version 10

I can get the formatredText like this:

debug.print ThisApplication.ActiveDocument.HoleTables(1).HoleTableRows(1).Item(2).FormattedText

 

and for example it will return "0.63 in"

 

But when I try to set this value to a new number, it will generate error. 

ThisApplication.ActiveDocument.HoleTables(1).HoleTableRows(1).Item(2).FormattedText="0.625 in"

Error: Method 'FormattedText' of Object 'HoleTableCell" failed.

 

The same thing will happen if I try to modify the Text member of the HoleTableCell.

 

 

Any idea? How can I modify the decimal places (precision) for a particular cell of the Holetable.

 

 

Thanks

Hamid

 

0 Likes
296 Views
0 Replies
Replies (0)