The task is to set the "Border offset factor" value for the active document in Autocad using Autocad commands or Autocad Object Model
Hi,
The background in Mtexts or Multileaders with Mtext the Border Offset factor is equal to 1.5 by default.
Imad Habash
i need to change the default value using Autocad commands. Is there a command that allows me to do this? If not, how exactly to edit the registry?
You cannot change it from AutoCAD commands!!
>> how exactly to edit the registry?
Open the Windows Run dialog box by pressing the Windows + R keys .
Imad Habash
I know how to open the registry. I don't understand how to find what I need in the registry.
@edushka228 wrote:
I know how to open the registry. I don't understand how to find what I need in the registry.
Or try LISP https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-select-mtext-objects-and-tur...
There is no TextMask_BackgroundScale parameter in the registry, but there are these ones. Which of them should be changed? I need to enter the value 1.1, instead of 1.5, which is set by default
I used the BGTOOGLE lisp you posted. It does not change the border offset factor.
@edushka228 schrieb:
There is no TextMask_BackgroundScale parameter in the registry, but there are these ones. Which of them should be changed? I need to enter the value 1.1, instead of 1.5, which is set by default
If there isn't, it wasn't used before (or you are at the wrong registry path),
HKEY_CURRENT_USER\Software\Autodesk\AutoCAD\Rnn.n\ACAD-nnnn:nnn\MTEXT\
Sebastian
This is how it looks after install and you never used MTextbackground (in your CIVIL3D 2024).
Did you used MText-background in your Civil3D 2024?
If so, you have a problem: It looks like you (the program) don't have write access to this part of the registry
and that means - you have a lot trouble (not just the Mtext border scale).
Please test this:
Restart Civil3D 2024, create a MText and set background with a border scale of 3
Check the registry keys again, press [F5] for refresh regedit.
Still AutoStack the only item in this path?
Sebastian
But your screenshot showing a path for AutoCAD Civil3D 2024, not for AutoCAD 2024.
(so, Civil3D IS OR WAS installed on this PC)
This is AutoCAD 2024:
HKEY_CURRENT_USER\Software\Autodesk\AutoCAD\R24.3\ACAD-7101:4nn
Sebastian
What's up?
If you don't have this folder: C:\Program Files\Autodesk\AutoCAD 2021\C3D\ , you don't need to try this:
[Win]+[R]
open: "C:\Program Files\Autodesk\AutoCAD 2024\acad.exe" /ld "C:\Program Files\Autodesk\AutoCAD 2024\AecBase.dbx" /product "C3D" /language "en-US"
[OK]
..to run Civil3D2024
Do you have this folder?
HKEY_CURRENT_USER\Software\Autodesk\AutoCAD\R24.3\ACAD-7101:......................
Sebastian
The answer is you cannot, it's not an option, it's hard coded with no public varible.
BGtoggle toggles the background On/Off of selected TEXT & MTEXT and sets 'Border Offset Factor' to 1.15, the background color to drawing background color and trims excess width.
Latest version attached.
You can set the 'Border Offset Factor' in the MTEXT dialog box or in the Properties Palette.
@edushka228 wrote:There is no TextMask_BackgroundScale parameter in the registry, but there are these ones. Which of them should be changed? I need to enter the value 1.1, instead of 1.5, which is set by default
Can't find what you're looking for? Ask the community or share your knowledge.