Not a CAD issue but a website one this time. I decided to bite the bullet and change my PHP version for the website from 5 to 7. This caused an “500 internal server error” which was not that helpful.
I turned on debugging (make sure you tutn it off afterwards) and that gave a slightly more “useful” error – “PHP Fatal error: Uncaught Error: Call to undefined function mysql_connect() ” – that was almost as cryptic but one search later and the soultion was easy.
For what is worth, I encountered the same error and the issue was solved by enabling the nd_mysqli extension in the PHP 7 configuration, and disabling the mysqli one.
Just change the PHP modules and your are sorted. One change later and all is good! Thank you Francesco!
A colleague of mine could not hatch dots on a drawing at a higher density. I tried the usual regen and measurement commands to see if it was the hatch itself, however it was not to do with this.
After searching it could be a variable issue in the drawing but the drawing was from our standard template, but worth checking to see if HPMAXAREAS and HPMAXLINES were set to low values. They were not.
After further searching it became apparent that the drawing was a long way from the origin causing the glitches. This was apparent because the x leg of the UCS icon kept disappearing on zoom when in world UCS.
The glitches were:
Hatches not hatching properly at higher densities
ONSNAP not working properly
Fillet and trim not working properly
The solution was to create a drawing UCS closer to the drawing that fixed these glitches.
As part of my preparing an AutoCAD drawing for my office’s layering system I managed to insert layers into a drawing from Excel using only scripting.
However the creation of a line and a text on each of the layers, so that users can copy and paste to get the layers etc. into new drawings, needed full AutoCAD and its access to LISP to create these quickly.
The script below is a modified (larger text and longer lines) version of a script, kindly written, from here.
Recently we had Xerox printers installed and we could not get the transparancy to play nice with the printer, printing a small strip up the side of the page. We have now found a solution to the problem and after installing PS drivers and changing the settings on the driver page under the PC3 we use to the settings noted below all works fine. Thank you to placidrefining for their solution, which can be found on the following page. Whilst they note that this works with a 7970 printer, we have found that it works with our model as well.
I have posted the images below from that post here for reference.
We upgraded AutoCAD LT 2015 to AutoCAD 2017 in the office by installing 2017, then carrying across settings and uninstalling the old one. On the first few PCs this worked OK but then it broke the Explorer file assciations horribly.
It produced an error along the lines of Cannot find AutoCAD LT 2015. Which was of course obvious because it was no longer on the machine.
After searching for the answer, this thread suggested wiping the machines, which currently was not an option.
The next option was to re-associate the files with AutoCAD rather than DWG launcher. This is really annoying solution as everytime you double click in explorer it launches a completely new process of AutoCAD which is very resource heavy when launched lots of times. This however was our temporary fix.
After some research, here is the solution if file associations in Explorer for AutoCAD are broken. This a tweaked version of what is shown on this page.
Fire up regedit (note you can break things with regedit, you have been warned!)
Press WINDOWS-R on the keyboard to bring up the Run window, enter REGEDIT and click OK.
Navigate to the following folder: HKEY_CURRENT_USER\Software\Autodesk\DwgCommon\shellex\apps
Select the sub-key folder under “apps,” including the long string of numbers and letters that identify your version of AutoCAD.
On the right pane, verify that the “OpenLaunch” key contains the path to the correct acad.exe file. Double-click and edit if necessary – this bit you need to change 2015 to 2017.
On the left pane, right-click the folder with the long string of numbers and choose “Copy Key Name.”
Select the “apps” folder, and in the right pane, double-click (Default).
Delete the current data value and paste the key name that you copied. Be sure to remove the folder path that precedes the key name.
Click OK and close the Registry Editor window.
I found at this stage nothing seemed to have changed. So ensure that you right click and go to choose another app.
Once on the choose another app bit click on AutoCAD DWG Launcher and click Always use the app.
This should mean that now when you double click DWG files AutoCAD LT 2017 will launch and all will work properly. You might find as we did that AutoCAD LT 2017 went through the initial start-up and migration settings again. Click always associate DWG files with AutoCAD LT if this box comes up.
You might find at this stage that your icons are still blank. No worries. Reboot.
Once rebooted we found when we double clicked that the “How do you want to open this file” box came up again. We clicked AutoCAD DWG Launcher and all the icons suddenly appeared.
We had new printers in today, they were Xerox machines. They are quiet neat but not particularly useful when printing from AutoCAD. The reason why? Because for some reason AutoCAD and the Xerox drivers do not play nice with each other when printing with transparency.
When printing with transparency checked in the plot dialog the Xerox printers just print a small section of the page, about a 5th. Without that checked all is good.
The reason seems that AutoCAD prints vectors normally but when transparency is checked is prints rastors. For some reason this does not play well with the Xerox.
On this post on the second page are some settings but they are not on my driver version. I will investigate some options and update if I find a solution with the newer drivers.
One of my colleagues noted that she wanted all her measurements to be in imperial when dimensioning for her client. The drawing had been drawn in metric mm.
Whilst there are ways to convert the drawing in its entirety into imperial and visa versa, there is very little information on temporarily change the units or dimension style.
So here is how to place an imperial dimension on a metric drawing.
First go to the dimension style manager (_DIMSTYLE) and then select your dimension that you will be starting with. In our office we have a dimension style for each scale the drawing will be printed at (we have not got to annotative objects yet…). So I started with 1:100.
Click on new and it will create a new style based on the 1:100 dimension style selected. I renamed the new style to 1:100 feet so its clear that it is a different style but has the scale of 1:100 and is in feet!
Then leave every other setting alone and go to the Primary Units section. Change the unit format to Architectural and the Precision to 0′-0″.
Then change the scale factor to 0.0393700787. This scales the mm in inches. It is the basically the conversion of 1mm to 1inch.
Save style and that’s it. You now have a dimension style that outputs feet and inches from a metric drawing. Even better you can have both metric dimensions and imperial on the same drawing with this method.
If you have decided to place all AutoCAD items in a central location and link each machine across the network to those locations by adding them to the “Support File Search Path” then this is for you!
I was experiencing really slow mtext editing, slow loading of options dialog and slow loading of the hatch editor. I did some digging and found very few solutions. Only one that caught my eye where the response was “Maybe that’s part of the problem. ” I thought, lets test that. I removed the network paths from the support path and voila! Everything is blisteringly fast again.