Message 1 of 9
Surface triangle minimum lenght
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello, I encunterd a problem where autocad connects triangles where i dont need them. I could manuali re align them, but it is a very monoton task to do. I was looking for some help on forums and found an AutoLISP code for setting maximum triangle lenght. I'm wandering if there is any way to use minimum lenght insted of maximum. I tried changing maximim to minimum in the code, but AutoCAD dont recognise minimum. Can anyone help me with this? Code form user Hippie013
;Get your existing surface (setq surf-obj (vlax-ename->vla-object (car (entsel "\nSelect Surface Object:")))) ;Get the Surface Definition Properties (setq defprop (vlax-get-property surf-obj 'DefinitionProperties)) ;Set the Maximum Triangle Length (setq tml (getreal "\nEnter Maximum Triangle Length:")) (vlax-put-property defprop 'MaximumTriangleLength tml) ;Use Maximum Triangle Length (vlax-put-property defprop 'UseMaximumTriangleLength :vlax-true) ;Rebuild your Surface (vlax-invoke-method surf-obj 'Rebuild)