Updating Title Block using ApprenticeServer

Updating Title Block using ApprenticeServer

Anonymous
Not applicable
476 Views
6 Replies
Message 1 of 7

Updating Title Block using ApprenticeServer

Anonymous
Not applicable
Is it possible to modify the Drawing Revision entered in an INV Drawing file using ApprenticeServer without opening the INV Drawing file explicitely in Inventor application?

Please help.
0 Likes
477 Views
6 Replies
Replies (6)
Message 2 of 7

Anonymous
Not applicable
Yes, you can modify file properties of a document using Apprentice. The
titleblock will be updated the next time the document is opened in Inventor.

Sanjay-

wrote in message news:5205530@discussion.autodesk.com...
Is it possible to modify the Drawing Revision entered in an INV Drawing file
using ApprenticeServer without opening the INV Drawing file explicitely in
Inventor application?

Please help.
0 Likes
Message 3 of 7

Anonymous
Not applicable
Sanjay,
Can u please elaborate on how to do this?
I tried getting the Document sheet. But there are no methods further to get the Title Block of the Drawing.

I am attaching the piece of code which i have used.
Any help would be very much appriciated.


Thanks and regards,
Nagarajan R

Code:

Set oApprenticeServerDoc = oApprenticeApp.Open(txtFilename.Text)
If oApprenticeServerDoc Is Nothing Then
MsgBox "Unable to open the specified document."
Exit Sub
End If

oApprenticeServerDoc.Sheets(1).TitleBlock
??? This does not work
0 Likes
Message 4 of 7

Anonymous
Not applicable
I believe that you can only access the iProperties of the IDW, but getting
the Prompted Entries from a TitleBlock is not supported (Sanjay, please
correct me if I am wrong)

--
T. Ham
Mechanical Engineer
CDS Engineering BV

Dual Pentium XEON 2.2 Ghz
2 GB SDRAM
NVIDIA QUADRO4 700 XGL (Driver = 77.18)
18 GB SEAGATE SCSI Hard Disc
3Com Gigabit NIC

Windows 2000 Professional SP4
Autodesk Inventor Series 9 SP4
Autodesk Inventor Series 10 SP3a
--
0 Likes
Message 5 of 7

Anonymous
Not applicable
So you meant to say this has to be done as two step process:
Step 1. Using the apprentice server, first update the iProperties.
Step 2. Using a macro then update the title block when the drawing is opened in Inventor next time.

Is that correct?

Please reply. Thanks.
0 Likes
Message 6 of 7

Anonymous
Not applicable
The Title Block will update automaticly when you open the drawing in
Inventor, so you will not need a macro for that.

--
T. Ham
Mechanical Engineer
CDS Engineering BV

Dual Pentium XEON 2.2 Ghz
2 GB SDRAM
NVIDIA QUADRO4 700 XGL (Driver = 77.18)
18 GB SEAGATE SCSI Hard Disc
3Com Gigabit NIC

Windows 2000 Professional SP4
Autodesk Inventor Series 9 SP4
Autodesk Inventor Series 10 SP3a
--
0 Likes
Message 7 of 7

karram
Advocate
Advocate

Hello,

 

My requirement is same like your case.

Can you please share your Apprentice program.

 

Thanks

Karthick

0 Likes