In my original code I had a function that created Detail Views. If you look there then you should be able to use most of the function and I'm sure you should be able to insert the Section View Code from the API and make a function for that as well from the bases of the code.
I am new for the creation of section view and detail in i-logic. So i need more clarification about the code. I am not able understand your orginal code, its bit of confusing, because you used the your inventor model parameter like (inlet flange, outlet flage). So there iam not getting clearly. So pls guide me.
I believe the most helpful thing I can teach you is how to use the Inventor's API if you do not know how to do so.
If you go to the "Tools" tab and click on the "VBA Editor" Button, a new window wwill pop up in Inventor. From here, press F2 and the object browser should open for the API.
Scroll through the classes in the side bar until you come to "DrawingViews," in the main window, a list should come up with all of the possible options that may be used from DrawingViews. You are looking for "AddDetailView." If you select this option by highlighting it and proceed to press F!, a new window will appear with the help options for this function. A description of everything required to use this function will appear here.
Let me know if you need further clarification
1. I create sectional views in Assembly model.
2. In that how to get edge name in assembly model its very confusing to me.
3. Is there any tool, to displays the edge name or sketch name in inventor to make VBA code.
For example: Some of sample VBA program, they use( sketchline 1, drawcurve 1..).how to get these name in existing model.
I believe what you're seeing is code that they create the sketchline in. Since they are creating it, you can name it and keep track of this line if you want to use it in further code. The drawcurve is probably a similar concept.
In my code I created a search engine, where you enter the length of the line, orientation, and other descriptive comments to specify which line you are looking for. If you look back to my descrpition of the CreateLinearDimension, you should be able to understand the type of search engine you'd need to create. You can also refer to the code file for reference in creating your own.
I just want to create a automatic isoview at my first page of my assembly who are at my second page, all with ilogic, anybody abble to help me
I'm new to all this Ilogic programming and tried your example files provided but have the following error when runnig it:
Error in rule: Drawing Automation, in document: Hang_Beam.iam
Paramètre incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))
System.ArgumentException: Paramètre incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))
at Inventor.Documents.Add(DocumentTypeEnum DocumentType, String TemplateFileName, Boolean CreateVisible)
at LmiRuleScript.CreateDrawing_PlaceViews(String PartNumber, Double DrawingViewScale, String ViewsToPlace, Boolean AssemblyDrawing, DrawingView& oBaseView, DrawingView& oView2, DrawingView& oView3, DrawingView& oView4)
at iLogic.RuleEvalContainer.ExecRuleEval(String execRule)
Can you help me?
Actually, what I would like to have is a command button in my ipt and iam files to generate an automatic drawing with the views, proper scaling of the views depending on the sheet size, automatic centerlines, and parts list. All this to minimize the number of clics!! BTW I use Inventor Pro and Vault 2014
Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register
Start with some of our most frequented solutions to get help installing your software.