AutoCAD Inventor :: Use File Name Property In Title Block
Aug 15, 2013I want to use the File name property in my title block. But i don't want to see the .dwg extension.
Is it possible to not show the extension?
I want to use the File name property in my title block. But i don't want to see the .dwg extension.
Is it possible to not show the extension?
I am setting the Custom Properties on a CAD File. The Properties may include "Drawing Number, DrawingName, ProjectName"...
Now using code I want to fetch values of these Properties and set into Layout Title Block.
I am trying to get an "idw" or "dwg" title blocks "DESCRIPTION" property using an Inventor macro.
For example, if the description property on a part (ipt) file is "SIDE PLATE", how can I can the same result if the file extension is a "idw" or a "dwg"?
I have a title block inside my drawing and i want to link my title on the title of the file itself, so that if the title of the file was change, it will be change also inside the drawing.
View 4 Replies View RelatedI am making a template file having title block with fields. I use this template for creating layouts and sheets using Sheet Set Manager and the fields will be updated from the data of SSM. Now i would like to add a dynamic north block to my template. The block could be rotated (i have this block in file itself) and rotation angle could be inserted. Now how can i add a custom field to SSM so that i could set a rotation angle for the project and thus every new layout or sheet created using the template has the north block rotated with the angle mentioned in SSM.
Here is the file...........
As I am creating drawings for parts/assemblies, I have to fill out the customers name and the job number which I currently do on every drawing I create by right clicking on the Drawing name in the tree, going to iProperties, and then filling out the fields I need.
I have to do this for every sheet. Sometimes over 100 sheets per job.
Is there a way, within the project file maybe, to have these fields be already filled in with the customers name and job number?
Every new project file I make is a new customer. So I'm wondering if there is someway to tweak the project file.
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.
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.
Q) A user will enter information for a new drawing into the Excel file, this will generate an autocad drawing (title block and attribute information) and fill in the title block based on the information in excel file.
OR
Q) a user will create a new autocad drawing from the new templates and fill in the title block. This information will automatically fill in the Excel file.
I’m trying to save myself a bit of time and was wondering if it is possible to have part of the file location displayed in the title block?
The current title block we are using shows the full file location of the drawing but I was wondering if it is possible to show only part of this?
The reason I am asking is that when a project progresses to the next stage we have to go through each drawing and change the status to warrant, tender, construction etc. so I am looking for a way that this can be done automatically and I was thinking if only part of the file location could be used this process could be done by simply moving the drawings to the next folder? Our projects folders are split down in to subfolders for planning, warrant, tender etc. which corresponds with the status field on your layout. So instead of having to update this status manually every time the project progresses this would update to the folder that the drawings are in.
Example:
I:Projects## - Project TitleDrawingsConstructionGround Floor Plan.dwg
Am trying to get the "Construction" folder to display in the status field on the layout.
I am having trouble with my title block showing up in my plan view. It says it is loaded but it does not show up.
View 2 Replies View RelatedI am attempting to attach a title block into a layout. This is my process:
1. Go to Building1 drawing, and go to layout. Without any viewports created, I attach a dwg file named titleblock1.
2. When I specifiy the location and scale, I cannot find the attached drawing.
why can't I attach files larger than 1.5 KB? I can't attach anything useful!
I've seen in previous thread's how to add a company logo to your title block/plot frame using a jpg file. Plus i've set the image parameters to 0 to remove the line around the image that appears. I've also set the transparency to "ON" - not sure if this is correct but did it anyway - i think.
My problem is that when I come to print it off - the logo appears with a slight background (very faint grey) when it should be just white. The logo is made up of black and red shapes with black text on a white background.
I have done a new Title Block in our drawing templates.
It only works in New drawings if I open an old drawing I must "Copy/paste" the new Title Block into the browser to the left But I want all our old drawings to use the new Title Block.
Is there a way to have the new Title as default on all old drawings?
How can I customize the title block where it says Drawn, Checked and approved?
I want the dates with initials to place automatically. However, I want the date of approval and checked to be 2-5 days after the drawn date. (using Inventor pro. 2012)
I am trying to replace the title block of the first sheet of the active drawing via C#. I currently am receiving the following error on the last line of The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG)).
Why the code below is throwing this error? I have tried multiple variations of the code below to no avail and I'm sure this is something minor that I am overlooking. The title block definition under Drawing Resources is replaced with no errors, the title block on Sheet 1 is deleted just fine, but I can't seem to add a Title Block back in!
How Documents are defined:
Inventor._DrawingDocument oDoc = getDoc();Inventor.DrawingDocument sourceDoc =(Drawing Document) instance.Documents. OpenWith Options(sPath, options, false); Find, copy, replace: TitleBlockDefinition tBlock = sourceDoc.TitleBlockDefinitions[blockList.SelectedItem.ToString()]; TitleBlockDefinition newBlock = tBlock.CopyTo(oDoc, true); oDoc.Sheets[1].TitleBlock.Delete(); oDoc.Sheets[1].AddTitleBlock(newBlock);
I am trying to include the weight for all components in assembly BOM as well as calculated overall weight in TB, but there are no available property to choose from in the drop-down list.
View 2 Replies View RelatedI've created the user parameters and they get the information I need by the rules in illogic and also added as custom properties, but when I try to put them on the title block they don't retrieve the information.
View 9 Replies View RelatedI've created the user parameters and they get the information I need by the rules in illogic and also added as custom properties, but when I try to put them on the title block they don't retrieve the information.
View 1 Replies View RelatedI have added the mass properties and I do not want the lbmass behind it. How do I get rid of it?
View 5 Replies View RelatedMalfunctioning Title Block Macro in Inventor 2014? The script is attached. I think there is a problem with datums. I have switched to a new computer and installed Inventor 2014 on it. The macro worked with my old computer and Inventor 2013. This is a .ivb-file, not a .txt-file. Please change that before you test it.
View 8 Replies View RelatedI have a cutom title block that automaticly places material, status, stock number etc. of the component in the drawing sheet, but I am stumped as to placing the quantity automatically. I have defaulted to using a prompted entry, but that is prone to errors.
View 9 Replies View RelatedI have text in my title block that references part properties. If I have several different part and assembly base views on a sheet, how do I control which one the title block references? It defaults to the first one that was placed. I am using 2011 Pro.
View 1 Replies View RelatedIs 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>?
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.
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 RelatedWe are using a title block and it has an attribute field that links to the file name. Now one of our projects is adding the revision to the CAD file name, but it messes up our drawing sheets.
i.e. It was fine when the CAD file name was 111-A222-ZZ-X-123456.dwg and this would display the complete 111-A222-ZZ-X-123456 in the drawing title.
Now we need to do this, the CAD file name, 111-A222-ZZ-X-123456-001002-A1.dwg and we still need to just show 111-A222-ZZ-X-123456 in the title block, striping away the 001002-A1.
I use two different measuring system IMPERIAL and METRIC.
What I want is to be able tell at a glance, by having different color border and Title-block Text is which one of the system of units I'm using
So what I'm wanting to do is create a Metric Sheet template with on color, Border, Title Block Text and a different color for the Imperial.
I've tried changing the color using the Style Center but that affects both templates, I've tried editing the title-block text saving the template but on opening it has changed back to the defaults set in the style settings and dose not hold those that I set.
What I don't what to be doing is changing them after opening, as at some stage I'll forget.
So, I am trying to add a copyright year to a title block in a drawing template file used through out my company. I want to base the year off of the creation date property - I am trying to find a way to truncate this property such that only the year is displayed. Ideally, any time the creation date property is changed, the copyright year will also update.
We are currently running Inventor 2010.Normally, I would just write an iLogic rule with an event trigger, but this would require everyone to install the iLogic addin which just won't happen.
Even easier, I could make a custom iProperty and just have people manually type in the year when they start a new drawing - this will be worst case scenario as a ton of people will forget and I'll just make more work for myself.I also have VBA code which is pretty simple:
Public Sub SetYear()
Dim oDoc As Document
Set oDoc = ThisApplication.ActiveDocument
Dim customPropSet, customPropSet2 As PropertySet
Set customPropSet2 = oDoc.PropertySets.Item("Design Tracking Properties")
[code]....
The issue would be getting this VBA code to trigger and to "stick" to the template file.I can just as easily write this code in VB.NET or C#, and go through the hassle of creating an add-in, but again, how would I get it to trigger and stick to the template file.
I have a customized title block that I created in an idw. I want to make that block available for all drawings for different projects. How do I do that?
View 3 Replies View RelatedEarlier 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.