See the top rated post in this thread. Click here

Results 1 to 2 of 2

Thread: Osnap Snap Divisions

  1. #1
    Member
    Join Date
    2013-07
    Posts
    20
    Login to Give a bone
    0

    Default Osnap Snap Divisions

    I have an idea that needs improvement. Many years ago I wrote a function I called (snapdiv) and it functioned like an osnap, but based on divisions. My version would only work on ordinary lines, which was great, but had limited functionality. I always wanted it to work on arcs and polylines, and splined or curve fit polylines as well, and perhaps other complex entities like 3dfaces and basically anything that an ordinary snap would work.

    The way it worked was the user would enter a draw command like a "line" command and then the user would choose (snapdiv) from a toolbar button, after selecting the entity, the user is prompted to enter an integer number which represents the number of divisions the user desires, then a point is returned to the command. If the user entered 3, then it would return the nearest third point to where the user picked the line. Four would be nearest quarter point, and so on. If the user entered 2, the the point returned would be either a midpoint or an endpoint. Perhaps it would be best to exclude the endpoints from being returned, which I did not do in my original program.

    Can anyone here assist in rewriting a function that will do this and will work on more than just lines?

    Thanks

  2. #2
    Administrator BlackBox's Avatar
    Join Date
    2009-11
    Posts
    5,719
    Login to Give a bone
    1

    Default Re: Osnap Snap Divisions

    You might consider Giles' OsnapPalette app in Exchange Store, which implements an FRC (Fraction) OSNAP that you can specify the 'divide':

    https://apps.autodesk.com/ACD/en/Det...en&os=Win32_64


    Cheers
    "How we think determines what we do, and what we do determines what we get."

    Sincpac C3D ~ Autodesk Exchange Apps

    Computer Specs:
    Dell Precision 3660, Core i9-12900K 5.2GHz, 64GB DDR5 RAM, PCIe 4.0 M.2 SSD (RAID 0), 16GB NVIDIA RTX A4000

Similar Threads

  1. Replies: 5
    Last Post: 2007-04-26, 07:19 PM
  2. Replies: 5
    Last Post: 2007-01-24, 05:53 PM
  3. How do you use Divisions?
    By dhallett in forum Project Navigator
    Replies: 5
    Last Post: 2006-09-16, 04:50 AM
  4. Osnap will not snap to node.
    By GreyHippo in forum AutoCAD General
    Replies: 2
    Last Post: 2006-02-09, 01:36 AM
  5. Divisions for plans
    By david_peterson in forum ACA Wish List
    Replies: 0
    Last Post: 2005-04-14, 03:12 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •