Inventor Customization

Posts: 3
Registered: ‎01-15-2013
Message 1 of 2 (155 Views)
Accepted Solution

Border's Rangebox with Apprentice?

155 Views, 1 Replies
02-19-2013 03:18 AM

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,
Posts: 215
Registered: ‎01-16-2006
Message 2 of 2 (141 Views)

Re: Border's Rangebox with Apprentice?

02-20-2013 02:25 AM in reply to: omanuo

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

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community

Inventor Exchange Apps

Created by the community for the community, Autodesk Exchange Apps for Autodesk Inventor helps you achieve greater speed, accuracy, and automation from concept to manufacturing.

Connect with Inventor