Recent Posts

Pages: [1] 2 3 ... 10
1
.NET / Re: Gems & other stuff ...
« Last post by MickD on Today at 06:59:02 AM »
 :2funny:
2
.NET / Re: Gems & other stuff ...
« Last post by It's Alive! on Today at 06:20:50 AM »
This is my favorite
3
.NET / Re: Gems & other stuff ...
« Last post by It's Alive! on Today at 06:19:46 AM »
lol!
4
.NET / Re: Gems & other stuff ...
« Last post by MickD on Today at 06:17:07 AM »
 :-)
5
.NET / Editor.TraceBoundary documentation mistake
« Last post by Zeftax on Today at 03:50:10 AM »
The Developer Help page for Editor.TraceBoundary (https://help.autodesk.com/view/OARX/2023/ENU/?guid=OARX-ManagedRefGuide-Autodesk_AutoCAD_EditorInput_Editor_TraceBoundary_Point3d__MarshalAsUnmanagedType_U1__bool) seems to have a mistake, they say:
Quote
In this case, the last entry is the outermost boundary, and the succeeding entries represent the islands found.
The sentence is obviously self-contradictory, but if one is to take just the key part (the last entry is the outermost), he will take away the wrong part! In fact, the first entity in the set is the outermost one, and the succeeding ones (as is written correctly) are the islands. Just a fun little mistake I stumbled upon this morning, so beware!  :uglystupid2:
6
.NET / Re: Selection Set by Fence
« Last post by kdub_nz on Today at 03:24:04 AM »

Tanks.
Credit goes to Scott McFarlane in a lecture  "Programming AutoCAD with C#: Best Practices" at AutoDesk University.

also:
from2014, have a look for
2014 handout_5215_SD5215 Sharpen Your Code.pdf
2014 presentation_5215_SD5215 Sharpen Your Code.pptx

I currently use a class named AcActive ( with a bit more content ) to reduce the name conflict with Active Class used by other developers.
7
AutoLISP (Vanilla / Visual) / Re: purge everything but layers
« Last post by kozmos on Today at 03:05:08 AM »
This could be of a use .  :-D

Code - Auto/Visual Lisp: [Select]
  1. (defun c:test (/ l p)
  2.   (while
  3.     (setq l (tblnext "LAYER" (null l)))
  4.      (setq p (cons (entmakex (list '(0 . "POINT")
  5.                                    (list 10 0. 0. 0.)
  6.                                    (cons 8 (cdr (assoc 2 l)))
  7.                              )
  8.                    )
  9.                    p
  10.              )
  11.      )
  12.   )
  13.   (repeat 3
  14.     )
  15.   )
  16.   (foreach x p (entdel x))
  17.   (princ)
  18. )

I would suggest to vla-copy the layers into dbx and then copy them back after purging the dwg.
8
.NET / Re: Selection Set by Fence
« Last post by Zeftax on Today at 02:49:08 AM »
Code - C#: [Select]
  1.     public static class Active
  2.  

Woah, that's a smart trick! :-o I'll have to use that from now on.
9
AutoLISP (Vanilla / Visual) / Re: purge everything but layers
« Last post by BIGAL on May 15, 2024, 08:18:55 PM »
If you are using CIV3D run Purgestyleandsettings maybe twice before normal purge. It makes a big difference.
10
AutoLISP (Vanilla / Visual) / Re: Issue with Layout - Copy Command
« Last post by BIGAL on May 15, 2024, 08:15:24 PM »
Are you copying "Template" each time or last layout name created, may cause odd order.
Pages: [1] 2 3 ... 10