Jump to content

Search the Community

Showing results for tags 'round-up'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • CADTutor
    • News, Announcements & FAQ
    • Feedback
  • AutoCAD
    • AutoCAD Beginners' Area
    • AutoCAD 2D Drafting, Object Properties & Interface
    • AutoCAD Drawing Management & Output
    • AutoCAD 3D Modelling & Rendering
    • AutoCAD Vertical Products
    • AutoCAD LT
    • CAD Management
    • AutoCAD Bugs, Error Messages & Quirks
    • AutoCAD General
    • AutoCAD Blogs
  • AutoCAD Customization
    • The CUI, Hatches, Linetypes, Scripts & Macros
    • AutoLISP, Visual LISP & DCL
    • .NET, ObjectARX & VBA
    • Application Beta Testing
    • Application Archive
  • Other Autodesk Products
    • Autodesk 3ds Max
    • Autodesk Revit
    • Autodesk Inventor
    • Autodesk Software General
  • Other CAD Products
    • BricsCAD
    • SketchUp
    • Rhino
    • SolidWorks
    • MicroStation
    • Design Software
    • Catch All
  • Resources
    • Tutorials & Tips'n'Tricks
    • AutoCAD Museum
    • Blocks, Images, Models & Materials
    • Useful Links
  • Community
    • Introduce Yourself
    • Showcase
    • Work In Progress
    • Jobs & Training
    • Chat
    • Competitions

Categories

  • Programs and Scripts
  • 2D AutoCAD Blocks
  • 3D AutoCAD Blocks
  • Images
    • Backgrounds

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Found 1 result

  1. Hi Guys! I'm struggling to make my own lisp routine which helps add heights to floor plans. The idea is to read the height difference from the 3D point cloud and present it on the 2D plan. To be honest I don't have excellent skills with programming, backing to 90's I was playing with BASIC on C64 and Amiga So, please forgive me for my poor code structure..! I'm stuck on the step where I need to round-up figures to 5mm. I have the idea which should resolve this problem but it doesn't work how I wish to and I'm trying to understand what is wrong with my code. I hope you can help or suggest a better solution. The main idea looks simple: I try to explain the example step by step (height difference is known): I'm thinking that range 0.0000-0.0025 shouldn't change the figure, 0.0025-0.0075 should round up to 0.005 and anything above 0.0075 should round up to 0.010. Finally, it doesn't work well... Here you can see the videos: 1. Video shows how it works without rounding up: https://drive.google.com/file/d/1hwmHQWOq0ImuZVFMgEr-KGBmUdIrwwHa/view?usp=sharing 2. Video shows the error after implementing my Math: https://drive.google.com/file/d/16lklDS1AUEtgmvHDnnKPpUHUlNVmVk60/view?usp=sharing I also attached a zip pack with my .lsp file and required blocks. I will be very thankful for any help. Cheers! Krys (maq) LISP_GSC_hdiff_v1.3__Height difference and floor level reading [HD].zip
×
×
  • Create New...