AutoCAD Inventor :: Assign Sketch Symbols / Title Block To Defined Layer
Apr 1, 2013
I have a need to send files saved from Inventor.dwg to AutoCAD.dwg to suppliers, however due to the quantity of files "size", I need to purge them in Autocad before I e-mail. The problem I have is that my template Inventor.dwg is 1 mg due to Sketch Symbols, plus added file size for the views etc. When I get to Autocad to purge them, my Sketch Symbols and Title Block is on the "0" Layer. I have to select everything that is on the "0" Layer and change the layer to a different layer to start a LISP routine that does a, Erase All, Purge All, to get my file size down. I have not found a way to change the layer that Sketch Symbols are created on or reside on by default or Title Block either.
Any way to do this Inside the Sketch Symbols, inside the Title Block, using the styles, anything?
I am just now going through a iLogic course and read that Layers can be hidden. Can iLogic be used to change the layer of "SketchSymbols" or "TitleBlocks" and or used to purge all Sketch Symbols during the SaveAs to Autocad.dwg process?
Is it possible to create a 'drawing scale' defined attribute inside my title block when brought into paper space? I tried setting it up using 'plotscale' fieldname with various formats and it keeps coming in as 1" = 1' or 1:1 rather than 1" = 20' because that's what my plot scale is inside paper space but my drawing scale is 20 scale. If I bring the title block in model space, it adjusts, but I don't plot from model space. Surely there's a way to make this automated inside paper space.
Also, I just setup a 'Date' attribute inside my title block today. What's the difference between Date, Saved Date and Plot Date? Will 'Date' update if its in a drawing and opened up a month from now and saved or do i need to take 'Date' out and replace with 'Saved Date' or Plot Date'?.
I have created various symbols to be placed into drawings when required, rather than having to re-create the same sketch every time the drawing is produced.
When I place the symbol I am given the option to select where to insert it, based on the insertion point. The problem is... once the symbol is placed there is no way (that I can figure out) to constrain to the view or dimension to it.
Is there a way to update a symbol of one type, without the changes being applied to all symbols of that type in the drawing?
Example: If I have three Flag Note symbol's in my drawing from the same sketch symbol and the text reads 1, is there a way that I can change the text to read 2 in one of them without the other two flag notes updating as well?
IV 2012 Pro-Suite / VP 2011 Windows Vista Enterprise - 64 Bit Precision Workstation T7500 Intel (R) Xeon (R) CPU - E5504 @ 2.00 GHz (8 CPUs) 12284 Mb Ram Dual Quadro FX 5800
I want to replace view labels in drawings with sketch symbols to get a different appearance to my drawings. (As far as i know it is not possible to change the appearance of the standard view label.) See attached snap of my desired view label.
I have used i logic on several occasions successfully but im not experienced at all. The way I see this working is for a sketch symbol to be inserted below a view when it is created,the standard view label being omitted & the Scale/Name/Sheet details linking to the sketch symbol through parameters.
At my office we create drawings with lots of added text and sketched symbols usually along the extension line of a dimension. Currently we have to place the symbol then edit the rotation to make it parallel to the dim line. How to make the sketched symbol automatically orientate itself correctly?
Take this one step further, some ilogic that would automatically add the correct symbol to the dim line based on the feature? For example, when we place a dim on the face of a flange, have the F.O.F. text automatically inserted on the dim line? Or if you dim to a 2" pipe have the 2" CL symbol add automatically?
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.
All of a sudden, things in my inventor sketches are approximately double normal size - the UCS symbol, dimensions, constraint symbols. The UCS icon stays oversize regardless of the environment.
I went into Application Options, Sketch tab, and changed the Constraint and DOF symbol scale but it has no effect in the sketch environment. It's not confined to a single part or assembly and I have not, to my knowledge, changed any Windows or other Inventor setting.
I feel like I've stumbled into the Readers Digest Large Print edition of Inventor. How to control the size of these things?
I want to have my assembly parts on different layers such that part 1 is on layer 1 and part 2 on layer 2.
I know how to assign a line type and color to a part but this gets laborious. It would be far easier if I could apply an electrical layer to all components w/ an electrical property. How to do this?
i was wondering if there is anyway to assign a layer to each type of material used so that i can have the material shown in different colors on my drawings?
I can insert a block with block attributes using the Inter op very easily:
Dim theBlock AsAcadBlockReference Dim pickScreenVBA = myDoc.Utility.GetPoint(, "insert the hydrant") theBlock = myDoc.ModelSpace.InsertBlock(pickScreenVBA, "Hydrant", 1.0#, 1.0#, 1.0#, 0) Dim varAttributes AsObject varAttributes = theBlock.GetAttributes varAttributes(0).TextString ="3 Ports" varAttributes(1).TextString ="Salt water"
Works great, but when I try using the non-inter op, all the example insert new Attributes and not add block with existing attribute (so I end up with duplicate attributes for each block - i.e "Salt water" attribute is added to the block each time I run the code),
Are they any examples that does the same as above using the non-interop code?
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!
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.
I'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.
I'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.
Malfunctioning 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.
I 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.
I 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.
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>?
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.
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?
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.
Below is a code I managed to scramble together to display the unit used in the drawing template. The units are selected once the drawing is opened based the Standards ANSI and ANSI-mm from the styles library.
The code displays the units used in template as a custom iproperty called "drawingUNITS". This code works great however, I would like it if possible to be more clearer to the shop guys looking at the drawings.
I would the result to be
ANSI = Imperial (or inches) and ANSI-mm = Metric
is there somewhere in the code provided that I can get my desired result?
' To use this rule, create a Text parameter named Standard in the drawing.' Assign it values such as:
' ANSI' ANSI-mmdoc = ThisDoc.DocumentcustomPropertySet = doc.PropertySets.Item("Inventor User Defined Properties") 'Make sure drawingUNITS property existsTry prop = customPropertySet.Item("drawingUNITS")Catch 'Assume error means not found customPropertySet.Add("", "drawingUNITS")End TryDim drawingDoc as DrawingDocument = ThisDoc.DocumentFor Each standardX In [code].......