BIGAL Posted November 13, 2018 Share Posted November 13, 2018 (edited) Ok pretty easy, if plines even easier just need some time. I ahve taken the approach of using text a little easier to test with. Edited November 13, 2018 by BIGAL Quote Link to comment Share on other sites More sharing options...
Fredricc Posted November 13, 2018 Author Share Posted November 13, 2018 (edited) pretty easy ? not for a beginner and cant find anything of anyone who made this on the google... the z coordinate of all break points have to be in the block text on every break point as the dwg shows if you fix it i ow you one! ^^ Edited November 13, 2018 by Fredricc Quote Link to comment Share on other sites More sharing options...
eldon Posted November 13, 2018 Share Posted November 13, 2018 28 minutes ago, Fredricc said: I dont understand what you mean, this is how i want it too look like, i dont got any "first place" this is the one i got, and how i want them to look like ? Your Spatial Manager TP imports an XYZ file using block references in 3D. Those are the blocks I am interested in, because I think that with a bit of tweaking, you might get what you want without starting from the beginning. Quote Link to comment Share on other sites More sharing options...
Fredricc Posted November 13, 2018 Author Share Posted November 13, 2018 Sound great, something you can master ? Quote Link to comment Share on other sites More sharing options...
eldon Posted November 13, 2018 Share Posted November 13, 2018 57 minutes ago, Fredricc said: Sound great, something you can master ? Who knows? Without original data to work on, it is impossible for me to surmise. Quote Link to comment Share on other sites More sharing options...
Fredricc Posted November 13, 2018 Author Share Posted November 13, 2018 Here you go.dwg Quote Link to comment Share on other sites More sharing options...
Fredricc Posted November 13, 2018 Author Share Posted November 13, 2018 Thats a example of a line and some points i want to put attributes on, i made it on 30 second in zwcad just, its a perfect example, without attributes. Quote Link to comment Share on other sites More sharing options...
eldon Posted November 13, 2018 Share Posted November 13, 2018 OK, that drawing does not contain any attributes that I can see. We may be going around in circles, but I thought that you wanted to use the Spatial Manager to input data, and then to get those attributes to look like you want it to. Obviously not! You seem to want to merely annotate the Z value of the 3D vertices of a polyline, so why use attributes? Quote Link to comment Share on other sites More sharing options...
Fredricc Posted November 13, 2018 Author Share Posted November 13, 2018 Thats how i want it too look like, when it comes to insert data, use different programs, but that program does not support this attribute stuff to get the + and the text (z coordinate) in the same layer. thats what im serching for to make those attributes/blocks in dwg format IN zwcad Quote Link to comment Share on other sites More sharing options...
Fredricc Posted November 13, 2018 Author Share Posted November 13, 2018 but when i got 500 lines and alot of attribute to pick, i want it to automatic make those attributes on every points on the drawing with some command or someting like that, becouse its no function in my cad who make it easyer to make this for me, Quote Link to comment Share on other sites More sharing options...
Fredricc Posted November 13, 2018 Author Share Posted November 13, 2018 And i got dont the Spatial Manager, this action with blocks/attributes is not everyday i make so its kinda expensive to buy it for 1 function only Quote Link to comment Share on other sites More sharing options...
eldon Posted November 14, 2018 Share Posted November 14, 2018 Could I suggest that you go to Lee Mac's web site and use the programme Point Manager. It may do what you want. Quote Link to comment Share on other sites More sharing options...
SLW210 Posted November 14, 2018 Share Posted November 14, 2018 I have moved your thread to the AutoLISP, Visual LISP & DCL Forum. Quote Link to comment Share on other sites More sharing options...
Fredricc Posted November 15, 2018 Author Share Posted November 15, 2018 Good! it was there i should place it at the beginning..... Quote Link to comment Share on other sites More sharing options...
BIGAL Posted November 15, 2018 Share Posted November 15, 2018 I have done something but it needs testing using a block would make the + part a bit easier as that would be the insertion point. Need some time to test, should have looked at Lee's point manager 1st though. (defun labelzs ( / x obj ss) (defun isline ( / stpt endpt) (setq stpt (vlax-curve-getstartpoint obj)) (setq endpt (vlax-curve-getstartpoint obj)) (command "text" stpt "" "" (strcat "+ "(rtos (caddr stpt) 2 3))) (command "text" endpt "" "" (strcat "+ " (rtos (caddr endpt) 2 3))) ) (defun is3dpline ( / y co-ords) (setq co-ords (vlax-safearray->list (vlax-variant-value (vlax-get-property obj "Coordinates" ) ) ) ) (if (= objname "AcDbLwpolyline") ( setq numb (/ (length co-ords) 2) inc 2) ( setq numb (/ (length co-ords) 3) inc 3) ) (setq y (length co-ords)) (repeat numb (if (= objname "AcDbLwpolyline") (command "text" pts "" "" (strcat "+ 0.0")) (progn (setq z(nth (setq y (- y 1)) co-ords)) (command "text" pts "" "" (strcat "+ "(rtos z 2 3))) ) ) (setq y (- y inc)) ) ) (setq ss (ssget )) (repeat (setq x (sslength ss)) (setq obj (vlax-ename->vla-object (ssname ss (setq x (- x 1))))) (setq objname (vla-get-objectname obj)) (if (= objname "AcDbLine")(isline)) (if (or (= objname "AcDbLwpolyline")(= objname "AcDb3dPolyline")) (is3dpline) ) ) ) (labelzs) Quote Link to comment Share on other sites More sharing options...
Fredricc Posted November 16, 2018 Author Share Posted November 16, 2018 make them as block if its easyer! Quote Link to comment Share on other sites More sharing options...
BIGAL Posted November 17, 2018 Share Posted November 17, 2018 Go back and look at Lee's point manager should do what you want. Far easier to start with a xyz csv file. Quote Link to comment Share on other sites More sharing options...
Fredricc Posted March 20, 2019 Author Share Posted March 20, 2019 reply: havent find anything good yet for this! and ive been serching (ALOT) anyone ? From excel its working fine to import but to change them in the dwg drawing its harder to find something as working Quote Link to comment Share on other sites More sharing options...
harshad Posted March 20, 2019 Share Posted March 20, 2019 if u have x,y,z, in .xls file (Microsoft Excel 97-2003 Worksheet (.xls)) then u try this below file and let me know pp.Lsp Quote Link to comment Share on other sites More sharing options...
Fredricc Posted March 21, 2019 Author Share Posted March 21, 2019 Bok3.xls Here you got one who looks like without editing it. I didnt get it to work with that lisp try it you and give a reply Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.