Jump to content

Need help finding dimension actual value


Subidoooo

Recommended Posts

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.....

 

Link to comment
Share on other sites

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

 

  • Like 1
Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...