I never used this function before. Read about it a few times on here & elsewhere, thought I'd try it.
Here it is:
(SETVAR "CMDDIA" 1)
(SETVAR "FILEDIA" 1)
(SETVAR "PICKFIRST" 1)
(SETVAR "VISRETAIN" 1)
(SETVAR "INSUNITS" 6)
(SETVAR "INSUNITSDEFSOURCE" 6)
(SETVAR "INSUNITSDEFTARGET" 6)
(SETVAR "GEOMARKERVISIBILITY" 0)
(SETVAR "FACETDEV" 0.01)
(SETVAR "MODEMACRO" "Company Name")
Most of these settings are already in the template and most drawings, so I don't know if it is working or not. But I get this error every time I open a drawing:
AutoCAD menu utilities loaded.; error: AutoCAD variable setting rejected:
"FACETDEV" 0.01
Any idea what's wrong with my syntax on that?
Also, the modemacro is ignored. No error message on that, but it isn't being set.
Thanks.
Mark Green
Working on Civil 3D in Canada
Solved! Go to Solution.
Solved by AllenJessup. Go to Solution.
Can you recommend a help file?
I did find this: "If an AutoLISP error occurs while you are loading a startup file, the remainder of the file is ignored and is not loaded." which explains why my modemacro was ignored. I moved the FACETDEV to the end of the file, and now the modemacro works. But the FACETDEV is still returning the error. I see nothing wrong with my syntax in comparison to all the other variables I'm setting, or in comparison to this help page. Is there any other page you suggest?
Thanks.
Mark Green
Working on Civil 3D in Canada
Where is the file stored and is this path on top of the support path list in acad options? The path list has a hierarchy of top presiding over bottom. If you have your own acaddoc on the net and the defualt acaddoc in the default support path you may be loading the one you don't want.
John Mayo
...and if you want to test the file temporarily change the variables to setting you don't want and see if the changes are there when you start a new doc.
John Mayo
From the help file:
FACETDEV and FACETMAX are AutoCAD Civil 3D variables (rather than AutoCAD variables). They are therefore not listed when using the AutoCAD command SETVAR.
This also means they cannot be set with (setvar). You would need to use the (command) call to set these.
Edit: AFter posting I saw this was already solved...sure wish that little green check mark was a bit more visible.
You guys got it!
@jfmayo wrote:
(SETVAR "FACETDEV" 0.01)
Does this work if you type it into the command line?
Nail on the head. No, it doesn't work. Because, (from the link Allen posted):
@tcorey wrote:
FACETDEV is a command, not a system variable.
Use (command "FACETDEV" 1) or whatever value you want to set.
...
All this time I though it was a sysvar, and it's not. Using Tim's method works, thanks!
Mark Green
Working on Civil 3D in Canada