Yes, there are some on the GOOGLE using the Visual Lisp, but I was wondering if there is simpler way with just plain AutoLisp.
I'm modifying the existing AutoLisp code that automatically place the MTEXT on drawings in the AutoCAD 2014. I just need to find the way to find the center of a room that is drawn with polyline. The contents of the MTEXT is retrieved from the database and formatted already. Polylines are already selected in the code, and the mtext needs to be placed at the center of each polyline. No user input. all Polylines should be closed, but occasionally open ones can be found.
Also, much more information would be needed, if there isn't something already written that does what you need. You don't say what you want the Mtext to say -- calculated area? incrementing number? User input for every one? names of the seven dwarves? etc. It would also be necessary to know whether you would want to select the Polyline itself [or perhaps many at once?], or have a routine find all closed Polylines without User input, or pick inside the enclosed area(s), or some other approach, nor what would be needed about Style or size or justification or.... Check this out.