AutoCAD Inventor :: K-Factor Note On Drawing Using ILogic
Jun 7, 2012
Any way, using iLogic, to get the K-Factor from a flat pattern sheet metal view on an idw drawing and add it as a note.
I'd like a rule that would access the flat pattern on the drawing, get the K-Factor value and then create a note that says, for example, "K-Factor Value = 44".
I see in the iLogic Snippets there's a Get Active KFactor under the Sheet Metal section, but I don't know where to start.
How to change drawingnote text format in vba? such as color, font, size.
call drawingnote.text.color.setcolor (255,0,0)
seems not working.
Autodesk Inventor Professional 2014 Autodesk Product Design Suite Standard 2013 Microsoft Office 2007 & 2013 Windows 7 64bit Synergis Adept 2013 Visual Studio Express 2010
Is there any way to control the priority of what information Inventor displays "on top" in a drawing when you have two elements that overlap?
My specific situation is I have a text note whose boundary (where the text 'box' would be if that was turned on) overlaps a detail of a section view and seems to be preventing the display of the hatch layer in one of my section views.
I have attached 3 pictures to show this problem. The pictures show the section view in 3 slightly different positions relative to the text box. I selected the text box before taking the screen capture so you can reference the green "handles" to know where the boundary of the text box would be. Notice how the hatching of the welds, flanges, and pipe as well as a portion of the extension line and arrow for the 3/16 dimension are 'covered' by the boundary of the text box.
Is there a way to control the priority in which different layers are displayed, or is there a function similar to the "Bring Forward/Send Backward" options in Microsoft Word?
When using mtext and a background mask and try to modify the border offset factor from the default of 1.5 , the factor reverts back to 1.0. If I type in 1.25 or 1.75, it will not save it and revert to 1.0. If I put in a larger number like 2.0 or 3.0, that factor will be retained.
I have a few assemblies setup that are controlled with a bunch of iLogic rules to modify all related parts when parameters are changed at the assembly level. I also have an opening message that pops up when the assembly model is opened (After Open Document trigger) to tell people how to use the parameters to make modifications.
Now, when this assembly model is placed into a drawing I am getting random pop ups of the opening message when placing views of additional models in the same drawing. If you open the drawing and try to place a base view of another model, Inventor stops to think for a minute or so before having the opening message of the iLogic controlled model pop up. The only event trigger for this message is "After Open Document" and the model is not being opened; why it is being triggered in the drawing and/or how to make it stop?
Is there a way in an inventor drawing rule to do a "save as" which saves the drawing as an Inventor dwg file rather than an AutoCAD dwg file?
The below saves as AutoCAD which is ok but I need the outputted drawing to be linked to the model. I don't want the code to save the entire assembly as this is done further down the line. I also don't want to save the current inventor dwg drawing from which the rule is run as this is just a template drawing.
1.) If you look at the attached screenshot in the Edit Sheet form there is a sheet "Revision" input field is it possible to fill this out via iLogic?
2.) We have some custom E size sheets (height always 34in width varies 5ft, 6ft, and 8ft) when we select on of these sheet sizes that we created it will display "Custom Size (inch)" when using the sheet property <sheet size> in the title block not the name of that we gave these sheets (Which creatively enough is "E-5ft", "E-6ft", and "E-8ft"). I thought I had this solved by doing this:
Dim oSheetSize As String oSheetSize = ActiveSheet.Size If oSheetSize = "Custom" Then iProperties.Value("Custom", "SheetSize") = "E" Else iProperties.Value("Custom", "SheetSize") = oSheetSize End If
then change the titleblock sheet size field from sheet property <sheet size> to custom drawing properties <SheetSize> this all works great if there is only 1 sheet in the IDW where it fails is if there is more then one sheet.
I recently start to use ilogic in inventor and discover this powerfull tool for all the daily task to be done...
I would like to add an autocad block in a drawing with some ilogic coding. Through this forum i found how to insert a sketched symbol but no how to insert a block. And convert my block into a sketch would be quite difficult...
where could i found a list of all the ilogic command??
Autodesk Product Design Suite Ultimate 2013 Win 7 Pro 64 bits SP1 Bi-Xeon E5520 (2x Quad-core @2.27GHz) Quadro Fx 1800 768Mo GDDR3 6Go Ram DDR3 667MHz ECC
I have a rule setup for drawings. I need the rule to first determine if the there is a flat pattern view present. In other words, if there is no flat patter view, I want to the rule to stop.
I am very green to ilogic and VB. Running Inventor 2013.
I'm trying to put together some iLogic code to either check all the drawing views within a drawing sheet are all the same scale, or make the views all the same scale. These drawing sheets consist of a number of individual parts (they aren't projected views from a single part).
This is for welded assemblies. We are required to generate a profile drawing sheet outlining each part that makes up the assembly. We send these out as dwg files for laser cutting so its important that the views are all the same scale.
I'm wondering if it is possible to check-in drawing into vault using i-logic?
If you check-in a drawing into our vault, it automaticly exports a .dwf to a storage server. We also have a simple button for making .pdf of the drawing to sent to the customer.
What i want to ensure is that the .dwf file and the .pdf file are the same. So when i press "make a .pdf" the rule will save my document, make a .pdf and (if possible) check it into vault. So from that point the .pdf for the client and the .dwf on the server are the same.
I made iLogic for assembly and drawing, now i want to update drawing template parameters thru ilogic, as i already linked Fx(parameters) & iProperties to Template, but for updating template i need to close file and open again that file,
currently m using this method.
What is the solution for updating drawing template (like Model Description, Drawing no.).
So my problem is that I need to include a line on a part drawing that isn't related to the part itself. I need to be able to override the dimension of the line I sketched so that I can include it in my drawing and update the dimension without having to change anything else on the part.
Basically, I want an iLogic rule to overide a dimension, and I don't know how to do that.
If I draw a flat square, and then a flat circle next to it, can I do things using iLogic that will make the two seperate parts interact? such as say 'if the circle contacts the square, then make the square become a circle too' or something like that?
I am looking to use iLogic to create feature suppression in individual drawing views, i.e for simplicity, in view 1 part has a hole in view 2 part does not have a hole it has been suppressed
I am aware this can be done with iParts but im trying to avoid using iparts.
Is there a way in iLogic to iterate through all curves on a drawing. We manually apply radii labels to each drawing view but would like to automate the process with iLogic. How could I reference and cycle through all the radii on my drawing view?
I want to be able to change the header on a PL in a drawing using iLogic.
I'm able to "find" the PL(s) on a drawing but can't seem to figure out how to access the header property My goal to to change the header to show the P/N of the assembly/part it's created from.
My Current code is below:
doc=ThisDrawing.Document oBOMs=doc.DrawingBOMs
For Each oBOM In oBOMs MessageBox.Show("Found a PL", "Title") Next oBom
In between the for/next loop is where I want to access the current BOM and change it's header depending on the related .iam/.ipt.
I have a piece of equipment that changes from 24" to 96" with 5 discrete sizes. I am using ilogic to make all the changes required to the part. Any way that I can change the scale of a drawing using iLogic so that it fits better on my drawing and be adjusted every time. I have multiple pages that most of the drawing views need to be changed every time.
I want to retrieve dimensions in a drawing with ilogic. I found some code but how to translate it into a ilogic code.
I always use assembly models in these drawing and all the parameters have unique names. So in my drawing i want to retrieve some specific dimensions in a view.
Like the title says I am looking to place views (and dimensions) on drawings using ilogic. I am new to both inventor and ilogic, most of my training came in SolidWorks. It needs to pull the part from an ipart that pulls the information from an excel file.
I am trying to xref a base drawing. But everytime I insert the drawing, the scale factor always comes up to be 12. I tried changing it, but it won't let me. I have attached an image of the problem I am getting.
how to access the drawing sheet revisions using Ilogic.My company is wanting to start making the default initial rev on a drawing a "-" and inventor does not like to keep this when brought in as a template.
So like normal I am trying to trick it into having the dash until a rev is actually added.
as a part of automating manufacturing drawings, am trying to include ilogic code in the drawing , that would accept values from the user and store it as "user parameters" and make corresponding changes in the inventor drawing file.So, to replicate my issue on a smaller scale, i had created 2 parts and created an assembly out of these 2 parts. I used the assembly in my drawing.
In the Drawing i created a user parameter .. say "external_param". I am opening the drawing and changing the value of the user parameter through the (Fx) parameter table.
doc = ThisDoc.DocumentIf external_param >= 50 And external_param <= 99 ThenParameter("block_1.ipt.d0") = 15 'change the length of the blockParameter("block_1.ipt.d14") = 3 'change the number of holes in the blockElseIf external_param >= 100 And external_param <= 199 ThenParameter("block_1.ipt.d0") = 40Parameter("block_1.ipt.d14") = 5ElseIf external_param >= 200 And external_param <= 299 ThenParameter("block_1.ipt.d0") = 80Parameter("block_1.ipt.d14") = 6ElseIf external_param >= 300 And external_param <= 399 ThenParameter("block_1.ipt.d0") = 160Parameter("block_1.ipt.d14") = 9End IfRuleParametersOutput()iLogicVb.UpdateWhenDone = True'InventorVb.DocumentUpdate()
As you can see, i have commented out InventorVb.DocumentUpdate() , im not quite sure what would accomplish the update and save of the assembly document in the background (without prompting for a save/update). I have also tried thisDoc.Save and thisdoc.update. Using these 2 commands along with the InventorVb.DocumentUpdate() or iLogicVb.UpdateWhenDone caused Inventor to Crash.
I'm attempting to create a model that autmotaically derives ready-to-go drawings. I've gotten pretty far in doing so but have a few issues with regards to dimensioning. As I'm sure you're aware, when the model changes, a dimension to that feature, which has been removed, is also deleted and some those dimensions do not return once the model is changed back.
I have looked into using different view representations, but have found that they do not accommodate feature supression.
Is there a way to program in the dimensioning of a view.
Create center points for of the holes and center lines.
And for a feature note such as "Hole and Thread" dimensioning, when the model expands, the leader and text length do not change and proceed into the view. Is there a way to fix or anchor the text to a certain spot on the drawing, and have the leader length expand and change accordingly to that point.
The right click context menu on the top level assembly (on the model tree in Inventor) has the option of 'Open Drawing'.
Is there a way to do that via iLogic? Unfortunately I can't figure it out if there is. I would like to open and update the relevant drawing.
Also have tried it the other way around, that is to run my rues in the assembly from the drawing since the drawing is the parent. But I am not sure how to reference the assembly.
I've poked around a little and made simple rules to manipulate iproperties, save filetypes, change drawing borders etc. but am now looking for a bit more and am struggling (i.e. completely lost.) I want to automate the creation of an assembly drawing from an existing presentation file. Here is the basic break-down:
Assumed Pre-Requisites:
- Using Inventor 2011
- Presentation(*.ipn) file is present and saved in same directory
- Each presentation VIEW is numbered and named (e.g. "1 - PCB Installation", "2 - Battery Insertion", etc.)
iLogic/VBA Code should:
- Select presentation file (either auto or allow user browse/select)
- Create a page in the drawing (*.idw) for each VIEW from the presentation file
- Create a base view on each page for each presentation VIEW (in numbered order)
- Each base view orientation will be derived from Saved Camera
- Each drawing page will be named using the name from the corresponding presentation VIEW name
- Each page will have a prompted entry in the Title Block that will be defaulted to the presentation VIEW name