Hole Table "Title"

Hole Table "Title"

Scottwashburn
Participant Participant
462 Views
6 Replies
Message 1 of 7

Hole Table "Title"

Scottwashburn
Participant
Participant

Hello all. First time here.   I have not been able to find a way to change the Hole Table "Title". I want to use the "View Identifier" from the drawing as the "Title" when filled in.   I create a hole table for Each view and have to change the title every time to match the view identifier.

 

Thank you

0 Likes
463 Views
6 Replies
Replies (6)
Message 3 of 7

WCrihfield
Mentor
Mentor

Hi @Scottwashburn.  There are 3 different methods for creating a new HoleTable by code:

HoleTables.Add 

HoleTables.AddByFeatureType 

HoleTables.AddSelected 

None of those seem to allow you to specify the 'Title' of the new HoleTable they create.  So, I assume that we would have to set / change its title after we create it, using an additional line of code.  The following is a link to that property of the HoleTable object.

HoleTable.Title 

We may be able to use the DrawingView.Name property value to set its value.  If that is not accurate enough, then you may have to use the DrawingView.Label property to get its DrawingViewLabel object, then attempt to extract the view's identifier from within its DrawingViewLabel.FormattedText property value, which may be complicated to do, since it contains XML tags.

(I do not usually need to use use HoleTables, so do not normally need to work with them by code.)

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

0 Likes
Message 4 of 7

Scottwashburn
Participant
Participant

After many attempts i figured i would have to use Ilogic.  I usually have the views created and labeled then create my hole tables.

 

Thank you

0 Likes
Message 5 of 7

Frederick_Law
Mentor
Mentor

It could be more complicated then you think.

Might need to use Addin.

 

Attach a sample part and drawing with how you do it manually.

0 Likes
Message 6 of 7

Scottwashburn
Participant
Participant

I place my drawing views and label using the View Identifier.  I then create hole table for view that require. Then use the Tree to rename. 

 

Scottwashburn_0-1716391119943.png

 

0 Likes
Message 7 of 7

Scottwashburn
Participant
Participant

Drawing and part for reference.

 

Thank you.

0 Likes