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

reading data complex line types

  • Thread starter Thread starter Giuseppe Beatrice
  • Start date Start date

Giuseppe Beatrice

Guest
Hello, everyone.
I would like to ask for information on the question of complex line types; In particular, I refer to lines containing text.
As is known, the question is carried out with the command lisp:
(tblsearch "ltype" "xxxx"), where the string "xxxx" is obviously the name assigned to the line type.
the result however shows only the values of the lengths of the lines and the spaces, and shows no dxf code for scale, size, text type and text content stored in the line type at the time of its creation.
What do I do then to know this data?
thanks, once again, for availability.
 
I thank you for the answer, but the type of line in question is not part of the files indicated, since it was created on other computers, and then inserted on drawings that have been passed to me.
my question was a little more general, meaning if autolisp can allow you to know the data indicated, in particular the height of the text used to compose the complex line.
my particular problem, in fact, is to determine at what distance "minimum" from a polylinea I have to put another polyline of the same type without that the texts interfere, and this depends precisely on the height that assumes the text inserted in the polylinea according to the current scale used for its insertion: If I know in some way the "base" height of the text I can therefore easily determine its climbing height and therefore the desired distance.
Thank you for your availability.
 
Hello, everyone.
I would like to ask for information on the question of complex line types; In particular, I refer to lines containing text.
As is known, the question is carried out with the command lisp:
(tblsearch "ltype" "xxxx"), where the string "xxxx" is obviously the name assigned to the line type.
the result however shows only the values of the lengths of the lines and the spaces, and shows no dxf code for scale, size, text type and text content stored in the line type at the time of its creation.
What do I do then to know this data?
thanks, once again, for availability.
linout - exports linetype definitions (incl. shape+text info) from an autocad dwg drawing back to .lin file
 
thanks also to tir for the suggestion, but my problem is different, and I will try to explain myself better.
I have to work with planimetries of electric cables, in which the different types of pipe are represented with polylinee of complex type, constituted precisely from lwpolyline composed with strokes and a text type "t1" "t2" etc. in which are contained of the electric cables; the name assigned to the polylinea is the same as the enclosed text, so I will have on the planimetry of the polylinee with type of line "t1", "t2" etc...
I then developed a small lisp project, which reads the type of channeling line and, when the number of cables in it exceeds the maximum allowed for the tube, draws a polyline of the same type in parallel to the first.
Now, the thickness of polylinea is not only that assigned to polylinea, but also depends on the initial height of the text and the line scale applied in the specific design (which may vary but that I have no difficulty extracting with lisp).
Therefore, to correctly draw a polyline in parallel using the instruction (command "offset"...) avoiding overlays or excessive distances, the offset distance obviously depends on the height of the text, and it is this value that I want to know, obviously through some lisp instruction.
I hope to have been clear and thank you again for the availability.
 
I attach a minimum straw of cunicali plane is, containing the polylines created ad hoc for tubes and tunnels of a given type.
polylines are all of this type, and I need to trace, through autolisp, to the height that the text part of the polylinea assumes varying the scale of the type line.
thanks for the availability.
 

Attachments

I attach a minimum straw of cunicali plane is, containing the polylines created ad hoc for tubes and tunnels of a given type.
polylines are all of this type, and I need to trace, through autolisp, to the height that the text part of the polylinea assumes varying the scale of the type line.
thanks for the availability.
the height of the text is proportional to the scale of the line type of polylinea,
just check code 48

in your case:

code 48 = 1 -> height 0.1 units
code 48 = 2 -> height 0.2 unit
code 48 = 3 -> height 0.3 unit
code 48 = 4 -> height 0,4 units

etc.
 
thanks endless for the suggestion, tir.
I was struggling to look for -uselessly!- in the chart symbols, neglecting the good, old habit, to seek directly in the entity.
Thank you again.
 

Forum statistics

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

Members online

No members online now.
Back
Top