11-20-2017
08:33 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
11-20-2017
08:33 AM
See my signature for some documentation on debugging manually in iLogic.
Also, "lenght" vs "length".
Select Case Parameter("15231.10:1", "Conveyor_Length")
Case <=7000
ActiveSheet.View("VIEW1").Scale=1/45
ActiveSheet.View("VIEW3").Scale=1/55
ActiveSheet.View("VIEW5").Scale=1/55
Case <=11000
ActiveSheet.View("VIEW1").Scale=1/65
ActiveSheet.View("VIEW3").Scale=1/75
ActiveSheet.View("VIEW5").Scale=1/65
Case <=15000
ActiveSheet.View("VIEW1").Scale=1/85
ActiveSheet.View("VIEW3").Scale=1/95
ActiveSheet.View("VIEW5").Scale=1/85
End Select
ActiveSheet.View("VIEW1").SetSpacingToCorner(20, 80, SheetCorner.BottomLeft)
ActiveSheet.View("VIEW2").SetSpacingToCorner(230, 90, SheetCorner.BottomLeft)
ActiveSheet.View("VIEW3").SetSpacingToCorner(280, 40, SheetCorner.BottomLeft)
ActiveSheet.View("VIEW5").SetSpacingToCorner(280, 90, SheetCorner.BottomLeft)
Dim oDoc As DrawingDocument
oDoc = ThisDoc.Document
Dim oSheet As Sheet
oSheet = oDoc.ActiveSheet
Dim oDrawingDim As DrawingDimension
For Each oDrawingDim In oSheet.DrawingDimensions
If TypeOf oDrawingDim Is LinearGeneralDimension Or _
TypeOf oDrawingDim Is AngularGeneralDimension Then
oDrawingDim.CenterText
End If
Next
InventorVb.DocumentUpdate()
--------------------------------------
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
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