Default field value

Default field value

galashkina
Advisor Advisor
1,525 Views
10 Replies
Message 1 of 11

Default field value

galashkina
Advisor
Advisor

“Delimiter between multiple instances on same line of text” field must have a value of " " (space) by default.

 

1056.png

 

How to do it?

In which file is the value of this field set by default?

Thanks!

 

0 Likes
Accepted solutions (1)
1,526 Views
10 Replies
Replies (10)
Message 2 of 11

rhesusminus
Mentor
Mentor

I don't believe it's saved in any file, but using this line of code, you can set the default parameters.

You can do this in the WD.ENV or acaddoc.lsp  also, to make it be the defaults on each start of AutoCAD Electrical.

 

(setq GBL_WD_PNLW_FORMAT (LIST "%T=%W (%2)" "%W (%2)" 0 -1 1 " "))

Trond Hasse Lie
EPLAN Expert and ex-AutoCAD Electrical user.
Autodesk Expert Elite Alumni
Ctrl Alt El
Please select "Accept Solution" if this post answers your question. 'Likes' won't hurt either. 😉
Message 3 of 11

galashkina
Advisor
Advisor

I created the file acaddoc.lsp and added a line (setq GBL_WD_PNLW_FORMAT (LIST "%T=%W (%2)" "%W (%2)" 0 -1 1 " "))

 

2610_3.docx.png

 

I added acaddoc.lsp to the list of applications.

 

2610_2.png

 

It's enough?

 

But the default field value has not changed Smiley Sad

0 Likes
Message 4 of 11

rhesusminus
Mentor
Mentor
If you paste it to the command line, will it work then?

Trond Hasse Lie
EPLAN Expert and ex-AutoCAD Electrical user.
Autodesk Expert Elite Alumni
Ctrl Alt El
Please select "Accept Solution" if this post answers your question. 'Likes' won't hurt either. 😉
0 Likes
Message 5 of 11

galashkina
Advisor
Advisor

Yes, it works

 

How to start the program automatically?

0 Likes
Message 6 of 11

rhesusminus
Mentor
Mentor
I'm just on my phone right now.
If the file acaddoc.lsp is found in the AutoCAD search path, it will be loaded automatically when AutoCAD start a New/open a document.
I'll look into how to put it into wd.env when I get back to my computer.

Trond Hasse Lie
EPLAN Expert and ex-AutoCAD Electrical user.
Autodesk Expert Elite Alumni
Ctrl Alt El
Please select "Accept Solution" if this post answers your question. 'Likes' won't hurt either. 😉
0 Likes
Message 7 of 11

galashkina
Advisor
Advisor

Оk,  I'll wait

0 Likes
Message 8 of 11

jseefdrumr
Mentor
Mentor
This might seem like a silly question, but I catch myself skipping the obvious stuff all the time...

Did you restart ACADE after adding it to the startup suite?

Jim


Jim Seefeldt
Electrical Engineering Technician


0 Likes
Message 9 of 11

galashkina
Advisor
Advisor

Yes of course

0 Likes
Message 10 of 11

jseefdrumr
Mentor
Mentor
Thought so, but I thought I'd check while you wait on Trond.


Jim Seefeldt
Electrical Engineering Technician


Message 11 of 11

rhesusminus
Mentor
Mentor
Accepted solution

I did some checking, and AcadE is doing som initialization/resetting of variables, making the scahnges in the lsp/env file not stick.

 

The quickest workaround I found was to change the macro of the Wire Annotation button using the CUI command. This is the new macro:

 

^C^C^PWD_1;(setq GBL_wd_pnlw_format '("%T=%W (%2)" "%W (%2)" 0 -1 1 " "));_AEWIREANNOTATION 

2017-10-26_14-59-00.png


Trond Hasse Lie
EPLAN Expert and ex-AutoCAD Electrical user.
Autodesk Expert Elite Alumni
Ctrl Alt El
Please select "Accept Solution" if this post answers your question. 'Likes' won't hurt either. 😉