How to save customisations?
I am wondering is there a way to save changes to settings as the 'default' for when I open BricsCAD. I always do these through DSETTINGS.
We are running V25.2.04-1 and obviously my setup had changed back to the default when changing from V24 but was easily rectified to how I like my workspace.
The obvious things I have changed to suit myself have stuck and are always how I want them when I open up BricsCAD ie. ribbons, background colour, etc.
The annoying thing is the smaller details don't save. I work in mostly metres as it's for machine control excavators and GPS total stations, so I need the 'Linear unit precision' to 3 decimal places, but Brics always starts as 4 decimal places for new drawings. Then things like in the Dimension settings like arrow size, text size, decimal places etc. need changing. These settings always save to existing drawings, but I would like to be abl to open a new drawing and automatically have all the changes already done.
It's all the small things I want to save and just make life a little bit easier.
I've tried creating a new profile via PROFILEMANAGER but again the small details don't save, even when I've tried everything already suggested in the forum already, like changing the profile through the windows search bar before opening Brics, making the changes then closing Brics and then reopen it again etc. Nothing seems to save these small changes I like.
If anyone can help me it would be much apprectiated.
Thanks
Comments
-
there are 2 differennt kind of defaults in matter:
- default varaibles.
- default styles (dimstyle,textstyle, preset layers etc')
about setting default varaibles:
go to "C:\Users\User\AppData\Roaming\Bricsys\BricsCAD\V25x64\en_US\Support" and look for those files:
on_start.lsp and on_doc_load.lsp.
as their names suggset on_start run ounce when bricscad start an on_doc_load every time a drawing is open.
open them both and inside set your default varaibles - here is an example:
(SETVAR "INSUNITS" 6) ;set insunits to meter
(SETVAR "LUNITS" 2) ;set the measerment units to metric
(SETVAR "LUPREC" 3) ;set linear precision to 3 decimal places
with time those files will grow.
I have about 70 varaible set in on_doc_load.lsp
about saving styles,layers,ect':
do a google search on tamplate and dwt files.
1 -
Thank you for the reply.
When I search for those file names, I only have 'on_doc_load_default.lsp' and 'on_start_default.lsp'.
I have done a file search on the whole computer and only have 'on_doc_load_default.lsp' and 'on_start_default.lsp' and they are located within the Bricsys Folder like you said.
If I try to open them I am met with a message in notepad saying ";this file will run once when the program starts.
;please do not edit. For custom actions on starting the program please create a file on_start.lsp."When I try to create a lisp file 'on_start.lsp' with the lines you suggested, I receive an error message of "You don't have permission to save to this location. Contact the administrator to obtain permission.
0 -
you need to enable administrator permissions.
this is a windows issue.
after that create both files…
EDIT:
do a google search on "You don't have permission to save to this location. Contact the administrator to obtain permission".
you will get resaults on hoe to deal with it.
1 -
Right-click on the program's icon and select "Run as administrator."
The icon for Notepad can be hard to find. On my Windows 10 it's in Windows\System32.0 -
That has worked perfectly. Thank you very much.
Out of curiosity, is there a list of variables that I can add into that file as I go, or how do you know that '(SETVAR "INSUNITS" 6)' will set the parameter for insunits to meter?
I'm by no means clued into the whole coding world and it's very much a foreign language to me.
Again thank you for the clear instructions.
0 -
trial and error…
if I see a behavior I dont like or want to change I google it or post a questioin here in the forum asking if it is possible to change it and how…
about "setvar" - google "bricscad setvar".
basically it tell bricscad to set the value of a varaible to sertain value…
(SETVAR "INSUNITS" 6) will set the value of INSUNITS varaible to 6 that is meters.
go to DSETTINGS,
type in the searchbox INSUNITS and see what are the options there and what is their code.
0 -
The Settings dialog tells you, in the lower left, which variable controls each setting.
It also tells you where the setting is saved. For any setting that's saved in the Drawing file, you might not need a (setvar "variablename" value) line in the on_doc_load.lsp file, since the setting is saved in the Template. And everything you can set in the Drawing Explorer is saved in the Template.
To save a template, use the Save as... command, with Drawing Template (*.dwt) in the Save as type field. Templates should be saved in the Templates folder, which is opened by the New command.
0 -
This is true if template is created with all the variables set.
But if another drawing is opened the variables will stay as set in that drawing.
Using on_doc_load.lsp and on_start.lsp with SETVAR for the needed variables insure they will be set no matter what.
Bricscad gives basic templates that are enough and I use those startup lsp files to set my environment.
I found that to be the best for me.
0 -
Thanks folks. I'll be able to make life a lot easier for myself now0
-
This is true if template is created with all the variables set.
But if another drawing is opened the variables will stay as set in that drawing.Did I get that correct (?) ...
you set up a "on_doc_load.lsp" including "(SETVAR "INSUNITS" 6) ;set insunits to meter"
which would, when you open any given DWG, change its INSUNITS from whatever given value, to Meters (?)
so the file's geometry would get off scale - or somehow kept in Scale and just change its INSUNITS ?
0 -
File geometry will not change...
But the drawing settings determines by the on_start and on_doc_load.
If on_doc_load is empty the drawing that is opened will get the defaults from the last drawing that was opened what ever they were.
when you close bricscad it save the last configuration.
when bricscad load it will retain those configutations unless they where change either by the user or by on_start or on_doc_load and it will accept the configurations of a template.
so if you have no content in on_start and in on_doc_load and you open a regular drawing the settings will be as they where the last time you closed the software.
if you open a template (.dwt) it will get the configurations from it.
Geometry don't change because of insunits change.
The op asked that when a drawing is opened the insunits variable will be 6 for meters so it won't be needed to change it manually...
about geometry change - the insunits effects how this drawing see inserted drawings units and how other drawings will see this one units.
so yes,it is very important to pay attention to that when inserting in to it,
and inserting it to other drawings.
0 -
I only set 8 variables in my on_doc_load.lsp file (mirrtext, chamMode, chamferA, chamferB, filletRad, CopyMode, HPstyle, HPname). A .dwg file from someone else always has a lot of settings that can't be changed by variables, especially in Page Setup (doesn't anyone else use "Layout" as the Plot Area and 1:1 as the Plot Scale?)So I just paste everything into a copy of my template file. That also gets rid of the thousands of unreferenced blocks, images, and PDF underlays, and unused layers, styles, dimstyles, etc.0
-
Just a comment I was a civil designer and the first thing we did when getting a dwg from some one was copy it into our DWT we did not continue in their dwg. Ours was set up the way we wanted so gets around the problem of missing layers and styles. We had 2 surveyors one used CIV3D so no changes required as it used our DWT, the other was from a survey package that wrote a dwg file.
To open the dwg just turn on & thaw all layers then Copy all, go to our dwt and paste to original co-ordinates maybe 1 minute. Yes we worked in real word co-ordinates and yes provided surface models for machine control, so had to be GPS compatible.0