• This forum is the machine-generated translation of www.cad3d.it/forum1 - the Italian design community. Several terms are not translated correctly.

change the style of a dwg

  • Thread starter Thread starter Angelo2449
  • Start date Start date

Angelo2449

Guest
Hello everyone,
- I create, through dxf file, a string series, open the dxf by clicking on it, the style is "standard"."txt"
- with a lisp program, I change the string text, so I don't write anything new.
- at the beginning of the programme there is education:
Code:
(command "_style" "arial" "arial.ttf" 0 1 0 "" "")
- the execution of the program besides changing the string test, changes the style, now it is "arial".
- the strings, first created, then modified, remain of the "standard" style "txt"
question, how do I, within the program, change the style of strings?
Thank you.
 
that I remember, the dxf already contains, for each string, its style. if I don't remember badly, if it is not specified, the "standard" or the "current" is assumed.
Now, since you create entities via dxf (why then?) you should try:
- if you set before inserting the lyrics the arial style like current, to create the strings you are created directly in arial.
- if changing the "standard" text style and assigning the "arial" font, your strings are changed automatically.
otherwise you will be forced to specify it string.
 
thanks crystal,
Since I launch autocad from a .dxf file, I should insert in this the instruction to set the arial style, otherwise, inside the open file, not creating new elements but limiting myself to changing the existing ones, there is no change of style for the latter.
as mentioned, I should insert (what?) the instruction in the .dxf file:
Thank you.
 
1529920352486.webpin the part of software that creates the dxf you should add the reference to the style, as you see in the sx column the code 7 and arial identify the style within the writing, unlike the dx column that uses the standard style, not added within the definition of the writing.
 
thanks rpor66,
I entered the two rows in the dxf file but nothing happens (no reported error, here is a .dxf file clip:
Code:
0
section
2
entities
999
start date
0
text
5
0
8
text
62
1
7
arial
10
1498789.579000
20
5042431.954000
40
0.40
50
0
1
pp1 (165.03)-4420571.480,698896.546,4529362.925#1498789.579,5042431.954
Thank you.
 
1529934120854.webpyou have to change the current style (sx square) and add to the text styles section the information of the right pane.
try, I don't have the solution ready and working, creating dxf is not a practice very in use.
 

Forum statistics

Threads
44,997
Messages
339,767
Members
4
Latest member
ibt

Members online

No members online now.
Back
Top