AHHH, it's okay I wasn't the only one who had a bad time!!!!!!!!!!!!
How do I download the file?
Hello!
Right-click "save link as"
Or "save target as"
Or copy-paste the code into a text file, rename the extension to .lsp and you're good to go!
But the first 2 solutions are simpler:)
[EDIT] Further response
I correct Aurélien's answer
I just tested.
I thought it would work, too bad
The third method doesn't work, it generates errors
I think the program should be reformatted
"Or copy-paste the code into a text file, rename the extension to .lsp and you're good to go!"
So right-click "Save link as" or "Save target as" depending on the internet browser used
Hello
I did cahrge the file, but when I type the czp command nothing happens
Hello
Did you type "appload" just before to load the program you downloaded?
normally it should go like this:
- you open your autocad file
- you type "appload" in the command bar at the bottom and you go to find the .lsp file you downloaded
To validate the correct loading of this file you should see appear in your command bar at the bottom: "Z coordinates of the points.lsp correctly loaded"
So all you have to do is launch the function by typing "czp" in the command bar
by zooming in on your points next to each of them you should be able to see written in text the "Z" coordinate of your point
I have the message "Z coordinates of the points.lsp correctly loaded" displayed
on the other hand when I make my order "czp" I have this message that is displayed "; error: no function definition: VLAX-ENAME->VLA-OBJECT"
I'm good in general SCU,
Do the dots have to be in a specific layer? Or that the file to be downloaded is in a specific folder?
ah ok it's my fault
Visual Lisp is not loaded by default
at home, since I use it a lot, we charge it at startup
so here is the modified program
Normally it should work this time
coordonnees_z_des_points.lsp
you don't need to put a specific SCU
at the beginning of the program I put it in general SCU
No specific layer selection, the program retrieves all the points contained in the plane regardless of the layer
The program file can be anywhere it's you who tells it the location when you do "appload"
so already in fact you use AutoCAD map while I am on AutoCAD 2016
There may be differences between the two I don't know, I've never used AutoCAD map...
If you just put dots in an empty plane and you run the lisp program, what is the behavior?
Could you send me your Dwg file so that I can test it on my side
so apparently it's a problem of text height
I suggest you modify it manually because not too much time to write the code to
To do this , you type "style" in the command bar
A window should appear with the different styles of text contained in your map
The default selected style is the standard one so that's the one we're going to change
you select it, and where you have height, you put 0.35
apply , close
All that remains is to rerun the program
I just made a new version by adding a rounding to 2 digits after the decimal point because it's a bit heavy on the screen
coordonnees_z_des_points.lsp
ah that's perfect,
Just one last question to be more than perfect
Why don't all the texts appear stuck to my point, some are off the point
I shifted it voluntarily to see the point
there they are shifted by 1mm from the point
it may be a bit much considering you scale
It happens at the level of this line in the program
you can edit it via blocnote
(setq pt1 (list (+ (car (vlax-safearray->list (vlax-variant-value (vla-get-coordinates obj)))) 1)
The 1 you have at the end represents the offset
Maybe we should move the subject to resolution in order to close it
Hello
the file doesn't work anymore, it puts "-text" back to me instead of my dot z
Hello
It's definitely the same as last time
the default font size that is too large
Oh yes it's true thank you