Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Border's Rangebox with Apprentice?

1 REPLY 1
SOLVED
Reply
Message 1 of 2
omanuo
384 Views, 1 Reply

Border's Rangebox with Apprentice?

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
1 REPLY 1
Message 2 of 2
GVDB
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

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report