Subidoooo Posted May 27, 2023 Posted May 27, 2023 Hi guys i need some help i am trying to find the actual value of a dimension. for example i have a line at 0 deg and a line at 32 deg. i create a angular dimension between them which will read 32 deg in the dimension. i am trying to get the actual "32" value from the dxf data but cant seem to find it,all i am getting is the return of (2 . "*D285"). am i looking at this wrong? Here is section of my code i need help with: (while (command "_dimangular" pause pause pause)) (progn ;Start program (setq dim(ssget "_L")) (setq dimn (ssname dim 0)) (setq dimnp (entget dimn)) (setq ang (nth 16 dimnp)) ;this returns the (2 . "*D285") where i think the value should be stored or am i wrong????? the rest of the code i have already done. i did not post it here..... Quote
devitg Posted May 27, 2023 Posted May 27, 2023 14 minutes ago, Tharwat said: Check the DXF 42 and 1 @Subidoooo (setq ang (/ (* (cdr (assoc 42 (entget (car (entsel "select the dim"))))) 180.0) PI)) as assoc 42 show angle in radian 1 Quote
Subidoooo Posted May 27, 2023 Author Posted May 27, 2023 thanks guys managed to get it sored thanks allot Quote
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.