Follow the link below. Familiarize yourself with the "general structure" of the API. Enjoy no longer being dependent on forum responses to do very simple tasks with the API!
https://knowledge.autodesk.com/support/inventor-products/learn-explore/caas/simplecontent/content/au...
http://help.autodesk.com/view/INVNTOR/2018/ENU/?guid=GUID-AA811AF0-2494-4574-8C43-4C22E608252F
(ie; to solve this, I looked at the file, found anything related to "border" and traced it all of the way upwards to Application.)
(( BorderDefinition > BorderDefinitions > DrawingDocument > Documents > Application ))
Then, I started with "Application" (working backwards), searched it up in the API, and looked through the available methods/properties until i found the one that returned "Documents".
This gives us "ThisApplication.Documents"
Then I looked at the Documents object in the API link until I found the one that returns DrawingDocument.
I "couldn't" because it's a generic class, but from trial and error of testing the objects, I realized that if I had a Drawing open when I used "ThisApplication.ActiveDocument", then I would have a DrawingDocument.
I continued the same way until I got to border definition, then looked up border definition in the API resource, and found that the Name property is what I wanted.
Dim oSheetFormats As New ArrayList
For Each oBorderDef in ThisDoc.Document.BorderDefinitions
oSheetFormats.Add(oBorderDef.Name)
Next
--------------------------------------
Did you find this reply helpful ? If so please use the 'Accept as Solution' or 'Like' button below.