Edit TAPINFO

Edit TAPINFO

Anonymous
Not applicable
540 Views
3 Replies
Message 1 of 4

Edit TAPINFO

Anonymous
Not applicable
I can read the values and properties of .Features.HoleFeatures.Item(i).TapInfo but how can I change it? Basically, I want to not create a new feature, but change the tap diameter of an existing holefeature. It's nice that a standard hole can reference the user or table parameters, but a TAP hole locks us into selecting from the ANSI (etc) list of sizes, no parameter options. The ability to Edit this feature (with no human) is our only option of maintaining IDW dimensioning. I'm running I-Series 10 and am using VB6.

Thanks,
Brian
0 Likes
541 Views
3 Replies
Replies (3)
Message 2 of 4

Anonymous
Not applicable
Brian,

It seems like you are looking to customize the hole feature beyond what is
possible thru the user interface. Unfortunately, this is not possible.

Just like the user interface, the API restricts the selection to one of the
available sizes in the spreadsheet. Though some of the properties on the
TapIno object are read-write, it is strongly recommended that you swap out
the entire TapInfo object if you intend to edit it. And every TapInfo object
must correspond to a row in the spreadsheet.

Sanjay-


wrote in message news:5206630@discussion.autodesk.com...
I can read the values and properties of
.Features.HoleFeatures.Item(i).TapInfo but how can I change it? Basically,
I want to not create a new feature, but change the tap diameter of an
existing holefeature. It's nice that a standard hole can reference the user
or table parameters, but a TAP hole locks us into selecting from the ANSI
(etc) list of sizes, no parameter options. The ability to Edit this
feature (with no human) is our only option of maintaining IDW dimensioning.
I'm running I-Series 10 and am using VB6.

Thanks,
Brian
0 Likes
Message 3 of 4

Anonymous
Not applicable
Actually, all I wish to do is automatically change between "approved values" from the TAP spread sheet. I would like check a user/table parameter value and have the VBA adjust the TAPINFO accordingly to the "approved value".

How would I swap the entire TAPINFO object? I looked in the help file and I couldn't see how to adjust that just portion. If that's my only option, being able to do that does solve my problem.

Thanks,
Brian
0 Likes
Message 4 of 4

Anonymous
Not applicable
In order to swap the entire TapInfo object, create a new HoleTapInfo object
using HoleFeatures.CreateTapInfo method. In this method, you are essentially
choosing a row from the spreadsheet. Then set this object into the
HoleFeature.TapInfo property.

Dim oNewTapInfo As HoleTapInfo
Set oNewTapInfo = oHoleFeatures.CreateTapInfo ( ..... )

oHoleFeature.TapInfo = oNewTapInfo

Sanjay-


wrote in message news:5206746@discussion.autodesk.com...
Actually, all I wish to do is automatically change between "approved values"
from the TAP spread sheet. I would like check a user/table parameter value
and have the VBA adjust the TAPINFO accordingly to the "approved value".

How would I swap the entire TAPINFO object? I looked in the help file and I
couldn't see how to adjust that just portion. If that's my only option,
being able to do that does solve my problem.

Thanks,
Brian
0 Likes