Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Changing holetable using API

0 REPLIES 0
Reply
Message 1 of 1
Anonymous
257 Views, 0 Replies

Changing holetable using API

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 REPLIES 0

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report