AutoCAD .NET :: How To Force Reload Linetypes From Acad.lin
Oct 4, 2011
I have a bunch of drawings for which I have to reload the linetypes (they have to be redefined, for example pneumatic line has a new definition but the drawing has an older one). Is there a way other than rename the old linetypes, then load the newer version, then iterate through all objects and change the linetype to the newer version?
I just updated my company .LIN file and now I need to find the most efficient way to reload all the linetypes into our template and some drawings hopefully without having to delete or purge them out.
So I have a problem opening this drawing that i have worked on for quite a while now and all of a sudden this morning when i tried to open it i got the following message:
"This DWG file was saved by an application that was not developed or licensed by Autodesk. What do you want to do?"When I continue to open the drawing some stuff is missing from the drawing?I am using Acad LT 2012 and this drawing was working fine until now.
I have a Revit model of rework to an existing building. I am working from Revit Architecture 2011. When I export this model to AutoCAD, I am getting inconsistancies of my new work walls. Some of my new walls are coming in ACAD with solid hatch, others have no hatch at all. At this point I do not care if all my new walls have any hatch or not, as long as the heavier lineweights come through to make them different from existing walls and that they are all consistant. I've been searching on this for a few days now and have come up with nothing.
I'm going to be creating a 3d visualization for an existing network of gold mining tunnels and ore veins. What I have are scans of 2d hand drawn pages showing mining tunnels and ore veins. There are a couple hundred of these, each representing a 100' thick slice which get progreessively deeper. My intent is to trace these in autocad and stack them up, create solids, import them into 3ds max. One issue is that the ore veins are in some cases continuous from level to level so I'm thinking of using polylines and the loft command to connect the veins between levels.
how to model this efficiently so the import into 3ds max goes smoothly. Or is there an easier way than the acad loft command to model the veins within 3DSMax?
I recently upgraded to Civil 3D 2011 from C3D2010. I have used the same ACAD.PGP file for years that includes the shortcut C for the COPY command. Up until C3D2011 this would always allow me to copy an entity multiple times, (the default when COPYMODE is set to 0).
I am running C3D2011 64bit on WIN 7 64bit OS. It happens with other commands too that use a dialog box normally, i.e. INSERT - it only brings up the command line version of it.
I could have a drawing open, open up the xref, make a change in it save and close. I would get a message in the bottom corner of the drawing saying ‘RELOAD XREF’S’ I would hit that and it would update the changes I made.
I do that same change I won’t get any message saying ‘RELOAD’ and even if I type in ‘xref’ and reload the it that way, it doesn’t update any changes I made. I have to actually detach and re-attach it to see the changes I made.
I just installed AUTOCAD 2013 on my computer. Every morning when I start up, I have to reload by CUI file. My ribbons are rearranged, I have to arrange them back to how I had them. Why is this happening?
I have a drawing with 18 viewports, each one has (should have) a titleblock but xref manager tells me it is not found. Firstly, why would it now not be attached? And secondly, why am I not simply able to re-reference it? I tried to UNLOAD and DETACH it but it wont do it as there are multiple inserts. So I tried to RELOAD and ATTACH but no joy. It simply gives me the path to the referenced file (which is correct by the way) So, how do I reload the titleblock to each layout?
Having this problem with 2 lisp routines, i have autocad set up to load a certain profile. but every time I start autocad, i have to reload the 2 lisp routines thru appload.
I have an addin which displays a form, then when I click a button operations are launched. The form is no modal, so I display it, select objects, apply, select objects, apply,... then close the form with another button (form.close).
All functions, but only on the first opened file : I open the file, use the addin, close the form. I open another file, the addin is always loaded, but when I click on the icon to display the form nothing happens... I have to unload the addin and reload it.
My company recently upgraded to Autocad 2013 from 2008. I was using a custom dimension cui file for sizing dimensions according to scale. I have reloaded the file into 2013. However, I am having to reload the file daily because it does not function without reloading. Is there any work around for this?
This issue applies only to AuroCAD 2013 64. 2012 works fine.
I have three old custom menus I use regularly. They were all in the MNU format when they were compiled to CUIx.
Let's say menu1 has a drop down menu and toolbars. Menu2 has a dropdown menu. Menu3 has a toolbar menu. They are all located in the same folder.
If I load the three menus they work fine for the duration of the session. However, once I quit AutoCAD and restart, only Menu1 loads. I still have to load the other two again. This is annoying. I have created a Profile and a Workspace with the menus loaded and set both current. Exit and again no menus.
We recently upgraded from 2006 to 2013. We had a lisp routine in 06 that would reload all the xref's in a sheet so the layer states would update since simply reloading the xref did not always work. Below is the code we used. Now, in 2013, when we run it, I lose all layer states.
I am using AutoCad 2011 and am not seeing the bubble notifying when an xref needs to be reloaded. I do see the notification alert in the taskbar immediately after saving the xref, but do not see the bubble with the link to reload. XREFNOTIFY is set to 2. Thought XNOTIFYTIME might have worked but I don't know how to use it as typing it in the command line in AutoCad doesn't work. Also tried (setenv "XNOTIFYTIME" "#") but typing that in the command line doesn't work either.
I recently upgrading to ACA 2014. I have set my trusted locations, my file path, the startup suite, and the system variable to load acad.lisp on startup. Most of my lisp routines load, but not all. I still have my ACA 2011 loaded, all settings are applied as required, yet I do not have the same issue with the same lisp routines. I have to reload my lisp routines for every drawing.
How to avoid nested references reload every time I open autocad drawing. In some drawings I have twenty nested references. I really need to avoid reload each reference.
How can I purge linetypes? We get data from outside sources and my goal is to load our linetypes. I have a list of layers and store the previous layer linetypes. I reset them all to "Continuous". Now I have to purge the old linetype definitions but I can't make them go away. I need to purge DASHED and HIDDEN so far. If I open the file and click on the linetype in layer manager, I still see the old DASHED and HIDDEN definitions. I have tried db.purge(linetypeobjectid) but they don't go away.
Do I need to go through the symboltablerecord to find the correct linetypetablerecord and remove it? Will that remove the linetype from the list shown in layer manager? That is what I need to do - make sure DASHED and HIDDEN *have* to be re-loaded from our linetypes.
The line types in question are funky looking line types that do not exist within our office. They often contain "$$" and and/or file names and other odd characters as if they are remnants of binding a drawing. In any case, they are not visible anywhere in the drawing. We refer to these drawings as being "infected".
If any object, i.e. block, text or even a simple line, is copied from an infected drawing into an uninfected drawing, all of the mysterious line types follow. And when I say all, I mean 50+. Furthermore, copying from one infected to another infected will double the line types. So, as you can see, if undetected, you could easily have 100's of "line types" on a drawing which substantially increases the size of the .dwg file.
The process that I have created (from researching on the internet) is to save the .dwg into a .dxf. Close the .dxf and then PURGE. Purging the .dwg will not work. And, you MUST close and re-open the created .dxf in order to purge these files. The you can again save as a .dwg. To complicate things, occasionally a .dwg will not save as a .dxf unless I AUDIT it first.
Needless to say, this is a giant pain in that the files that are infected are at least 50 in number. I have created a macro or two to at least reduce some of the steps. Unfortunately, since the .dxf must be closed and re-opened (which cannot be done in a macro) an all encompassing macro cannot be written.
In one viewport i have a contour drawn as a dashed line. to show the item is hidden.In Another viewport i freeze all layers 'above' this item leaving only the item in the dashed line. is is possible, without copying the line to have the line come through in the later viewport as a continuous line, but remain in the first viewport as dashed?
I am using the "Make Linetype" command under the express tools to make a linetype with a single circle in it, but its not working. I tried making my circle a polygon but that didn't work either. How do I get a circle into my linetype?
So i have all these linetypes (see image) that i think originated in Microstation and have appeared on my computer when i binded a few DWGs derived from DGNs. (I can explain all that more if you think its warrented).
This is basicly what keeps happening.
- I open a brand new template, all line types are there (usual: dashed, phantom etc).
- I can work away happily, untill i copy something (a line, text, circle....) from a drawing that has these linetypes and BAM they all appear in the new drawing.
In this way, the linetypes have 'spread' into quite a few dwg's, and i cannot get rid of them once they are in the drawing and its saved.
A few other things....
- Other people in the office can open the drawings on their computers = NO weird Linetypes appear. Some open it and they do appear. (so if you open the dwg attached to this and find no linetypes, i dont know why!)
- The linetypes wont purge due to being in use etc
I would say the problem has originated from when I binded the xrefs, which is fine, but how to i fix it now?
The two main xrefs that appear to be referenced in the linetypes description are being used by other people in the workplace so i cant just delete them and start again.
So I just upgraded to MEP 2013 last week and am in a bad situation where when I keep making my data link tables to a range on an excel table the file name's full address is not staying when I go to insert the table.
(ex. D:/Documents/JB Plans/NK.xlsm is just NK.xlsm when I try to insert the table)
Does some defaulting or setting that I haven't found involving this issue?