AutoCAD Inventor :: Drawing Template With Specific Styles
Dec 22, 2011
I have updated our Company TB and Border and was now working with the Line weights of our layers. I placed our TB into the directory so when we do File -> New, we can select our TB. My problem is when I open it up, I get an error dialog box about a Conflict Styles (error shown below). Where exactly do I save our Library styles so that when I open up our TB, my pre-selected lineweights, layers, etc... load up?
The template location and file is stored in variable clienttemplate (and is not the standard template path set under options). All works okay except if I close the new drawing, when I return to the previous drawing that was current when the new drawing was created (i.e. the drawing that the routine was run from). I get the following error:
I assume this has something to do with the original routine not closing/finishing before switching to the new drawing. This is the last line of the routine:
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?
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?
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.
I have some styles I will like to replace in some drawings but how? I cant find any function to do this.
Dim oIDWStyles As Inventor.DrawingStylesManager Set oIDWStyles = oDrawDoc.StylesManager Dim oldstyle As style Dim Newstyle As style For Each oldstyle In oIDWStyles.Styles If oldstyle.Name = "Old style" Then
When editing the Title Box in a Drawing Template and attempting to insert a LOGO (bmp file) the logo file justs show an icon for the Logo and not the Logo
On my company's default drawing template, I have a text block on there with some drawing notes. We often edit some of the notes on the end at each drawing so I didn't create it on the "title block" layer, rather it's on the "top" layer. I also added (in the template) a revision table with Rev. A being "Released for Production" (because we are weird). How can I constrain those on the sheet so when I change sheet size, they stay in the same position relative to the corners of the sheet?
i use Inventor 2012 and Vault Collaboration 2012, and I often find drawing template cannot be open. with error message The template file is open. Please close it and try again
i am having a BOM template for the parametric modelling i have created using the excel sheet input link.
when i create the drawing from the model the default Bom part list is coming, instead of that i need to get the Excel Bom Template i have created based on the input excel link.
We are going to be using autodesk vault and it is my understanding that vault searches the iproperties defined in inventor documents. Is there a preferred way to set up the iproperties in the part, assy and drawing environments.
If I do a search in vault and the iproperty is only defined in the drawing, the main search results will only give me the drawing(s) and I will have to show dependencies to find the associated model or assy, right. If I define the iproperty in the part, model and drawing I will have to fill in the value of the iproperty possibly in three places. If filling in the value in three places is preferred is there an easier way to fill out the values.
I'm using Inventor 2011 with the style library. I have made some changes to my styles template and want to batch update a group of drawings to the new style. Is there a way to do this without opening each drawing and doing the update?
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.).
Is there a way to have a part, which is a part of a larger assembly, get the title, subject, etc. from its parent assembly? I have my template set to use the "Title" property in my title block but I'd like each individual part drawing to pull that "title" from the assembly, not from the part itself.
I customer sent me a drawing template I need to use to submit a drawing to them. It is a ProE template which has a file extension of .frm.1 How to open this file extension and use it using either Autodesk Inventor or AutoCad?
I created a drawing template, saved on companies common drive, not local. When I created it I also created BOM to be filtered for certain iproperties. When I go "new" and open a new drawing file from the template I get the message about the style conflict and when open BOM in a new drawing I get default columns not the columns I set up in iproperties.
What is the process of setting up/changing styles?
I'm trying to automate the drawing-creation in our company. Steps I've taken:
- create new drawingdocument with template - Save new drawingdocument
Problem: Creation of new document works, but the next step, saving it to a specific location, fails. Error handler is initiated and displays error: Invalid procedure call or argument.
Used
Dim DXF_DWG as DrawingDocument'Create new drawing based on templateSet DXF_DWG = ThisApplication.Documents.Add(DocumentTypeEnum.kDrawingDocumentObject, ThisApplication.FileOptions.TemplatesPath & "Folded and Flatpattern DXF.dwg", True) 'Save new drawing to specific locationCall DXF_DWG.SaveAs("C:TempTest.dwg", False)
As told, the VB-code raises an error on the last command. What am I doing wrong? What are the correct steps in VBA to create a new drawing document based on a template and save the newly created drawing to a desired location?
We have created one Style, but within this Style are two Dimension types (Dual and SIngle)
When a drawing from a model is created it defaults to the Dual Option and we can only select the Single Dimensions by individually selecting the Dimension and editing to Single Dimension, which can be time consuming.
Is there a way to select the Dimension type for the whole drawing?
Is there a way to pin or standardize where a revision table is located in a drawing?
I have a title-block set up and would like a revision table either embedded or populated upon command, just above my title-block. It would also need to extend upward with additional revisions...
Is there a way of using Ilogic to make hidden lines of specific parts in an assembly drawing view visible? If a part with hidden lines showing is suppressed and then unsuppressed the hidden line option becomes unchecked, therefore I need a way of rechecking this option through code?
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.