Jump to content

Search the Community

Showing results for tags 'handling in vla-get-area'.

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

    Handling in vla-get-area

    In this code (setq valor_area 0.0000) (setq sel (ssget "_x" (list '(0 . "HATCH")(cons 8 layer)))) (if (/= sel nil) (progn (setq i 0) (repeat (sslength sel) (setq entbh (ssname sel i)) (if (/= entbh nil) (progn (setq lentbh (entget entbh)) (setq layerbh (cdr(assoc 8 lentbh))) (setq valor_area(+ valor_area (vla-get-area (vlax-ename->vla-object entbh)))) )) ) The error is in this line (setq valor_area(+ valor_area (vla-get-area (vlax-ename->vla-object entbh)))) I received the Automation error, how to handling this problem ? I need that when the error occurs and the system to zoom in on the problem with hatch. Thanks
×
×
  • Create New...