iLogic First Angle Projection

Anonymous

iLogic First Angle Projection

Anonymous
Not applicable

Hi all,

 

I have an iLogic rule that creates a base view and section view in a sheet. Currently, I have the active style in the document set to a custom one with first angle projection. For extra measures, I even have a few lines of VB code in my rule that sets the active style to my custom style and sets the FirstAngleProjection property as true.

 

SyntaxEditor Code Snippet

Dim oStyle As DrawingStandardStyle = oDrawingDoc.StylesManager.StandardStyles.Item("Core Drafting 2015")
oStyle.FirstAngleProjection = True
oDrawingDoc.StylesManager.ActiveStandardStyle = oStyle

 However, my base view and section view STILL come out as third angle projection and I have no idea why.

 

angleproj.JPG

 

Any help is appreciated. 

0 Likes
Reply
Accepted solutions (1)
1,189 Views
11 Replies
Replies (11)

Anonymous
Not applicable

BUMP.

 

Really need help with this. I'm stuck and have tried everything. What is weird is I let the iLogic code run up to the point where it creates the sketchline on the base view (the line that the section view is derived from) and commented out the "addsectionview" code. I then right clicked the sketchline and clicked "create section view" and it was first angle projection!! Just like I needed!! So obviously the issue is something to do with the addsectionview function itself. Please! If anyone knows how to get past this hurdle I will be extremely grateful!

 

Up to here, everything is iLogic

FAP1.JPG

 

 

Then I added the section view manually

FAP2.jpg

 

 

First angle projection!!! Then how come it comes out as third angle when I use the addsectionview() function in iLogic?

FAP3.JPG

 

0 Likes

Anonymous
Not applicable

Another bump!

0 Likes

JimmyDoe
Collaborator
Collaborator

Do you only want the section view to be first angle? And have the rest of the views on your page be third angle?

0 Likes

Anonymous
Not applicable

No, I need everything to be first angle! No where in my iLogic code, template, or style have I specified third angle so I have no idea why it keeps defaulting to third angle when creating views with the code!

0 Likes

JimmyDoe
Collaborator
Collaborator

Do you have the projection type setting set to first angle?

 

FIRST ANGLE1.png

 

0 Likes

Anonymous
Not applicable
Yes, I have it set to first angle in all the styles.
0 Likes

JimmyDoe
Collaborator
Collaborator

Can you attach your drawing template?

0 Likes

MechMachineMan
Advisor
Advisor
If you cant get it sorted out you could try using the control definition / command:

AssemblyHalfSectionViewCmd

To get the program to place it just like you are manually.

--------------------------------------
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

Anonymous
Not applicable

Can you give me a little bit of detail on how I would use that? I can't find any info on it.

0 Likes

BrandonBG
Collaborator
Collaborator

I haven't tried this, but DrawingSectionViewCmd is the command for the section view in a drawing.

 

AssemblyHalfSectionViewCmd is a section view in the model environment.

 

This post is pretty useful:

http://modthemachine.typepad.com/my_weblog/2009/03/running-commands-using-the-api.html

 

Commands work in iLogic, too.

 

Brandon

 

Anonymous
Not applicable
Accepted solution

Figured it out!!

 

It is the "Reverse Direction" function under the SectionDrawingView class. For some reason it defaults as the opposite direction of first angle projection.