TEXTLAYER command creating layers when NOT instructed to.

TEXTLAYER command creating layers when NOT instructed to.

matthew.mccormack2257W
Advocate Advocate
1,215 Views
8 Replies
Message 1 of 9

TEXTLAYER command creating layers when NOT instructed to.

matthew.mccormack2257W
Advocate
Advocate

Hi all,

 

whenever I open an existing dwg or create a new dwg. I set my TEXTLAYER command to "use current" - I then create some text, but it then puts it on our company electrical text layer GDM_E_TEXT not Layer 0 which is the current layer. So I delete the text and purge the GDM_E_TEXT layer out, set the TEXTLAYER command again but to use layer 0, I create a new piece of text... it then put's it on LAYER 0 as requested but it still creates the layer GDM_E_TEXT....  

 

I've done a screen recording so you can see what's going on, but can anyone help in regards to why its still creating the GDM_E_TEXT layer even though its not required, and how can I stop it from doing so?

0 Likes
Accepted solutions (1)
1,216 Views
8 Replies
Replies (8)
Message 2 of 9

paullimapa
Mentor
Mentor

Curious does the problem occur when you use TEXT command or just MTEXT?

What if you precede the command with a period like this:

.MTEXT


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Likes
Message 3 of 9

paullimapa
Mentor
Mentor

Couldn’t tell in the video when you enter TEXTLAYER command if you used a period to tell AutoCAD to use the current layer


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Likes
Message 4 of 9

matthew.mccormack2257W
Advocate
Advocate

still behaves in the same, whether I type Text or Mtext....  and the same with preceding with a period before it.... no difference

0 Likes
Message 5 of 9

pendean
Community Legend
Community Legend
Accepted solution

@matthew.mccormack2257W wrote:

still behaves in the same, whether I type Text or Mtext....  and the same with preceding with a period before it.... no difference


You have a reactor or an add-in doing that for you then: start AutoCAD2024 is safe mode to confirm, then start unloading all recently installed LISP and add-ins until the culprit is found.

 

Message 6 of 9

TomBeauford
Advisor
Advisor

TEXTLAYER is a System Variable not a command and by default it's set to use the current layer.

Try using a period before the commands like .MTEXT & .TEXT to see if the layer is still created.

Add TEXTLAYER to the System Variable Monitor to follow it's changes.

I'm guessing you have some other customization like a reactor that's creating the layer.

Try adding text with a different layer as putting objects on layer 0 is frowned on and I could see someone adding code to prevent it.

Can you open AutoCAD with a profile that doesn't include all the MM stuff?

Does this happen on other users PCs in your office?

Is there someone in your office who did all this customization you could talk to?

64bit AutoCAD Map & Civil 3D 2023
Architecture Engineering & Construction Collection
2023
Windows 10 Dell i7-12850HX 2.1 Ghz 12GB NVIDIA RTX A3000 12GB Graphics Adapter
Message 7 of 9

matthew.mccormack2257W
Advocate
Advocate

Done... Thank you all!

 

you were right, It was the layer director lsp that was causing it... I had forgotten that was loaded. 

0 Likes
Message 8 of 9

paullimapa
Mentor
Mentor

another way to troubleshoot in the future is to start AutoCAD in safemode:

https://www.autodesk.com/support/technical/article/caas/sfdcarticles/sfdcarticles/How-to-launch-an-A...


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
Message 9 of 9

TomBeauford
Advisor
Advisor
You can delete or put a ;(semicolon) in front of the lines for object types you don't want layers created for in Lee's code.
Since DIMLAYER & TEXTLAYER variables were added I'd comment out both of those lines but it could still be useful when adding other objects your office may have added lines for.
64bit AutoCAD Map & Civil 3D 2023
Architecture Engineering & Construction Collection
2023
Windows 10 Dell i7-12850HX 2.1 Ghz 12GB NVIDIA RTX A3000 12GB Graphics Adapter
0 Likes