Jump to content

how to manage snap points of drawing objects with vba ?


Recommended Posts

Posted

For example ,how to get a knowed line's center point with vba programe?:(

Posted

Normally you would just use math to solve. The end points are known properties so you would calculate from there.

Posted

thank you, but i am afraid the center point calculated by computer is not accurate enough . if we scale up the drawing , we will find the difference. can you find some method more accurate?

Posted

please post an example, as 14 decimal places should be accurate enough

Posted
thank you, but i am afraid the center point calculated by computer is not accurate enough . if we scale up the drawing , we will find the difference. can you find some method more accurate?

 

:D :D :D

 

Do you know that most of the geometric calculations mustn't be accurate because it uses the irrational number pi? If I do not mistake at this time is calculated 100 billion digits after the decimal point. You can continue: 3,141 592 653 589 793 238 462 643 383 279 502 884 197 169 399 375 105 820 974 944 592 307 816 406 286 208 998 628 034 825 342 117 067 982 148 086 513 282 306 647 093 844 609 550 582 231 725 359 408 128 481 117 450 284 102 701 938 521 105 559 644 622 948 954 930 381 964 428 810 975 665 933 446 128 475 648 233 786 783 165 271 201 909 145 648 566 923 460 348 610 454 326 648 213 393 607 260 249 141 273 724 587 006 606 315 588 174 881 520 920 962 829 254 091 715 364 367 892 590 360 011 330 530 548 820 466 521 384 146 951 941 511 609 433 057 270 365 759 591 953 092 186 117 381 932 611 793 105 118 548 074 462 379 962 749 567 351 885 752 724 891 227 938 183 011 949 129 833 673 362…

Posted

and what makes you think a vba macro is going to somehow be MORE accurate than the parent program it's running under?

 

and, when you think of it, just how many extra decimal points would you need, if you are *dividing by two* ?? one, at most ......

Posted

thank you for all your reply , i think the double type is accurate enough commonly.

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