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: 

VBA - Read projection from style

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
MarkyTomm
406 Views, 2 Replies

VBA - Read projection from style

Hi,

 

Is it possible to read the current setting for drawing projection (1st or 3rd angle) from the style library associated with the currently open drawing file (idw)?

 

Any help would be appreciated

 

regards

Mark

Inventor Pro 2014

2 REPLIES 2
Message 2 of 3
Robert..F
in reply to: MarkyTomm

Here you go:

 

Sub DrawingStyle()

    Dim oDoc As Inventor.DrawingDocument
    Set oDoc = ThisApplication.ActiveDocument
 
    Dim oStyle As Inventor.DrawingStandardStyle
    Set oStyle = oDoc.StylesManager.ActiveStandardStyle
   
    Debug.Print oStyle.FirstAngleProjection

End Sub

Message 3 of 3
MarkyTomm
in reply to: Robert..F

Hi Robert

 

Many Thanks

 

Mark

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

Post to forums  

Autodesk Design & Make Report