Border's Rangebox with Apprentice?

Border's Rangebox with Apprentice?

Anonymous
Not applicable
514 Views
1 Reply
Message 1 of 2

Border's Rangebox with Apprentice?

Anonymous
Not applicable

Hi everyone,
 
I wanted to use the apprentice service to get the rangebox of the border of a template file, which represents the free drawing space on the sheet, without having to open the template in Inventor itself.
Actually it seems that the apprentice server hasn't implemented Rangeboxes yet, not even read-only for the X and Y values. Is this correct or am I just doing something wrong?
 
Furthermore I once saw the apprentice server api object model as a small picture in a presentation, but I can't find it in a readable size on the net. By chance, does anyone has the link to that document, if it still exists?

Thanks in advance,
Manu
0 Likes
Accepted solutions (1)
515 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable
Accepted solution

You can try this:

 

Set oApprenticeApp = New ApprenticeServerComponent

'Open drawing
Dim oApprenticeServerDWGDoc As ApprenticeServerDrawingDocument
Set oApprenticeServerDWGDoc = oApprenticeApp.Open(strDWGName)

dim oBox2D as inventor.Box2D
set  oBox2D = oApprenticeServerDWGDoc.Sheets.Item(1).Border.RangeBox

0 Likes