I'm plodding along with my template at work when time allows! I have just saved an initial copy as a dwt file. When I open it none of the layers I made are saved except the ones used. How do you save a layer to a dwt template file, as I need the same colors / line weights each time.
Also when I open my dwt file I have the tabs -
model, layout 1, layout 2, A2
I just want the model and A2 tab, so why do the others open as I have not made them. I have attached a dwg of the initial template for your reference.
Current development env: AutoCAD 2012, VS 2010, ObjectARX.Net (2012)
My target: in AutoCAD pops a dialog, select filename (related to our internal projects) string, then it will create a DWG file from a template DWT file. Then some operation like insert elements into the DWG file and then SAVE (with the filename assigned).
Here is the code I currently implemented:
class DWGWritter { const string TemplateFile = @"C: empMyTemplate.dwt";
[Code]....
Well it doesn't work on either of #1-4
#1 give out "eFileInternalErr" exception, which I found the answer - you can't call save() if it's open from exist file
#2 works ... but it just save the contents we write to the database but won't save template file contents, ie. we have put in layers inside the template file but they doesn't save to the new file
#3 give out "drawing is busy" error, no clue why it's "busy" ...
Whenever I try to open a new blank file in it, it gives me an error message saying I don't have a "default template", and I needed to choose a file and save it as a "default template". So I did, but now, I'm stuck with that template - I can't choose a letter-sized blank page to work on because that choice is no longer on the list under "New". What the heck is going on? I just want a blank page to draw on, and now it's not available.
what is the best proper way to exclude a layer and save it in a separate file. The think is that if i freeze the other layers the new file still keeps the other layers. This creates a problem in a conversion process to shp, that i need to do.
I needed a second audio file and created a layer and placed my video file that has the audio I want in that layer. I edited the audio in that layer and now I want to save the result as an audio file.. preferably an MP3 file. How do I select a specific layer and save just that layer as an audio file?
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?
I have changed my template using the styles library. For some reason Inventor 2013 will not let me save my new settings as a default in my newly created template. Instead it gives me an error message that reads:
" The following style definitions in template ....... differ from the definitions in the style library; the style library will be used.
Part listart list (ANSI), Revision Table: Revision Table (ANSI)
If the style definitions in the style library are intended for the new document, update the template with the new style definitions. If the style definition in the template are intended for the new document, remove these styles from your style library using the Style Library Manager."
How can you use a template file from your personal files to use it in an already existing .dwg file.
I knwo how to do it if I start the drawing from scratch and I select that template, but I want to put this existing drawing into my personal template file from my documents.
I'm linking an excel file to an .ipt file with iLogic code determining if the Material type is a certian value it will find the correct material thickness. These file work great when working on them thru Vault but when I "Save As Template" and create this file where our other template files are located (not Vault) this fuction does not work. I have realized that I had to place the a copy of the excel file in the same file folder as the template ipt, but even this does not fix the issue.
I recieve this error:
Error in rule: Material, in document: Part6
'MWW Materials (Inventor).xlsx' could not be found. Check the spelling of the file name, and verify that the file location is correct.
If you are trying to open the file from your list of most recently used files, make sure that the file has not been renamed, moved, or deleted.
It seems completly countintutive that just saving the file as a template file would cause this not to work when all files that are required are located in the same file folder. Maybe I need a reference to the excel document within the iLogic code.
AutoCAD Architecture menu utilities loaded.ERROR: Unable to import the style 'Multi-Level' from 'D:drawingsLibraryAusContent13Aus-Layer&LayerKeyStyles.dwg'
The LKS already exists in the drawing. Renaming it and pasting the first line to the command line results in a nil return and the LKS is not imported.
Format seems correct. Path is correct. It can't not import because it's already in the drawing. Renaming existing does nothing.
When I manually add a new layout from a template, I do NOT get any extra layers, but when I use VB to do the same thing, I get extra layers.
In the original drawing, I have layers called "SHEET", "TEXT", and "VIEWPORT" (among other layers).
In the template where I get my new layout, I also have the same layer names ("SHEET", "TEXT", and "VIEWPORT").
After the new layout gets read in, I now have extra layers called "$0$SHEET", "$0$TEXT", and "$0$VIEWPORT". Why does this happen using VB, but not when I do it manually? Is there anything I can do to the code to change this? I understand the layer names are the same, but they're the same whether I do it manually or by code.
Public Function importLayout(ByVal templateFileName As String, ByVal templateLayoutName As String) As ObjectId Dim idLayout As ObjectId = ObjectId.Null Dim doc As Document = Application.DocumentManager.MdiActiveDocument Dim ed As Editor = doc.Editor Dim oLock As DocumentLock = doc.LockDocument() Dim
I am using ACAD 2005 and am trying to copy&paste several objects from a layer I created in one .dxf file to one of the 2 standard layers (0 or Defpoints) in a new blank .dxf file.
My problem though is that if I copy and paste all of the objects (or even one of them) and them move to the new file and paste, it pastes the objects, but also "imports" into the new file the original file's layer that these objects were on.
For clarity, the new file only has the 2 standard layers and then after copy/pasting an object, the file manager shows the 3rd layer from the original file.
Just updated to CC and now when I try to save over old templates it gives me an error message saying it cannot save because this template may be in use in another program...but the only program its in use in is illustrator at that moment because im making changes to it.
I am trying to create a single layout with title blockandviewport to save as a template for future. Right clicking on the layout tab does not produce the menu.
I create a new layout by selecting page set up manager in the file menu, create a new layout, but the tab does not show up at the bottom.
I use VS Pro X4 Ultimate with SP1 on a new installed Windows 7 Pro 64bit system. I try to create a BD menu with submenu, but I can't save my changes in the submenu. I understand from a other topic, that I must use a template and save these changes under my Favourites Gallery. I do the steps like in the topic below, but I never get button “Add to menu template” to save it. Where is this button?
"By Customize you are changing the template, after which the “Add to menu template” will become available, now you can save the template, which will show in the Favourites gallery.
1 / First page, choose a template
2 / The screen shows the Main Menu (the Title Menu) as “Currently Displayed Menu”
3 / Double click the text on screen to change to your own.
4 / If you have created “Chapters” choose the drop-down box Main Menu and change to Untitled
5 / You are now viewing the Chapter Menu
6 / again double click the text to modify / change
7 / Selecting the Edit Tab will allow you to add background music and video/images.
Then customise the font types, size and colour etc.You can customise the Motion Menu and also select other Buttons.Again once "customised" you can save the template to the Favourites Gallery"
I have a working document, part of which should become a template for similar docs.
However the part that should become a template is not all that is in the document.
I guess I can turn off the eyeball of all layers or objects not meant to be part of the template but then the template will have all the extra junk in it (turned off).
Is there a better way than saving a copy of the doc, opening it and deleting all that is not meant to be template, then resave as template?
I have adjusted my North Elevation (using View Graphics) exactly the way I’d like it to look in elevation, and would now like to apply those same visibility adjustments to my other elevations. Is there a way I can save that view as a template and apply to other elevations, or do I instead need to create a view template, make all the adjustments to that template, then apply the template to the elevations?
I have the student version of AutoCAD 2012 on an HP laptop with Windows 7 Home Premium OS. I originally installed AutoCAD in June of 2012. It worked fine for 9 or 10 months but now whenever I select File/Open, File/Save, or File/Save As, AutoCAD stops responding and the spinning blue donut appears. AutoCAD never comes back and I have to close it from Task Manager. I uninstalled AutoCAD and reinstalled it, and the process went smoothly. However I still have exactly the same problem with the File operations. I apply Windows updates, but other than that have not made any changes to the software on the laptop. AutoCAD works fine for everything except the File operations. I am able to save with CTL/S and am able to open AutoCAD files from File Manager.
I included a VB code in our drawing template, but then I get the "Warning: You have a non-empty VBA project.." message. If I copy the code into iLogic, I just get an error message. Why it runs fine as a separate macro, but doesn´t work in Inventor, or how I can include the code into the template? URL....
Currently have a template setup which we use and when everything is erased, purged, audited etc and the file literally cannot be purged any more the filesize is still 10mb.
There however several hundred items in the "Blocks" section of the purge dialogue box under "View items you cannot purge"..how do you get rid of these?
we have files containing hardly anything which are 20mb and empty files which are 10mb,
I am having problems with my drawing template, I can make changes no problem, but when I use the template to start a new idw file the changes are not in place.
For example; view preferences, I want to work in third angle, I have this selected on the template but each time I start a new idw I have to change it from 1st angle.
e.g. 2; sheet size, I changed it from text to a drawing property, but it doesn't change when I edit the sheet size.
Is it a good practice to have several WMS connections already connected to the provider in our standard "dwt" template file? Will this affect the speed or performance of a drawing?
I have a company template file with standard layers that I need to match the layer properties of with a drawing I have already created. How do I do this?
Is there a way to set the default template for new file creation? I made a template file but it keeps defaulting to another location for templates. As a matter of fact, I would love for it to not even ask me what template file I want to use, I just want it to use the one I made.
I made some changes to our normal template file for inventor and saved it to my hard drive in the public folder. When i open through windows explorer its fine and everything is correct. When i open a new idw and select this file through inventor it comes in with some of the tables having different size text and none of my leaders coming in.