Nordic charachter in a script

Nordic charachter in a script

pooya.jalilian
Explorer Explorer
975 Views
6 Replies
Message 1 of 7

Nordic charachter in a script

pooya.jalilian
Explorer
Explorer

Hi,

I've been having problems with some Nordic charachters like ä, Ä, ö, Ö, å and Å when trying to add them to a block or in plotting script. Even using quotation marks doesn't help.

Here commes an example:

-PLOT
;Detailed plot configuration? [Yes/No] <No>:
Yes

;Enter an output device name or [?] <DWG To PDF.pc3>:
DWG TO PDF.pc3
;Enter paper size or [?] <ISO A1 (841.00 x 594.00 MM)>:
ISO A1 (841.00 x 594.00 MM)
;Enter paper units [Inches/Millimeters] <Millimeters>:
M
;Enter paper units [Inches/Millimeters] <Millimeters>:
Landscape
;Plot upside down? [Yes/No] <No>:
No
;Enter plot area [Display/Extents/Layout/View/Window] <Extents>:
Extents
;Enter plot scale (Plotted Millimeters=Drawing Units) or [Fit] <1:1>:
1:1
;Enter plot offset (x,y) or [Center] <Center>:
Center
;Plot with plot styles? [Yes/No] <Yes>:
Yes
;Enter plot style table name or [?] (enter . for none)
"Helenius_50_färg.ctb"

 

which AutoCAD intrepret it as below and returns an error.

"Helenius_50_färg.ctb"

Does anybody have any solution?

0 Likes
Accepted solutions (1)
976 Views
6 Replies
Replies (6)
Message 2 of 7

Moshe-A
Mentor
Mentor

@pooya.jalilian hi,

 

i do not think autocad care about characters as long as you install the Nordic language and your OS is configured with your language and you set your current region right, it should work.

also make sure AutoCAD can find the ctb file (in plot styles folder)

 

??

 

Moshe

 

 

0 Likes
Message 3 of 7

pooya.jalilian
Explorer
Explorer

That's not the case.

My OS is in Swedish and the language is configured accordingly.

It seems like some charachter encoding problem.

0 Likes
Message 4 of 7

Moshe-A
Mentor
Mentor

what is the error message?

0 Likes
Message 5 of 7

pooya.jalilian
Explorer
Explorer

In the process of plotting it stops after that line that I mentioned.

As you can see in the line that it asks for plot style name:

 

;Enter plot style table name or [?] (enter . for none)
"Helenius_50_färg.ctb"

 

it changes the ä character as ä and can't find the correct plot style.

0 Likes
Message 6 of 7

CodeDing
Advisor
Advisor
Accepted solution

@pooya.jalilian ,

 

Weird. It seems to be working fine for me. Try using the Unicode character. Sometimes I get better luck with that method:

"Helenius_50_f\\U+00E4rg.ctb"

 

Best,

~DD

0 Likes
Message 7 of 7

pooya.jalilian
Explorer
Explorer

Well! Thanls for the suggestion.

It worked. 👍

0 Likes