AutoCAD Inventor :: How To Update Drawing Template With ILogic
Oct 8, 2013
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.).
View 3 Replies
ADVERTISEMENT
Jun 6, 2013
I am trying to create an iLogic (or VB) rule to update an active drawing title blocks from our Template File.I don't want to use any of the external software (Transfer Wizard etc), we just need a simple rule that will update the title blocks when we need to.
View 9 Replies
View Related
Jul 10, 2013
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.
View 4 Replies
View Related
Nov 12, 2012
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.
View 1 Replies
View Related
Sep 7, 2012
I'm trying to update a template which has custom drawing properties. In AutoCad LT 2012 (and obviously full autocad) there is an UPDATEFIELD command which updates the drawing properties.
This command is not known in my version of AutoCad LT 2008. Is there another command I can use?
View 1 Replies
View Related
Feb 12, 2013
Made some minor changes / updates to our .idw template and would like to update previous .idw's to the new template. Can this be done automatically? Is this done in styles?
I have opened previous .idw's and checked for updates in styles and none are shown. The changes/updates are to the title block and revision table. New drawings open with the new template changes, but we would like those changes to any previous drawings as well.
View 2 Replies
View Related
Apr 30, 2012
i want to export my part list with ilogic in a excel template but dont want all the part list column and dont erase the column i skip in excel?
View 3 Replies
View Related
Oct 4, 2011
I am working on creating a new part file Template. Any useful and productive iLogic functions those are already available.
A while ago, I had seen one that would simply triger when part was checked in or saved. It would check if the material feild was utilzed or forgotten at Default.
share if there are any good iLogic functions that we might benefit from.
C1
Inventor Professional 2013
Vault Collaboration 2013
View 2 Replies
View Related
Dec 8, 2013
I want to have a template IDW containing sketched symbols representing various possible drawing status stamps; when the drawing is ready for publish I want to run a rule which allows selection of one stamp for insertion on the drawing. how to copy the symbol from the one drawing to the other. Here is my non working
'Query stamp insertion requirementquestion = MessageBox.Show("Do you want to insert a stamp?", "Stamp Requirement",MessageBoxButtons.YesNo,MessageBoxIcon.Question)If question = vbYes ThenDim strSelectedStamp As String = "Result2"Dim strStampList As New ArrayListstrStampRequired = TruestrStampList.Add("F&C Stamp Round")strStampList.Add("As-Built Stamp.
[code]..
I get a 'The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))' error.
View 7 Replies
View Related
Oct 12, 2011
Currently I am using I-logic and a form. I have an assembly that I am pushing a volume from a part to the main assembly. The volume updates in the part fine. The issue is with the form is not updating when the file parameter updates. If I exit the form and run the rule manually then the form updates. how to update the form at the same time?
View 1 Replies
View Related
Sep 13, 2013
I´m having a bit of an issue with a form.
I have a global form which is exactly made for a specific assembly for configuration of this very assembly. To make things easier for the user I call another external rule which only opens exactly this assembly.
Now when the user opens the form the assembly is not open and obviously can´t reference the used parameters.
Even after loading the assembly the parameters are not available, which results in something like this:
So this is a really simple question, is there a way to update a form so that it rereads the parameters from the assembly?
What I tried is using iLogicForm.CloseGlobal("Name of form") to no availability and then open it again with iLogicForm.ShowGlobal("Name of form").
But I couldn´t find any further info on the iLogicForm Commands.
View 3 Replies
View Related
Dec 21, 2011
I am after a way of accessing the update styles on dwg so that I can run with rule below as most of our drawing stds have changed and old dwgs need updating the work flow is as follows.
I need to access manage tab then update styles,then yes to all,OKUpdate all sheetsfind all parts list within all sheet and then annotate , style on format tab and then select Parts list - this will change all my old parts list to current style definition.Either run at begining of code below or run as seperate code
On Error Resume NextDim oDrawDoc As DrawingDocument oDrawDoc = ThisApplication.ActiveDocumentDim Sheet As Inventor.SheetDim Cursheet As String Cursheet = oDrawDoc.ActiveSheet.Name For Each oSheet In oDrawDoc.Sheets oSheet.ActivateDim oPartsList As PartsList oPartsList = oDrawDoc.ActiveSheet.PartsLists.Item(1)If Not oPartsList Is Nothing Then Resume Next'Call oPartsList.Sort("ITEM")Call oPartsList.Sort("PART NUMBER", 1, "DESCRIPTION", 1, "QTY", 1)iLogicVb.UpdateWhenDone = TrueActiveSheet = ThisDrawing.Sheet("Sheet:1")ThisApplication.ActiveView.FitEnd If Next
View 4 Replies
View Related
Aug 17, 2012
I am trying to put an immediate update box on my form in ilogic. I want to be able to change parameters on my form without updating the model. There is this option in the parameters window but not in the form. How can I accomplish this?
View 1 Replies
View Related
Jul 28, 2012
I am new to the ilogic. I am wanting to use ilogic to update some prints as needed.
I need to create and external rule to:
1) migrate the drawing to the lastest inventor version (2012),
2) copy all drawing resources (borders, title blocks, and sketched symbols) from a template file (.idw),
3) replace the title block and border with specified block and border.
View 9 Replies
View Related
Jul 26, 2013
I have created an iLogic panel which allows me to control my revision a lot easier and puts my entered data into the parameters of the sheet itself, is there a way to have this show up on the drawing itself for a template?
View 1 Replies
View Related
Jun 21, 2013
Setting up a tabulated ipart drawing template. Which is better...one drawing file with a table or individual drawings for each tabulation? Also does one method work better than the other when introducing vault?
View 1 Replies
View Related
Sep 20, 2013
I've recently made a new drawing template with ilogic prompts for entering data for all fields within the template. It also sets view sizes etc. I have lots of master drawings, which are reused when sizes etc change for a contract, which i would like to transfer to this new template. Drawing Resource Transfer Wizard does not offer this function.
I could get all drawings in a folder copied to specific sheet size on the master template.As the template will probably be developed further in the future I'm very loathed to do this take manually.
View 6 Replies
View Related
Mar 29, 2012
I have an ilogic assembly that I change to different widths. And I want ilogic to put the part number into the title block according to the size of the assembly.
What I have works but won't update on its own. I have to open the ilogic rule and close it, then open the i properties of the idw and close before it will update.
View 3 Replies
View Related
May 2, 2013
I have an assembly which is made with a sub assembly. The sub assembly has iLogic code that both resizes it's parts and suppresses parts that arn't needed after a change in length.
View 5 Replies
View Related
Aug 9, 2012
Is there any way to force an update of mass property values of a component from within an iLogic routine?
I am trying to produce a calibration chart showing the volumes of an irregular shaped object by taking incremental slices off the component and accessing the "volume" of the remaining portion, then writing the the results to an external file - All from within a "For - Next" loop.
The main routine works O.K. but the resultant chart only shows the original starting volume for each slice instead of the required reducing volumes.
I am a novice with iLogic and can only assume that I must somehow "update" the mass properties of the sliced object before reading its new volume on each pass.
View 7 Replies
View Related
Dec 28, 2013
Is it possible to update an existing User Parameter. While I can only delete-create a new. In this case the connection is lost with BOMQuantity.
View 5 Replies
View Related
Aug 4, 2013
The rule iterates through an assembly looking for parameters. If it finds them it 'pushes' the value down from the top level Assembly into the sub-components.
It works well, but each component updates dynamically as the parameter value is changed. This looks a bit jerky and weird.Is there any way to write the script so the the updates all happen at once at the end?
' set a reference to the assembly component definintion.' This assumes an assembly document is open.Dim oAsmCompDef As AssemblyComponentDefinitionoAsmCompDef = ThisApplication.ActiveDocument.ComponentDefinition'Iterate through all of the occurrencesDim oOccurrence As ComponentOccurrenceFor Each oOccurrence In oAsmCompDef.Occurrences'check for and skip virtual components'(in case a virtual.
[code]...
View 7 Replies
View Related
Aug 25, 2012
Any way to use iLogic to create custom iProperties from the cells in an Excel spreadsheet (both text and numbers) for a .dwg template. The only thing even close has been a user who already knew how to do it and was having a different problem. I am using Inventor 2012 and Excel 2003 and have very little experience with VB. I currently have a family of assemblies, consisting of two parts linked to an Excel spreadsheet to control the various parameters for each variation of the assembly.
I need creating an iLogic rule that will:
Go to a specific tab (I have four different tabs/worksheets) in an Excel spreadsheet.
Make a specfic row of that worksheet the current row based on the part number used to generate the models of the assembly shown in a .dwg.
Use the contents of a cell in that row (text or numeric or a combination of both) to generate a custom iProperty for the .dwg template.
Use the custom iProperties to fill in the title block of the template.
View 4 Replies
View Related
Jun 4, 2013
I'm running an iLogic based model where I have a technical housing with 2 cover parts on top.
The first cover part is the basic part.
I use iLogic to assign a RAL-color to several parts in the assembly, also to that cover. The color is assigned to several features of the cover part.
The second cover part is almost identical to the first one.
So my first feature in the second cover part is a derived part of the 1st cover. I derived all the bodies.
When I'm in my assembly and I pick a RAL-color in my created customization form, the RAL-color only changes in the 1st cover part (the original), but it doesn't change in the second cover part, the derived body.
But....
when I manually open the 2nd cover part, and I right click on the derived feature and click on 'Edit Derived Part' ; the new color shows up immediately!
So, my question is if there is a rule for iLogic to update the color automatically?
View 5 Replies
View Related
Dec 17, 2013
I want a ilogic rule syntax for following process:
I have one excel sheet it consists around 5 sheets for Plate, Flats, Rounds, etc. When i am run the rule then it will ask and do the following:
Ask the thickness value.It will search thickness value in “D:LINUS KOTTEstock numbers.xlsx” in sheet 1If thickness value found then fill the stock number in iproperty(project tab-stock number)
Here i am using different rules for plate, flat, round, etc.,
View 2 Replies
View Related
Sep 12, 2011
How to make Automatic Update propeties for Flat Pattern Extens. I have write code and setting rules trigerred by event (Before save, Any model Parameter Change) but if some parameter change properties isn't automatic update. So could some one tell me how to solve this problem.
Part with iLogic code is attached
View 9 Replies
View Related
Oct 18, 2013
i made a sheet metal part.ipt but that file is not updating immediately, i have added
iLogicVb.UpdateWhenDone = True
InventorVb.DocumentUpdate()
also tick marked in parameters for IMMEDIATe update
View 3 Replies
View Related
May 19, 2013
I have one problem in ilogic i developed the model using ilogic rules and dimension values updated through the User interface form.
problem is while entering the values in UI, model updates automatically, but I want to stop automatic update and after entering the all the parameters in the UI then click the done button only update the model.
My UI is like this
It's possible.
View 3 Replies
View Related
Nov 21, 2013
I am wondering if it is possible to do a style update (or style update check) upon open of a drawing?
The example would be that I have stuff made from way back that the colors/dimension sytles ect dont match the current standard and upon opening a file where they are not current, it would either prompt to update immediatly OR update automatically with no prompting (preferred method).
I am doing a massive amount of updates from old files recently and to save myself 1 - 3 clicks per drawing would be wonderful.
View 5 Replies
View Related
Feb 21, 2013
ilogic function to update local styles to match Style Library?
I have a snippet of code that, on a drawings, deletes the current parts list (if one exists), then inserts a new parts list which I want to be up to date with the Style Library.
Autodesk Inventor Professional 2011
Windows 7 Enterprise, 64-bit
View 4 Replies
View Related
Oct 5, 2010
I have crated a drawing of the part. Now I must be updating the drawing template. How I can update the drawing templates to old drawings?
View 6 Replies
View Related