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: 

iLogic to change General Dimension Type to Projected

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
Dylan_algar
136 Views, 2 Replies

iLogic to change General Dimension Type to Projected

Hi All,

 

Currently writing some code that creates a detail view based off of a section view. When the section view isn't running parallel to drawing's horizontal axis then when the detail view is created, the general dimension type is set to true. (This only happens when detail view is created through iLogic for some reason? when created manually it works fine).

 

Since the general dimension type is set to true, then my code for setting up the dimensions doesn't work. Is there a function to change this General Drawing Type setting in iLogic?

 

Dylan_algar_0-1696410923414.png

 

Thanks in advance!

Tags (3)
2 REPLIES 2
Message 2 of 3

Is this what you mean?

Dim d As Inventor.DrawingView = ThisApplication.CommandManager.Pick(inventor.SelectionFilterEnum.kDrawingViewFilter,"pick view")
d.GeneralDimensionType = Inventor.GeneralDimensionTypeEnum.kProjectedGeneralDimension  'Inventor.GeneralDimensionTypeEnum.kTrueGe

Regards,

Arthur Knoors

Autodesk Affiliations:

Autodesk Software:Inventor Professional 2024 | Vault Professional 2022 | Autocad Mechanical 2022
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:Drawing List!|Toggle Drawing Sheet!|Workplane Resize!|Drawing View Locker!|Multi Sheet to Mono Sheet!|Drawing Weld Symbols!|Drawing View Label Align!|Open From Balloon!|Model State Lock!
Posts and Ideas:Dimension Component!|Partlist Export!|Derive I-properties!|Vault Prompts Via API!|Vault Handbook/Manual!|Drawing Toggle Sheets!|Vault Defer Update!


! For administrative reasons, please mark a "Solution as solved" when the issue is solved !

Message 3 of 3
Dylan_algar
in reply to: Dylan_algar

Sorry for the late reply but this works perfectly, thanks so much!

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

Post to forums  

Autodesk Design & Make Report