AutoCAD Inventor :: ILogic Automatic Change Of Drawing Title Block?
Nov 13, 2013
I am currently working with fx parameters and iLogic to drive a model and it's corresponding drawing to change based on a single user parameter.
I have managed to get the drawing to update both the scale of the views I need and the size of the sheet with the change in parameter using the following rule:
IfParameter("EB75551.ipt.Rise")<1801Then
ActiveSheet.ChangeSize("A1", MoveBorderItems :=True)
ElseIfParameter("EB75551.ipt.Rise")>1800Then
ActiveSheet.ChangeSize("A2", MoveBorderItems :=True)
EndIf
However when i attempt to use this with the title block using the function:
ActiveSheet.TitleBlock="My Title Block"
in place of the sheet change size it brings up the error message:
Error in rule: Drawing Title Block, in document: Drawing
The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))
I have read elsewhere that this is due to me having prompted entries for the scale and drawn by fields, however when i use the function designed for prompted entries: ActiveSheet.SetTitleBlock("Other Title Block", "promptedEntry1", "promptedEntry2")
It fills in the prompted entry fields from the code and if i change these entries in the "edit field" option they are overwritten when it is updated.
Is there a way have the prompted entries when you open the drawing fill in the "promptedEntry1" field in the rule so that I can use the rule? Or am I going about it the wrong way?
I should point out i'm new to iLogic and no-one in my workplace can use it so each person changing the "promptedEntry1" field to the scale they wish isn't a wise move.
View 2 Replies
ADVERTISEMENT
Apr 23, 2013
I create a thread here: and I have most of what I require, but for some reason I can't iLogic to swap my title blocks within my drawing template.
View 3 Replies
View Related
Jun 26, 2013
Earlier I`ve used a simple code from Rob Cohee to update the title blocks and it works like a charm, however, now I would like to try to kick it up a notch.
If (ThisDrawing.ModelDocument Is Nothing) Then ReturnmodelName = IO.Path.GetFileName(ThisDrawing.ModelDocument.FullFileName)iProperties.Value("Project", "Part Number") = iProperties.Value(modelName, "Project", "Part Number")iProperties.Value("Custom", "Client") = iProperties.Value(modelName, "Custom", "Client")
I`m working with several similar projects where the Inventor models and IDW`s is copied from one project to another. A typical project can consist of 50-75 drawings and the only properties needed to change is Client, project number and drawing number (consisting of the project number and a suffix, ex 123456789-125).
I would like to try to make an .ini file with these 3 properties in the root of the project folder so they can be changed and updated easily.
View 3 Replies
View Related
Apr 17, 2012
what i am trying to do is create an iLogic rule that if your drawing view scale is set to the following ...
1:1, 1:2, 1:4, 1:8, 1:12, 1:!6, 1:24, 1:32, 1:48, etc. on the view label for that view it will diplay ...
SCALE: 1/2" = 1'-0"
and so on for the rest for the standard scale factors.
i know it will be some sort of a loop and it needs to check all views when ran for any changes.
i have never done any coding for the drawing side of inventor yet only model coding
View 6 Replies
View Related
Apr 23, 2013
I can't for some reason get this rule to work, simply want to be able to choose what title block to use.
I created a text parameter with the multi-values: TES ELE and TES EQU
I have 2 title blocks in my template called TES ELE and TES EQU
Here is my code, basically, I want to rule to apply the title block based on the selection, which will be done on a form.
If Title = "TES ELE" ThenActiveSheet.TitleBlock = "TES ELE"ElseIf Title = "TES EQU" ThenActiveSheet.TitleBlock = "TES EQU"End IfInventorVb.DocumentUpdate()ThisApplication.ActiveView.Fit
I have found many threads in this forum and have used their solutions for this rule, but for some reason, my rule will not select the title block and place it in the drawing.
Here is a snap of my set-up and my template file is attached
Inventor Professional 2014-Update 2 - AutoCAD Electrical 2014
Win7-x64 | ASUS P8Z77-V | i7 3770 -3.4 GHz | 32GB RAM |
240GB SSD | nVidia GTX 670 4GB - 320.49
View 9 Replies
View Related
Oct 26, 2012
I have a form that is loading automatically in my part model. where i write the part number, description, project and custom titles.
my questions are:
1 - when i write the part number i would like then when i click apply it opens the save box with the same part number.
2 - it's possible to check-in the file during the saving and keeping the file checkout?
3 - i would like that some of the properties would be transfer to the drawing, like the description and the project (this two are from the part properties.
4 - transfer also for the drawing the custom titles to the custom i properties of the drawing as pre fill in.
View 1 Replies
View Related
Jan 22, 2013
Is there an add in or something for faster type in the title block in a drawing? Name, title etc?
Right now the author and date are automatically but when i save the file to for example to "D1234 hammer" it becomes the part number.
I have to edit the title.
I want to save the file to "D1234 hammer" and the partnumber to be "D1234" and title "hammer".
IS there a add-in that I type the title and name and its auto fill the title block? Or do I have to create a custom title block so the drawing can understand to only to take the numbers from <part name> and the letters becomes <title>?
View 3 Replies
View Related
Aug 17, 2012
We are going to be making a new title block and I have been looking at ways to get the new title block into the old drawings. It looks like the Inventor Drawing and Resource Wizard is the way to go.
The steps seem pretty straight forward and simple but I am not getting the correct results. For the source drawing I select my new title block and leave the boxes for borders, my new title block name, and sketched symbols checked. I then pick my drawing I want to get the new title block in. On the last step I can select Yes or No and get the same results. When I reopen Inventor and the drawing it still has the old title block in it.
View 4 Replies
View Related
Mar 26, 2013
Is there a way to change a title block? After finishing all the dimensioning and details I realized I used the wrong title block.
View 3 Replies
View Related
Jan 9, 2014
I am trying put drawing numbers on my drawings. The drawing number is "019-02-00038-x" where "x" is the page number in the set of drawings. How do I set this up? Every time I try to change "x" it changes it for the entire set of drawings.
I'm working with Inventor 2014.
View 1 Replies
View Related
Oct 26, 2011
Is it possible to set the drawing Scale to the Title Block? Seems like it is missing parameter...
View 8 Replies
View Related
Apr 13, 2012
I was curious, when creating multi sheet drawings, how can I place different information in the title block on each drawing?
Example, 2 pages, Description on page 1 = PAGE 1 DESC, by default this same description will show up on all subsequent pages. How do I get page 2 description to be different?
Inventor 2014 PDS
View 5 Replies
View Related
Dec 12, 2011
Can I pre-fill some of text in my drawing’s title block under the “Field Text” –“Edit Property Fields” ? Because some of the files I will use the same text again and again, if I can save the pre-fill text title block in the template, it will save me lots of time.
View 6 Replies
View Related
Aug 5, 2013
adding an unused template drawing title block resource.
'UPDATE TITLE BLOCK SHEET 1ThisDrawing.ResourceFileName="X:TemplatesStart Drawing.idw"
ThisDrawing.KeepExtraResources=False
DimoDrawingDocAsDocument=ThisApplication.ActiveDocument
'If iProperties.Value("Custom", "V1Scale") = NullString
oDrawingDoc.ActiveSheet.TitleBlock.Delete
[code]....
View 7 Replies
View Related
Nov 3, 2011
I want to add new properties so I can have new, custom rows when I go to Fields text in a drawing environment?
I can see how you add Prompted Entry ans so. Cant add anything to basic properties.
View 4 Replies
View Related
Jul 4, 2012
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
View 1 Replies
View Related
Jan 2, 2013
I am trying to change the title block of the active sheet using visual basic. I realize this can be done using a snippet in iLogic, but I am creating an external .dll file using Visual Studio.
I have tried...
ThisDoc.Document.ActiveSheet.TitleBlock.Definition = "Title Block Name"
ThisDoc.Document.ActiveSheet.TitleBlock.Definition.Name = "Title Block Name" (This changes the name of the title block in the browser but doesnt swap it out.)
Call ThisDoc.Document.ActiveSheet.TitleBlock.Definition("Title Block Name")
View 2 Replies
View Related
Feb 11, 2004
Is there any macro-command to do this :
"Open the .idw that you created your title block in. Locate and right click on your title block in "drawing resources". Select copy. Open the file that you want to put your title block in. Right click on "drawing resources" and paste your title block there. Now you will have to delete their title block and then activate yours. "
I want to change my drawing template and I have many to do and it must have somewhere somehow a way to do this automatically?
View 8 Replies
View Related
Jul 8, 2013
I have a spreadsheet and iLogic driven mater assy to generate different iterations.
I would like to change the scale of a base view on a drawing based on a parameter in my assembly. The idea is to get iLogic to change the view using a simple If / Else statement.
This is what I tried:
If Parameter("0 Generic Assembly v2.2.iam.BP") < 1570 Then
ActiveSheet.View("VIEW1").Scale = 1/8
Else
ActiveSheet.View("VIEW1").Scale = 1/10
EndIf
So basically the value of "BP" parameter (excel parameter in my assy) would drive the scale of the views. But its not working. Is it actually a sensible method? Can I use in the drawing environment the excel parameters in my assembly?
This is the error message I get when the rule is run:
"Error in rule: View Scale, in document: 0 Generic Assembly v2.2.idw
Unspecified error (Exception from HRESULT: 0x80004005 (E_FAIL))"
Also using the same thinking I use iLogic to populate the drg number field on the drawing based on an excel parameter. The rule works but does not always updates the drawing no upon the parameter change or update/rebuild commands.
View 1 Replies
View Related
Mar 20, 2013
I have tried to change the size of the text in the title block and in other places within a drawing, but the changes are ignored. They always come back to Tahoma 0.120"
Is this a bug in the program?
Inventor 2013 with the latest service packs, etc.
I really need to make some changes to the title block and making the text smaller is one of them.
View 3 Replies
View Related
Jan 10, 2012
Is there an easy way to switch a title block after a drawing has been made and without affection the part and dimensions within the drawing?
View 2 Replies
View Related
Dec 5, 2013
I do a lot of work where I start with a full assembly drawing, then make more drawings for the individual parts. Is there a way to link the title block parameters in the part drawings to the title block in the full assembly drawing? The only way I found was to link the parts together and then grab the info for the drawings off of the parts, but if I'm implementing this in a template used by others I want them to still be able to just fill in the blank on the assembly drawing to make it work.
I was able to get iProperties to show parameter buttons, but I haven't seen any way to link to other files or anything like that.
View 9 Replies
View Related
May 7, 2013
I have some code to replace the current title block with a title block from a template file. I just don't like how it adds a new title block definition named "copy of titleblock". I'd like to delete or replace the current title block definition so only the newly added one is listed.
Sub test() Dim odrawdoc As DrawingDocument Set odrawdoc = ThisApplication.ActiveDocument If (odrawdoc.DocumentType <> kDrawingDocumentObject) Then Exit Sub Dim oTemplate As DrawingDocument Dim oSourceTitleBlockDef As TitleBlockDefinition Dim oNewTitleBlockDef As TitleBlockDefinition Dim oSheet As Sheet Set oTemplate = ThisApplication.Documents.Open(ThisApplication.FileOptions.TemplatesPath & "template.idw", False) Set oSourceTitleBlockDef = oTemplate.ActiveSheet.TitleBlock.Definition Set oNewTitleBlockDef = oSourceTitleBlockDef.CopyTo(odrawdoc) ' Iterate through the sheets. For Each oSheet In odrawdoc.Sheets oSheet.Activate oSheet.TitleBlock.Delete Call oSheet.AddTitleBlock(oNewTitleBlockDef) Next oTemplate.CloseEnd Sub
I'm just being picky at this point, but I don't want a buildup of title block definitions. We reuse drawings all the time which is why a simple method of updating a title block would be nice. I can just imagine in some years time after a title block update or two there are 20 "copy of copy of copy of .................. titleblock" listed in a drawing file.
View 8 Replies
View Related
Aug 27, 2013
How could I read / change prompted entry through code from title block (for example DIN) within VB.Net?
View 3 Replies
View Related
Apr 10, 2013
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.
View 2 Replies
View Related
Jun 3, 2013
Im looking to make a simple ilogic rule that can toggle an option in the document settings, the setting I would like to change is the Document settings> Modeling> Participate in assembly and drawing sections
I would like a form to switch the option on and off quickly, its a really usefull function however I know a few of my colleagues wont use if they cant find it easly.
View 1 Replies
View Related
Sep 2, 2011
I am trying to have one drawing with B size and E size sheets I am trying to get the border, title block and standard to change when the sheet format changes. I can get it to work when I run the rule but have hard time find information to just change when sheet format changes. And I can't find anything or I should say a sample of how to. I think I found the code just don't know how to make it work. Here is what I have so far.
SubMain()
IfActiveSheet.Size="E"Then
ActiveSheet.TitleBlock="G&T (E)"
ActiveSheet.Border="G&T Border (E)"
EndIf
IfActiveSheet.Size="B"Then
[code].......
View 9 Replies
View Related
Jul 22, 2013
I am trying to piece together some code for an ilogic rule. This rule should look for a drawing view that is a flat pattern, if it finds one it should change the object layer to our "CNC" layer.
View 3 Replies
View Related
Apr 26, 2013
The title blocks that we use have prompted entries in them and I would like to find a way using iLogic to copy the entries from one title block to another within the same drawing; i.e.. if the user decides to change from an A2 to A1 drawing.
I already have an iLogic rule which allows the user to change the active border, title block and sheet size based on a form selection but would like it to capture the prompted entries already entered and re-use them after the change.
View 9 Replies
View Related
Nov 2, 2012
I was looking to change the fonts in a drawing for the Dimensions and Symbols that might have been inserted in the Dimension text entries.
This can be done manually bu editing the dimentions text after placemement, but I was ooking to set this as a default.. I cannot see where exactly this is controlled in the Styles Manager - I am only able to change the Dimension text font but the diameter symbol font is always on AIGDT.
I was therefore looking for an iLogicvb code that could do the trick, but I am not able to even change the dimension fonts... The code runs with no errors but nothing gets updated in the drawing...
Dim oDoc As DrawingDocument
oDoc = ThisApplication.ActiveDocument
Dim oSheet As Sheet
oSheet = oDoc.ActiveSheet
[Code]....
InventorVb.DocumentUpdate()
View 3 Replies
View Related
Aug 27, 2011
How to change the color of layer that will be used within a drawing files for special purposes.
Ideally the code will make the color Red, but change to Black prior to printing.
The "logic" behind the code currently is to differentiate a layer called "Burn" to a highly visible color for the purpose of review by others then, prior to printing, change the color to Black. The firm I'm currently working for uses gray-scale B sided printers only. The firm currently uses Blue for dimension and extension lines so to produce drawings that portray both type of objects "lightly".
View 2 Replies
View Related