Jump to content

Recommended Posts

Posted

Said length(L) may be wrong,It should be height(H)

  • Replies 60
  • Created
  • Last Reply

Top Posters In This Topic

  • lucas3

    26

  • vimcruz

    15

  • MSasu

    8

  • Snownut

    6

Top Posters In This Topic

Posted Images

Posted (edited)

vimcruz,I just tried the version 2.1,Find some insufficient.

Such as text and line spacing is too big

Lead is not long enough,If can specify the starting point of the lead ,It will be better.

sshot-24.jpg

Edited by lucas3
Posted (edited)

vimcruz, #40 has been updated,If only choose a line for dimension,It's not accurate,Sometimes the drawing are not horizontal(level)

2014-2-16 22-37-22.png

 

dimension slope ,can choose datum line and the reference line

 

When dimension taper,choose what? Knotty!Hope more people involved, give some advice.

Edited by lucas3
Posted (edited)
vimcruz, #40 has been updated,If only choose a line for dimension,It's not accurate,Sometimes the drawing are not horizontal(level)

[ATTACH=CONFIG]46950[/ATTACH]

 

dimension slope ,can choose datum line and the reference line

 

When dimension taper,choose what? Knotty!Hope more people involved, give some advice.

 

I noticed that, since I'm not considering rotation of the object I was miscalculating the distance between points. Anyhow, in this update (v2.1.1) that has been fixed and works as it should. The downside...look at the Change Log:

 

;; -Change Log-                                    ;;
;; > v2.1.1                                        ;;
;;  - Math for point distance fixed                ;;
;;  - [b][color="red"]Entity to dim must be exploded (separated in[/color][/b] ;;
;;    [b][color="red"]lines[/color][/b])                                       ;;
;;  - Underline of data adjusted to reach text     ;;
;;    length                                       ;;
;;  - Fixed: rotated object bug                    ;;
;;  - Added: function VC:GetTextLength in order to ;;
;;    know how far the text goes                   ;;
;;-------------------------------------------------;;

slope_v2.1.1.lsp

Edited by vimcruz
Posted

I tried,About pick up, still has problem!Method is not correct

As this picture,how dimension ?

1.png

 

I think like this:

sshot-1.png

Posted

Add the extra lines to make the triangle needed then use the slope function. At least while I think something out

Posted

The same,when dimension taper ,can like this:

2.png

Posted
Add the extra lines to make the triangle needed then use the slope function. At least while I think something out

 

Vimcruz, you may want to check the INTERS built-in function that will allow you to get the said triangle - please consider setting the onseg argument to nil to ensure that intersection is found even when lines don't actually physically intersect.

(inters pt1 pt2 pt3 pt4 [color=blue]onseg[/color])

Posted
Add the extra lines to make the triangle needed then use the slope function. At least while I think something out

 

Using the trigonometric function is a must (Tangent function)

Posted

Lucas3, I think that Vimcruz had suggested you there a workaround - to temporary extend the lines and use the existing slope option until he will fix the tool.

Posted
Lucas3, I think that Vimcruz had suggested you there a workaround - to temporary extend the lines and use the existing slope option until he will fix the tool.

Thanks Msasu, Thanks for your suggestion in this thread!

That Just is my suggestion

I promised,I won't post any thread ,This thread is not I need,I just saw some people on other forums for help too,So,I post this thread! I continue to reply here,Just want to help vimcruz to do best! I'm afraid of others' criticism!I'm afraid to hear "Jeez, could you be any more obnoxious? You're pretty darn pushy for a guy who is getting a lot of free help”

Posted (edited)
Vimcruz, you may want to check the INTERS built-in function that will allow you to get the said triangle - please consider setting the onseg argument to nil to ensure that intersection is found even when lines don't actually physically intersect.

(inters pt1 pt2 pt3 pt4 [color=blue]onseg[/color])

 

If I have known this command earlier, the code would be easier than it is at this point. Thank you so much, MSasu. Writting v2.1.2...

Edited by vimcruz
typo
Posted

Glad to hear it helped you, Víctor!

There is always place to learn, for everybody; as we have here a saying: "God, please give to the man his last idea!"

Posted

I thought I would be easier...I think I chose the wrong project, the good thing is that I've learned a lot. Hopefully this will be the last update, at least while Lucas3 finds another bug :cry:

 

;; -Change Log-                                    ;;
;; > v2.1.2                                        ;;
;;  - Bug fixes                                    ;;
;;  - Code reorganized.                            ;;
;;  - Added functions:                             ;;
;;  - VC:GetRealAngle - to obtain the inner angle  ;;
;;    between two lines, rotated or not            ;;
;;  - tan, d2r, r2d for trigonometric maths        ;;
;;-------------------------------------------------;;

 

Despite the bugs, the stress and the headaches I've had so much fun writting this routine. Thx MSasu for the tips.

slope_v2.1.2.lsp

Posted

Thanks msasu,and thanks vimcruz, Thank you for your effort!

 

I think I chose the wrong project

Why?

 

I tried it , slope value is not very precise ?

sshot-25.png

Posted
Thanks msasu,and thanks vimcruz, Thank you for your effort!

 

 

Why?

 

I tried it , slope value is not very precise ?

[ATTACH=CONFIG]47021[/ATTACH]

 

The wrong project cause I just started learning lisp like 2 weeks ago, so, it's hard haha.

 

About the precision, maybe caused by the rounded angle:

 

135.			(if (>= ang (+ (fix ang) 0.5)) ;Round the angle
.				(setq ang (1+ (fix ang)))
.				(setq ang (fix ang))
.			)
		(setq
			m (abs (tan ang))
			ratio (/ 1.0 m)
			percent (* 100 m)
144.			)

 

Now is fixed (changed the order). Anyhow, I think the slope function has a high precision, since it takes the angle and evaluates through the trigonometric functions. I tested it and it works fine now.

slope_v2.1.3.lsp

Posted
(defun tan (a)(if (not (equal 0. (cos a) 1e-10)) (/ (sin a) (cos a))))

Posted

Dear vimcruz ,

Found the problem again

Symbol,opposite direction,look

sshot-26.png

 

Lead also has a problem,Not beautiful!

 

Should be like this:

sshot-27.png

Posted

lucas3,

 

Do you offer any coding solutions or do you just find issues with the code that vimcruz has so graciously posted on this thread. I may be mistaken but I don't believe vimcruz is creating his code to your specifications. A little coding assistance would go a long way in helping to resolve the issues you seem so anxious to find and post.

Posted
lucas3,

 

Do you offer any coding solutions or do you just find issues with the code that vimcruz has so graciously posted on this thread. I may be mistaken but I don't believe vimcruz is creating his code to your specifications. A little coding assistance would go a long way in helping to resolve the issues you seem so anxious to find and post.

 

Snownut ,I don't understand!sorry for my english!

I just find the mistakes,Did you find the problem does not prompt?

Also,vimcruz can be ignored

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