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

quotation of the coordinates of a point

  • Thread starter Thread starter albertoromano
  • Start date Start date

albertoromano

Guest
a greeting to the whole forum. I've been using for so many years acad with only std commands, as well as the heat I finally agreed to approach autolisp and on this I am completely zero. I downloaded "my red rose lisp" which is a 170-page brick to digest calmly. around the various forums I found a lot more material and thought I'd start with a simple program. do my case http://www.cg-cad.com/ttlisp74.htm this lisp is proposed in five versions and because I care about the result it gives. This is the procedure followed: copy of the text starting from | heading |; up to ;;;; eof included. pasted on a notepad sheet and saved with .lsp extension in the folder where I hold all drawings. in autocad command tools>autolisp>load, I choose the .lsp file and the load, then on the command line I call it and the lisp part, it regularly asks me to select the point to quote but then the result not and what should.One time between the very first tests I saw the correct operation but in the confusion to try the various relieses now I no longer know which it worked, maybe without realizing I varied some setting. I don't know.
work on winxp sp2 p4m 2.0ghz with ram2gb.
I hope someone can take a look at us and maybe answer me a tip.resto waiting and in the meantime a greeting to the whole forum


use adt 2004 sp2
 
I mean, don't you know if you copied version 1 or 2?
I tried the two versions and both work.
rather attach your copied file, because it is there that there are probably errors.
Hi.
 
hi joseph and thanks for the answer, don't yell at me, I know perfectly that in this field are absolutely zero and I'm still trying to figure out which side to start: I copied all the files with the ambitious idea of comparing them but I must have combined something incorrect.to avoid that acad confused them I modified numerandoli according to the relieving the commands to the row c:comando I added the progressive to get c:comsto a version asked me the height of the character but then confused it with the inclination of the text in the sense that if I responded 60 then the text was tilted sixty degrees and responding 0 zero the text was written horizontal. tomorrow I will post the files and we will see.a greeting.
 
I tried your files; I'm all working.
reasons for your failures:
- try to remove all the previously uploaded lsp files and upload only one.
- maybe adt does not correctly interpret lsp files (but I would exclude it)
- always appears after loading: "_appload cxyz3.lsp successfully loaded"?
- the file launches, e.g., with cxyz3 and not with c:cxyz3

in case of success, tell us the cause
 
a greeting to the whole forum.
Dear Joseph, thank you for the attention you give to the question; I tried to download all the files and to upload them and try them one by one but did not improve the situation.
to the loading of the lisp there is the answer "cxyz2 loaded".
the command starts with "cxyz3" but not with "c.cxyz3" with all versions.
I never started acad without adt and maybe I don't even know how to do it, if you say I could even try.
for all versions the start of the lisp disables the osnaps settings and then to execute the command I have to resume them transparently.
in versions 3 4 and 5 when I take the command to quote other points appears an error message that you can see ner test design that I will try to attach.it is 102kb.
I hope to succeed in making these blessed lisps work now that I am beginning to see the possibilities they give. good evening to all.a.
 

Attachments

it seems that the text command in adt has another syntax; the problem however also appears to me, although having autocad base; so it seems tied to the drawing settings loaded, especially the text style; I tried with the standard style (which has height =0) and seems not to give errors.
Did you even try on another blank design?
I also noticed that your design, though small, is of an incredible slowness.
 
a greeting to the whole forum.
dear joseph,I opened a completely empty design and I designed
a parallelepiped; I loaded and tried one to a ciscun lisp dedicating us
even a layer to highlight performance differences.


separately uploaded lisps have the following behaviors:
1 works perfectly, requires the height of the text and the position then
writes the three odds.the command can be resumed several times.
2 works perfectly, asks the height of the text and the position but then writes only the x and y quotas; the command can be resumed several times. I write that it works perfectly for me because working on panels I do not care about the z but only x and y.
3 does not ask for the height of the text that has already set to 30, asks for the location and writes it. It follows the command only once in the sense that trying to open it then answers the error message.
4 same behavior as the third.
5 the same behaviour of the third and fourth, the only difference is that
does not ask the position of the text and writes it in a set position
compared to the object to be listed.


Finally I loaded all together the lisps creating an ad hoc layer this time.
In this case they all have the same identical correct behavior, they demand the height of the text and the position, then they write the three quotas where indicated.I seem to me those five drunkards that if they do not hold hand confused pendulum but holding themselves by hand they manage to find the right way.
remains in all the constant to disable the osnaps only during the execution of the command.


at this point I reopened the test dvg where the commands did not work and removed the custom quote style leaving only the style
standard:now the commands work as described above in the "node" file.

in conclusion there seems to be a conflict with my quota styles, as well as a
strange "complementary" between the various lisps. What to do? try to change the settings of the quota styles I need anyway, or can you search for the solution in the lisp codes?
I really want to see how it ends, while I greet everyone.a.


about the slowness that signals me I don't know exactly what to say, I never had problems even with heavy files. again hello to all.a.
 

Attachments

Forum statistics

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

Members online

No members online now.
Back
Top