How to programatically assign the Margin property of Drawing View

How to programatically assign the Margin property of Drawing View

AndrewPotachits
Enthusiast Enthusiast
718 Views
5 Replies
Message 1 of 6

How to programatically assign the Margin property of Drawing View

AndrewPotachits
Enthusiast
Enthusiast
When creating a drawing section view, sometimes I need to adjust the margin. How can I access this option via Inventor API? I've been looking through the DrawingView and SectionDrawingView objects API help, but I didn't manage to find it. Did anyone have a chance to find/adjust it via the API? Thanks.
0 Likes
719 Views
5 Replies
Replies (5)
Message 2 of 6

MechMachineMan
Advisor
Advisor

I would see if manipulating the Camera does anything... Otherwise, this might just be one of those things that is not exposed.


--------------------------------------
Did you find this reply helpful ? If so please use the 'Accept as Solution' or 'Like' button below.

Justin K
Inventor 2018.2.3, Build 227 | Excel 2013+ VBA
ERP/CAD Communication | Custom Scripting
Machine Design | Process Optimization


iLogic/Inventor API: Autodesk Online Help | API Shortcut In Google Chrome | iLogic API Documentation
Vb.Net/VBA Programming: MSDN | Stackoverflow | Excel Object Model
Inventor API/VBA/Vb.Net Learning Resources: Forum Thread

Sample Solutions:Debugging in iLogic ( and Batch PDF Export Sample ) | API HasSaveCopyAs Issues |
BOM Export & Column Reorder | Reorient Skewed Part | Add Internal Profile Dogbones |
Run iLogic From VBA | Batch File Renaming| Continuous Pick/Rename Objects

Local Help: %PUBLIC%\Documents\Autodesk\Inventor 2018\Local Help

Ideas: Dockable/Customizable Property Browser | Section Line API/Thread Feature in Assembly/PartsList API Static Cells | Fourth BOM Type
0 Likes
Message 3 of 6

AndrewPotachits
Enthusiast
Enthusiast
What camera manipulation may lead the same effect as setting certain value for Margin?
0 Likes
Message 4 of 6

MechMachineMan
Advisor
Advisor

Well, quickly glancing at the API reference for the Camera object, SetExtents sounds very promising.


--------------------------------------
Did you find this reply helpful ? If so please use the 'Accept as Solution' or 'Like' button below.

Justin K
Inventor 2018.2.3, Build 227 | Excel 2013+ VBA
ERP/CAD Communication | Custom Scripting
Machine Design | Process Optimization


iLogic/Inventor API: Autodesk Online Help | API Shortcut In Google Chrome | iLogic API Documentation
Vb.Net/VBA Programming: MSDN | Stackoverflow | Excel Object Model
Inventor API/VBA/Vb.Net Learning Resources: Forum Thread

Sample Solutions:Debugging in iLogic ( and Batch PDF Export Sample ) | API HasSaveCopyAs Issues |
BOM Export & Column Reorder | Reorient Skewed Part | Add Internal Profile Dogbones |
Run iLogic From VBA | Batch File Renaming| Continuous Pick/Rename Objects

Local Help: %PUBLIC%\Documents\Autodesk\Inventor 2018\Local Help

Ideas: Dockable/Customizable Property Browser | Section Line API/Thread Feature in Assembly/PartsList API Static Cells | Fourth BOM Type
0 Likes
Message 5 of 6

Anonymous
Not applicable

Hi,   I Have the same problem with the drawing view margins and using the API... Did You Ever Figure This out.. I cant get it.

 

Thanks in Advance

 

0 Likes
Message 6 of 6

maxim.teleguz
Advocate
Advocate

im also looking for this in 2020

0 Likes